Official Python client for the Pyronites (PyroCore) backend
Project description
pyronites
Official Python client for the Pyronites backend.
Supabase-style API, zero mandatory paid services — point it at your own backend URL + API key.
Install
# Development (from this repo)
pip install -e ./pyronites
# From PyPI (after publish)
pip install pyronites
Requires Python 3.10+.
5-minute setup
export PYRONITES_URL="https://your-backend.example.com"
export PYRONITES_KEY="pyro_live_..."
from pyronites import create_client
client = create_client()
# Auth (optional)
client.auth.sign_in("user@example.com", "password")
print(client.auth.user())
# Tables
note = client.table("notes").insert({"title": "Hello", "body": "World"})
for row in client.table("notes").select().limit(10):
print(row)
client.table("notes").update({"title": "Updated"}).eq("id", note["id"])
client.table("notes").delete().eq("id", note["id"])
# Storage
meta = client.storage.upload("photo.jpg")
data = client.storage.download(meta["id"])
client.storage.remove(meta["id"])
# Local-only / cache tables (optional)
client = create_client(
local_tables=["settings"],
cache_tables=["catalog"],
local_db_path="./.pyronites_local.db",
)
client.table("settings").insert({"theme": "dark"})
client.pull("catalog")
Config
| Source | Variables / args |
|---|---|
| Env | PYRONITES_URL, PYRONITES_KEY, optional PYRONITES_LOCAL_DB |
| Constructor | create_client(url=..., key=..., timeout=30, local_tables=..., cache_tables=..., remote_tables=..., local_db_path=...) |
Args override env. Missing URL raises a clear error at create time.
Security: never put a powerful service key in a public frontend.
Public API
See docs/syntax.md.
Development
cd pyronites
pip install -e ".[dev]"
pytest
License
MIT
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 pyronites-0.1.0.tar.gz.
File metadata
- Download URL: pyronites-0.1.0.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99daeb5399ecf56b3fe6924916b28c5f51889c2887706068c3eaf0ed23d384f2
|
|
| MD5 |
156d6cb67065cdb742bc6d51cb033089
|
|
| BLAKE2b-256 |
79b7be26875007d80837ca6c72ad320bc1244f3d0903cd180ee3734d152a4e87
|
File details
Details for the file pyronites-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyronites-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bc69c93200b4f71dde7fcbf4e20ba5071bb960c227e1bd7adb5f98ee3b876f5
|
|
| MD5 |
e8696126ed0488555ab79e4975ebdd94
|
|
| BLAKE2b-256 |
a396fbd1384f22e04d71be6c6b10a81a59cf3571fe8fa4baacf1b487f227c637
|