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.
Set your credentials as environment variables:
export SUBNOTO_ACCESS_KEY="your-access-key"
export SUBNOTO_SECRET_KEY="your-secret-key-hex"
Async Example
import asyncio
from subnoto_api_client import SubnotoClient, SubnotoConfig
async def main():
async with SubnotoClient(SubnotoConfig()) 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
with SubnotoSyncClient(SubnotoConfig()) as client:
response = client.post("/public/workspace/list", json={})
print(f"Workspaces: {response.json()}")
Configuration
| Option | Type | Required | Description |
|---|---|---|---|
access_key |
str | No | API access key (default: SUBNOTO_ACCESS_KEY env var) |
secret_key |
str | No | API secret key, hex-encoded (default: SUBNOTO_SECRET_KEY env var) |
api_base_url |
str | No | API base URL (default: https://enclave.subnoto.com) |
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 Distributions
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.10.0-cp311-abi3-manylinux2014_x86_64.whl.
File metadata
- Download URL: subnoto_api_client-2.10.0-cp311-abi3-manylinux2014_x86_64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.11+
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e802ca38888bdc101569689e95ecab780c3aad9bd9aedc92df7875eb19ce5fcc
|
|
| MD5 |
bc919004defe5a5c27cf54decd9892cf
|
|
| BLAKE2b-256 |
c61a89217c07a7aaaf705deb1ffd72d03373caa25313292fae81dda057b3ff70
|
Provenance
The following attestation bundles were made for subnoto_api_client-2.10.0-cp311-abi3-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.10.0-cp311-abi3-manylinux2014_x86_64.whl -
Subject digest:
e802ca38888bdc101569689e95ecab780c3aad9bd9aedc92df7875eb19ce5fcc - Sigstore transparency entry: 1091052638
- Sigstore integration time:
-
Permalink:
subnoto/subnoto-monorepo-public@258eb5e74fa5448f740a2090b11eefb65e1ec366 -
Branch / Tag:
refs/tags/v2.10.0 - Owner: https://gitlab.com/subnoto
-
Access:
public
-
Token Issuer:
https://gitlab.com -
Runner Environment:
gitlab-hosted -
Publication workflow:
.gitlab-ci.yml@258eb5e74fa5448f740a2090b11eefb65e1ec366 -
Trigger Event:
push
-
Statement type:
File details
Details for the file subnoto_api_client-2.10.0-cp311-abi3-manylinux2014_aarch64.whl.
File metadata
- Download URL: subnoto_api_client-2.10.0-cp311-abi3-manylinux2014_aarch64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.11+
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ee30f3bb5bd413047d22ab9d4617b96b4af753df72e27205250d375f0d354c1
|
|
| MD5 |
798fc78affdaf1afdeb57a370b075080
|
|
| BLAKE2b-256 |
1c423514ed2d465f000078f7e756599108e13567c2792182fb1b460b69f9c5fa
|
Provenance
The following attestation bundles were made for subnoto_api_client-2.10.0-cp311-abi3-manylinux2014_aarch64.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.10.0-cp311-abi3-manylinux2014_aarch64.whl -
Subject digest:
2ee30f3bb5bd413047d22ab9d4617b96b4af753df72e27205250d375f0d354c1 - Sigstore transparency entry: 1091052632
- Sigstore integration time:
-
Permalink:
subnoto/subnoto-monorepo-public@258eb5e74fa5448f740a2090b11eefb65e1ec366 -
Branch / Tag:
refs/tags/v2.10.0 - Owner: https://gitlab.com/subnoto
-
Access:
public
-
Token Issuer:
https://gitlab.com -
Runner Environment:
gitlab-hosted -
Publication workflow:
.gitlab-ci.yml@258eb5e74fa5448f740a2090b11eefb65e1ec366 -
Trigger Event:
push
-
Statement type:
File details
Details for the file subnoto_api_client-2.10.0-cp311-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: subnoto_api_client-2.10.0-cp311-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.11+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df536c649775d821884dff7538100e8f474e251901be7cef89e49c68acf2a3f7
|
|
| MD5 |
042a82e52f9904d6f214b17a65422112
|
|
| BLAKE2b-256 |
cf804a8201dc9c98cff7a5f555402bffcda95ba9a706f05438f881b25ec14f97
|
Provenance
The following attestation bundles were made for subnoto_api_client-2.10.0-cp311-abi3-macosx_11_0_arm64.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.10.0-cp311-abi3-macosx_11_0_arm64.whl -
Subject digest:
df536c649775d821884dff7538100e8f474e251901be7cef89e49c68acf2a3f7 - Sigstore transparency entry: 1091052625
- Sigstore integration time:
-
Permalink:
subnoto/subnoto-monorepo-public@258eb5e74fa5448f740a2090b11eefb65e1ec366 -
Branch / Tag:
refs/tags/v2.10.0 - Owner: https://gitlab.com/subnoto
-
Access:
public
-
Token Issuer:
https://gitlab.com -
Runner Environment:
gitlab-hosted -
Publication workflow:
.gitlab-ci.yml@258eb5e74fa5448f740a2090b11eefb65e1ec366 -
Trigger Event:
push
-
Statement type: