Thin Python client for metagraphed — the operational + integration registry for Bittensor subnets (api.metagraph.sh).
Project description
metagraphed (Python)
Thin, dependency-free Python client for metagraphed — the operational +
integration registry for Bittensor subnets at https://api.metagraph.sh.
It mirrors the npm client:
one generic GET helper over the uniform, read-only API surface, returning the
parsed { ok, schema_version, data, meta } envelope. Stdlib only — no transitive
dependencies.
Install
pip install metagraphed
Usage
from metagraphed import MetagraphedClient, metagraphed_fetch
client = MetagraphedClient() # base_url defaults to https://api.metagraph.sh
# List subnets (query params; None values are dropped). The /subnets collection
# nests its rows under data.subnets:
subnets = client.fetch(
"/api/v1/subnets",
query={"limit": 10, "sort": "completeness_score", "order": "desc"},
)
print(subnets["data"]["subnets"][0]["name"])
# One subnet by netuid (path params)
detail = client.fetch("/api/v1/subnets/{netuid}", path_params={"netuid": 7})
# Which subnets are buildable? (integration readiness lives in the agent catalog)
catalog = client.fetch("/api/v1/agent-catalog")
# Health of the registry itself:
health = metagraphed_fetch("/api/v1/health")
Every response is the standard envelope:
{"ok": True, "schema_version": 1, "data": ..., "meta": {...}}
On a network failure or non-2xx response, a MetagraphedError is raised (with
.status for HTTP errors).
Versioning & stability
Tracks the public /api/v1 contract; changes are additive within v1. See the
backend's API stability policy.
License
Apache-2.0 — see LICENSE. (The metagraphed backend itself is AGPL-3.0; this client SDK is permissively licensed so you can embed it freely.)
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 Distribution
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 metagraphed-0.1.1.tar.gz.
File metadata
- Download URL: metagraphed-0.1.1.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad8aee21b0da2afd2ee603977fec267f0cac3317f60c086f811d94ebb11add60
|
|
| MD5 |
2597a06848a8402f02d01ec117da0386
|
|
| BLAKE2b-256 |
a7dc7031ea6f30df114561befe757bd09df0708651aa8ca7427d164eff214186
|
Provenance
The following attestation bundles were made for metagraphed-0.1.1.tar.gz:
Publisher:
publish-python.yml on JSONbored/metagraphed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
metagraphed-0.1.1.tar.gz -
Subject digest:
ad8aee21b0da2afd2ee603977fec267f0cac3317f60c086f811d94ebb11add60 - Sigstore transparency entry: 1814907921
- Sigstore integration time:
-
Permalink:
JSONbored/metagraphed@3c0245e8adb11ab1e0d27df4aa1cfaffec711946 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/JSONbored
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@3c0245e8adb11ab1e0d27df4aa1cfaffec711946 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file metagraphed-0.1.1-py3-none-any.whl.
File metadata
- Download URL: metagraphed-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdbdab96ecc2417805392cdddf73174588d57a38636fb13b275e848c72fe696d
|
|
| MD5 |
78729aaf52b16cdc655ed3db33aa5f90
|
|
| BLAKE2b-256 |
a9780fae11bd466d89561e25b140431e05fce1efbf0d0df7c95b301c1b4d7005
|
Provenance
The following attestation bundles were made for metagraphed-0.1.1-py3-none-any.whl:
Publisher:
publish-python.yml on JSONbored/metagraphed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
metagraphed-0.1.1-py3-none-any.whl -
Subject digest:
cdbdab96ecc2417805392cdddf73174588d57a38636fb13b275e848c72fe696d - Sigstore transparency entry: 1814908004
- Sigstore integration time:
-
Permalink:
JSONbored/metagraphed@3c0245e8adb11ab1e0d27df4aa1cfaffec711946 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/JSONbored
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@3c0245e8adb11ab1e0d27df4aa1cfaffec711946 -
Trigger Event:
workflow_dispatch
-
Statement type: