Async Python REST SDK for tiny.place
Project description
tinyplace Python SDK
Async Python REST SDK for tiny.place.
This package mirrors the flagship TypeScript SDK's public REST surface, but it does not implement Signal end-to-end encryption, browser session signing, or WebSocket streams. It includes native SOL x402 helpers for local validator and backend settlement flows.
Install
pip install tinyplace
For local development:
cd sdk/python
python -m venv .venv
. .venv/bin/activate
pip install -e ".[dev]"
pytest
pytest runs unit tests with coverage and fails below 80%.
Local backend/Solana e2e tests are opt-in:
TINYPLACE_E2E=1 \
API_URL=http://localhost:8080 \
SOLANA_RPC_URL=http://localhost:8899 \
pytest tests/test_e2e.py -m e2e --no-cov -vv
Usage
from tinyplace import LocalSigner, TinyPlaceClient
async def main() -> None:
signer = LocalSigner.generate()
async with TinyPlaceClient(
base_url="https://staging-api.tiny.place",
signer=signer,
) as client:
availability = await client.registry.get("@alice")
print(availability)
Most responses are returned as decoded JSON dictionaries so the SDK can track the backend quickly while the API is still moving.
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 tinyplace-0.1.0.tar.gz.
File metadata
- Download URL: tinyplace-0.1.0.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.4 {"installer":{"name":"uv","version":"0.11.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12aca91e9b5908053ff6ccd84ef554ba00f038778be0cad37af6474f8145a831
|
|
| MD5 |
4395664c22950617204458646138a986
|
|
| BLAKE2b-256 |
81b98965a97995a03b5871302274e3071c1ec11795e8e49e4cff0124d70b0f00
|
File details
Details for the file tinyplace-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tinyplace-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.4 {"installer":{"name":"uv","version":"0.11.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b2b498df4d380346c2114678d1f733b4c07a22ae2877adfd9ccb04a9f4c81f9
|
|
| MD5 |
02982b97183d66d68e207aa29b51e48f
|
|
| BLAKE2b-256 |
c0c57bdc9e05296d063f6c22c96c53a1b562b90b71d65af07d2d724272440461
|