Registry / blockchain / datastar-py

datastar-py

JSON →
library1.0.2pypypi✓ verified 79d ago

Official Python SDK for interacting with the Datastar blockchain platform (https://data-star.dev/). Provides client classes for managing cryptographic keys, signing transactions, and querying on-chain data. Current version 1.0.2, released monthly.

pip install datastar-py
INSTALL
IMPORT
SIG · DATASTAR-PY
D
datastar-py
blockchainpythonv1.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ServerSentEventGenerator
from datastar_py import ServerSentEventGenerator
from datastar import DatastarClient

Initialize client with API key and query a balance.

from datastar import DatastarClient from datastar.keys import KeyManager import os api_key = os.environ.get('DATASTAR_API_KEY', 'your-api-key') client = DatastarClient(api_key=api_key) # Example: get account balance balance = client.get_balance('0x123...') print(balance)
Debug
Known issues
breakingIn version 1.0.0, the API key authentication method changed from query parameter to header.
fix
Upgrade to >=1.0.0 and pass api_key as string to DatastarClient constructor.
affects: <1.0.0
gotchaThe package name is 'datastar-py' but the import path uses underscore: 'datastar'. Pip installing 'datastar' gets a different unrelated package.
fix
Always use 'pip install datastar-py' and then 'import datastar'.
affects: all
Upgrade
Version history
1.0.2latest on PyPI · released Jun 2, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
30
OpenAI (training)
1
Resources
datastar-py — pip install datastar-py · libregistry