Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
This module enables you to easily access the TeamDB Web API.
Install via pip.
pip install teamdbapi
Then import the package:
import teamdbapi
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.select_current_assembly_with_http_info(assembly_id = "6189993b-ad4d-4c41-8268-8419a63e5554")
print(result)
# Get only response content
result = assembly_api.select_current_assembly(assembly_id = "6189993b-ad4d-4c41-8268-8419a63e5554")
print(result)
except ApiException as e:
print("Exception when selecting the current assembly : %s\n" % e)
With a TeamDB Client, check the documentation at http://localhost:9001 (Default value for the TeamDB Web API URL)
Endpoints are subject to the same authorization as in TeamDB.
FAQs
Easily access the TeamDB Web API.
We found that teamdbapi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.