Python client for the Subnoto Public API
Project description
Subnoto Python SDK
Python client for the Subnoto Public API
Note: the SDK is only available on the linux/amd64 platform for now
Installation
pip install subnoto-api-client
Usage
The SDK provides both async and sync clients. Use SubnotoClient for async/await code
or SubnotoSyncClient for synchronous code.
Async Example
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:
response = await client.post("/public/workspace/list", json={})
print(f"Workspaces: {response.json()}")
if __name__ == "__main__":
asyncio.run(main())
Sync Example
from subnoto_api_client import SubnotoSyncClient, SubnotoConfig
config = SubnotoConfig(
api_base_url="https://enclave.subnoto.com",
access_key="your-access-key",
secret_key="your-secret-key-hex"
)
with SubnotoSyncClient(config) as client:
response = client.post("/public/workspace/list", json={})
print(f"Workspaces: {response.json()}")
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 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file subnoto_api_client-2.6.4-py3-none-manylinux2014_x86_64.whl.
File metadata
- Download URL: subnoto_api_client-2.6.4-py3-none-manylinux2014_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
449730484d7b768b836d6535a2a06ce0ad5599c6d8253ef52fcfc6f45736acab
|
|
| MD5 |
769e2587bb3d4e8e6c25e1d469b8467b
|
|
| BLAKE2b-256 |
0aed77f7ff0fba085d9aa6ea9fd29d9dc526243b0ac83c2f7f39cc3b90c83ba6
|
Provenance
The following attestation bundles were made for subnoto_api_client-2.6.4-py3-none-manylinux2014_x86_64.whl:
Publisher:
.gitlab-ci.yml on subnoto/subnoto-monorepo-public
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
subnoto_api_client-2.6.4-py3-none-manylinux2014_x86_64.whl -
Subject digest:
449730484d7b768b836d6535a2a06ce0ad5599c6d8253ef52fcfc6f45736acab - Sigstore transparency entry: 984174542
- Sigstore integration time:
-
Permalink:
subnoto/subnoto-monorepo-public@f5c19e15f6b8751af44782b915e5513abe00cc7a -
Branch / Tag:
refs/tags/v2.6.4 - Owner: https://gitlab.com/subnoto
-
Access:
public
-
Token Issuer:
https://gitlab.com -
Runner Environment:
gitlab-hosted -
Publication workflow:
.gitlab-ci.yml@f5c19e15f6b8751af44782b915e5513abe00cc7a -
Trigger Event:
push
-
Statement type: