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)
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.33.tar.gz
(10.8 kB
view hashes)
Built Distribution
testlodge-0.0.33-py3-none-any.whl
(26.7 kB
view hashes)
Close
Hashes for testlodge-0.0.33-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c628cc390c29debdfd4ee9cdc3378ff4043d3d1f73bec7e57e92069cbb125f66 |
|
MD5 | 256a5987ff9d8982f747e59f9e0c0bd0 |
|
BLAKE2b-256 | 0cb81c002664f7c01fbaa115bae2118f8214f8ab80896dbe7752540511e54d58 |