Python client library for interacting with TestLodge.
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
testlodge-0.0.40.tar.gz
(12.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file testlodge-0.0.40.tar.gz.
File metadata
- Download URL: testlodge-0.0.40.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1643875d3ee61b57ee4f3a8fcc641d74af1b0a66f72defb4ea8f9fe806cb861
|
|
| MD5 |
d2b26f271bceed2b05b245f2da49eacb
|
|
| BLAKE2b-256 |
4c85491d3d6a6c7ccdb66441ab5a2a6c0427f019a94a6906b610c06195f4d8e4
|
File details
Details for the file testlodge-0.0.40-py3-none-any.whl.
File metadata
- Download URL: testlodge-0.0.40-py3-none-any.whl
- Upload date:
- Size: 23.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0ae2f905c47e28194370c130ac304c9697e824d6088bd39e5b80f950a34405d
|
|
| MD5 |
a399cf8dae9c71ef3171958c30c9702f
|
|
| BLAKE2b-256 |
b976257ebdec45c59ee187de022c7e05e80d77068d351fec861fb853a1096cbf
|