Description
Python client library for interacting with TestLodge.
Installation
pip install testlodge
Usage
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)
Metadata
Release files for testlodge 0.0.40
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| testlodge-0.0.40.tar.gz | 12.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| testlodge-0.0.40-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.5 kB
Release files / testlodge-0.0.40.tar.gz
| Download URL | testlodge-0.0.40.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1643875d3ee61b57ee4f3a8fcc641d74af1b0a66f72defb4ea8f9fe806cb861
|
|
BLAKE2b-256 checksum How to use checksums |
4c85491d3d6a6c7ccdb66441ab5a2a6c0427f019a94a6906b610c06195f4d8e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.1
|
Release files / testlodge-0.0.40-py3-none-any.whl
| Download URL | testlodge-0.0.40-py3-none-any.whl |
|---|---|
| Size | 23.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0ae2f905c47e28194370c130ac304c9697e824d6088bd39e5b80f950a34405d
|
|
BLAKE2b-256 checksum How to use checksums |
b976257ebdec45c59ee187de022c7e05e80d77068d351fec861fb853a1096cbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.1
|