Main API Module
This is the main API module that provides the core functionality for interacting with the DataMint API.
- class datamint.api.client.Api(server_url=None, api_key=None, timeout=60.0, max_retries=2, check_connection=True, verify_ssl=True)
Bases:
objectMain API client that provides access to all endpoint handlers.
- Parameters:
server_url (
str|None)api_key (
str|None)timeout (
float)max_retries (
int)check_connection (
bool)verify_ssl (
bool|str)
- DATAMINT_API_VENV_NAME = 'DATAMINT_API_KEY'
- DEFAULT_SERVER_URL = 'https://api.datamint.io'
- property annotations: AnnotationsApi
- property annotationsets: AnnotationSetsApi
- property channels: ChannelsApi
- check_connection()
- close()
Close underlying HTTP clients and any shared aiohttp sessions.
Recommended for notebooks / long-running processes.
- Return type:
None
- property deploy: DeployModelApi
Access deployment management endpoints.
- property inference: InferenceApi
Access model inference endpoints.
- property projects: ProjectsApi
- property resources: ResourcesApi