Skip to main content

teamdbapi

This module enables you to easily access the TeamDB Web API.

  • Package version: 3.15.0
  • TeamDB Web API version: 2.0

Requirements.

  • Python 3.4+
  • TeamDB 3.15.0

Installation and usage

pip install

Install via pip.

pip install teamdbapi

Then import the package:

import teamdbapi 

Getting Started

Please follow the installation procedure above and then, depending your TeamDB WebApi configuration, try the following :

Using the HTTP protocole

import teamdbapi
from teamdbapi.rest import ApiException

# Create a Configuration object
configuration = teamdbapi.Configuration()
configuration.host = "http://localhost:9001" # Replace with your TeamDB API address if different

# Create an instance of the Client API
client_api = teamdbapi.ApiClient(configuration)

# Create an instance of the Assembly API using the client_api
assembly_api = teamdbapi.AssemblyApi(client_api)

# Try to execute the request
try:

    #  Retrieve and print the current assembly before modification
    result = assembly_api.get_current_assembly()
    print(result)

    # Set the desired current assembly, and print the response details
    result = assembly_api.select_current_assembly_with_http_info(assembly_id = "6189993b-ad4d-4c41-8268-8419a63e5554") # Replace with your own valid Assembly id.
    print(result)

    # Retrieve and print the current assembly after modification
    result = assembly_api.get_current_assembly()
    print(result)

except ApiException as e:
    print("Exception when selecting the current assembly : %s\n" % e)

Using the HTTPS protocole

import teamdbapi
from teamdbapi.rest import ApiException

# Create a Configuration object
configuration = teamdbapi.Configuration()
configuration.host = "https://localhost:9001" # Replace with your TeamDB API address if different
configuration.api_key['TDB_API_Key'] = 'user_token' # Replace {user_token} by a valid TeamDB WebApi user token.

# Create an instance of the Client API
client_api = teamdbapi.ApiClient(configuration)

# Create an instance of the Assembly API using the client_api
assembly_api = teamdbapi.AssemblyApi(client_api)

# Try to execute the request
try:

    #  Retrieve and print the current assembly before modification
    result = assembly_api.get_current_assembly()
    print(result)

    # Set the desired current assembly, and print the response details
    result = assembly_api.select_current_assembly_with_http_info(assembly_id = "6189993b-ad4d-4c41-8268-8419a63e5554") # Replace with your own valid Assembly id.
    print(result)

    # Retrieve and print the current assembly after modification
    result = assembly_api.get_current_assembly()
    print(result)

except ApiException as e:
    print("Exception when selecting the current assembly : %s\n" % e)

NOTE: Each method has a detailed version (for example: select_current_assembly => select_current_assembly_with_http_info). This can be useful, for example, if you want to retrieve a detailed response: content, HTTP status code, HTTP header.

Documentation for API Endpoints

With a TeamDB Client, check the documentation at http://localhost:9001 (Default value for the TeamDB Web API URL)

Documentation For Authorization

Endpoints are subject to the same authorization as in TeamDB.

Author

Trackside Software support@trackside.fr

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

teamdbapi-3.15.0.tar.gz (152.5 kB view details)

Uploaded Source

Built Distribution

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

teamdbapi-3.15.0-py3-none-any.whl (291.8 kB view details)

Uploaded Python 3

File details

Details for the file teamdbapi-3.15.0.tar.gz.

File metadata

  • Download URL: teamdbapi-3.15.0.tar.gz
  • Upload date:
  • Size: 152.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for teamdbapi-3.15.0.tar.gz
Algorithm Hash digest
SHA256 e650028498157e56d8b4af1ae1f8755e94e6db66961c458adad56013351e2ab3
MD5 3a53720b952173503df4b695d1cee891
BLAKE2b-256 ca23f34ccc478c915e9f009061066869dfe2ab3e71f084eefd684416fc721b32

See more details on using hashes here.

File details

Details for the file teamdbapi-3.15.0-py3-none-any.whl.

File metadata

  • Download URL: teamdbapi-3.15.0-py3-none-any.whl
  • Upload date:
  • Size: 291.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for teamdbapi-3.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a405ee541d4b5a5816c8c269415b8bfd815fdf1feeed63594d67f0e09f3566d
MD5 3d160046a512951fd24e276a8a334b53
BLAKE2b-256 e84ddbc8b61c24178d7100107ec747c3fcca4d6c41c459bec1ec9c5c25761a5e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

3.15.0 This release

2 files

3.14.0

2 files

3.13.0

2 files

3.12.3

2 files

3.12.0

2 files

3.11.0

2 files

3.10.1

2 files

3.10.0

2 files

3.9.0

2 files

3.8.0

2 files

3.7.0

2 files

3.6.0

2 files

3.5.0

2 files

3.4.0

2 files

3.3.0

2 files

3.2.0

2 files

3.0.0

2 files

2.37.2

2 files

2.37.1

2 files

2.31.1

2 files

2.31.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page