Skip to main content

Python client library for interacting with TestLodge.

Project description

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)

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

testlodge-0.0.40-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

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

Hashes for testlodge-0.0.40.tar.gz
Algorithm Hash digest
SHA256 d1643875d3ee61b57ee4f3a8fcc641d74af1b0a66f72defb4ea8f9fe806cb861
MD5 d2b26f271bceed2b05b245f2da49eacb
BLAKE2b-256 4c85491d3d6a6c7ccdb66441ab5a2a6c0427f019a94a6906b610c06195f4d8e4

See more details on using hashes here.

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

Hashes for testlodge-0.0.40-py3-none-any.whl
Algorithm Hash digest
SHA256 e0ae2f905c47e28194370c130ac304c9697e824d6088bd39e5b80f950a34405d
MD5 a399cf8dae9c71ef3171958c30c9702f
BLAKE2b-256 b976257ebdec45c59ee187de022c7e05e80d77068d351fec861fb853a1096cbf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page