Python client for the Rivera service
Project description
Rivera Python Client
Python SDK for talking to a Rivera service.
Install
pip install rivera
Quick start
from rivera import RiveraClient
# Create the base client with backend credentials
client = RiveraClient(
base_url="https://demo.rivera.app",
api_key="backend-api-key",
)
# Manage collections via the backend namespace
client.backend.collections.create({"name": "orders"})
# Sign a tenant and derive a frontend-scoped client
signed = client.backend.sign("tenant-123")
tenant_client = client.with_identity(signed)
# Frontend operations require the signed identity
tenant_client.frontend.records.create("orders", {"id": "o1", "status": "pending"})
records = tenant_client.frontend.records.list("orders")
Developing
python -m venv .venv
source .venv/bin/activate
pip install -e .[dev]
pytest
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rivera-0.0.1.tar.gz
(5.3 kB
view details)
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 rivera-0.0.1.tar.gz.
File metadata
- Download URL: rivera-0.0.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a86512eff7465fe5794e50cd30ffcd544ece54b78c943318988f637b3f1714cc
|
|
| MD5 |
85f5ebc684b5030ed9616b9c9a04392e
|
|
| BLAKE2b-256 |
d535741b4a720e9e1ea602b286615b69c9c862bf69a807aaa7105a6678709ce7
|
File details
Details for the file rivera-0.0.1-py3-none-any.whl.
File metadata
- Download URL: rivera-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74c9ea59059370c6472f1d21e5a4f35d90c4640b8bee990d46df2e662999da43
|
|
| MD5 |
a024977165dbb7302323793c2126fdca
|
|
| BLAKE2b-256 |
b5927e740d7084ce3a46eac7d15d0d108adeebee0a51a927bbed8e11b838c037
|