Skip to content

Python client library for interacting with TestLodge.

License

Notifications You must be signed in to change notification settings

AceofSpades5757/testlodge

Repository files navigation

pre-commit

pypi Read the Docs

CI/CD

Coverage

Description

Python client library for interacting with TestLodge.

Installation

pip install testlodge

Usage

Documentation

import os

from testlodge import Client


tl = Client(
    email='my.email@email.com',
    api_key=os.environ['TESTLODGE_API_KEY'],
    account_id=os.environ['TESTLODGE_ACCOUNT_ID'],
)

Users

from testlodge.typing import UserJSON
from testlodge.typing import UserListJSON


user_json: UserJSON = dict(
    id=123456,
    firstname='First',
    lastname='Last',
    email='user@email.com',
    created_at="2022-01-01T20:30:40.123456Z",
    updated_at="2022-05-16T01:08:41.493190Z",
)

# Get a list of users (Default: page 1)
user_list_json: UserListJSON = tl.list_user_json()

Projects

from testlodge.typing import ProjectJSON
from testlodge.typing import ProjectListJSON


# Get a list of projects (Default: page 1)
project_list_json: ProjectListJSON = tl.list_project_json()
# Get a project
project_list_json: ProjectJSON = tl.show_project_json(project_id=123)

Custom Fields

from testlodge.typing import CustomFieldListJSON


# Get a list of custom fields for a project
custom_field_list_json: CustomFieldListJSON = tl.list_custom_field_json(project_id=123)

About

Python client library for interacting with TestLodge.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published