Python SDK
The Python SDK provides an async client for integrating with Subnoto’s API
The package is only available on the linux/amd64 platform for now
Installation
Section titled “Installation”pip install subnoto-api-clientQuick Start
Section titled “Quick Start”import asynciofrom subnoto_api_client import SubnotoClient, SubnotoConfig
async def main(): config = SubnotoConfig( api_base_url="https://enclave.subnoto.com", access_key="your-access-key", secret_key="your-secret-key-hex" )
async with SubnotoClient(config) as client: # List workspaces response = await client.post("/public/workspace/list", json={}) workspaces = response.json()
# Get current user info response = await client.post("/public/utils/whoami", json={}) user_info = response.json()
if __name__ == "__main__": asyncio.run(main())Configuration
Section titled “Configuration”| Option | Type | Required | Description |
|---|---|---|---|
api_base_url | str | Yes | API base URL (e.g., https://enclave.subnoto.com) |
access_key | str | Yes | API access key from your team settings |
secret_key | str | Yes | API secret key (hex-encoded) from your team settings |
unattested | bool | No | Use unattested mode for development (default: False) |
attester_key | bytes | No | Public key for attestation verification |
API Reference
Section titled “API Reference”For complete API documentation, see the OpenAPI specifications.
Package
Section titled “Package”- PyPI: subnoto-api-client
- License: Apache-2.0