Easily access the TeamDB Web API.
Project description
teamdbapi
This module enables you to easily access the TeamDB Web API.
- Package version: 2.37.1
- TeamDB Web API version: 2.0
Requirements.
- Python 3.4+
- TeamDB 2.37.1
Installation and usage
pip install
Install via pip.
pip install teamdbapi
Then import the package:
import teamdbapi
Getting Started
Please follow the installation procedure and then run the following:
import teamdbapi
from teamdbapi.rest import ApiException
# Create a Configuration object
configuration = teamdbapi.Configuration()
configuration.host = "http://localhost:9001" # Replace with your the 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:
# Get response with http info (Content, HTTP Status Code, HTTP Header)
result = assembly_api.assembly_select_current_assembly_with_http_info(assembly_id = "ddbb76fa-a4eb-4e70-81d8-de66c664ce20")
print(result)
# Get only response content
result = assembly_api.assembly_select_current_assembly(assembly_id = "ddbb76fa-a4eb-4e70-81d8-de66c664ce20")
print(result)
except ApiException as e:
print("Exception when selecting the current assembly : %s\n" % e)
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
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
teamdbapi-2.37.1.tar.gz
(94.0 kB
view hashes)
Built Distribution
teamdbapi-2.37.1-py3-none-any.whl
(185.7 kB
view hashes)
Close
Hashes for teamdbapi-2.37.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89a3123b77904fd6a51d7344700b0adb68d54996579d1dbc6acc4f457cf9087d |
|
MD5 | 98ac6573b1f6adab1446761829951a8c |
|
BLAKE2b-256 | 1e14580399667c5a2d15d895b3500e096e3c2c5dbb0be4812e9aea5a9211152b |