Skip to content

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

Terminal window
pip install subnoto-api-client
import asyncio
from 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())
OptionTypeRequiredDescription
api_base_urlstrYesAPI base URL (e.g., https://enclave.subnoto.com)
access_keystrYesAPI access key from your team settings
secret_keystrYesAPI secret key (hex-encoded) from your team settings
unattestedboolNoUse unattested mode for development (default: False)
attester_keybytesNoPublic key for attestation verification

For complete API documentation, see the OpenAPI specifications.