arbi
Official Python client for the ARBI API, auto-generated from the OpenAPI specification.
Installation
pip install arbi
Quick start
from arbi_client import Client, AuthenticatedClient
from arbi_client.api.user import login_user
from arbi_client.models import LoginRequest
# 1. Log in with the unauthenticated client
with Client(base_url="https://your-instance.arbicity.com") as c:
response = login_user.sync_detailed(
client=c,
body=LoginRequest(
email="user@example.com",
signature="<base64-ed25519-signature>",
timestamp=1700000000,
),
)
login = response.parsed
token = login.access_token
# 2. Use the JWT for all authenticated requests
with AuthenticatedClient(base_url="https://your-instance.arbicity.com", token=token) as c:
...
Login uses Ed25519 signature-based authentication: the client derives a keypair from the user's password, signs email|timestamp, and sends the signature. The server verifies it against the stored public key and returns a JWT. See the ARBI documentation for details on the key derivation and signing process.
Async support
Every endpoint has both sync and async variants:
from arbi_client import AuthenticatedClient
from arbi_client.api.user import get_user_workspaces
async with AuthenticatedClient(base_url="https://your-instance.arbicity.com", token=token) as c:
workspaces = await get_user_workspaces.asyncio(client=c)
API structure
Each endpoint is a Python module with four functions:
| Function | Blocking | Returns |
|---|---|---|
sync |
Yes | Parsed data or None |
sync_detailed |
Yes | Full Response object |
asyncio |
No | Parsed data or None |
asyncio_detailed |
No | Full Response object |
Endpoints are grouped by tag under arbi_client.api:
arbi_client.api.user # login, register, settings
arbi_client.api.workspace # workspace management
arbi_client.api.document # document upload and tagging
arbi_client.api.conversation # conversations and messages
arbi_client.api.assistant # AI assistant queries
arbi_client.api.tag # tag management
arbi_client.api.configs # configuration management
arbi_client.api.notifications # notification management
arbi_client.api.health # health checks
Links
Metadata
Release files for arbi 1.37.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| arbi-1.37.0.tar.gz | 362.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| arbi-1.37.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.3 MB
Release files / arbi-1.37.0.tar.gz
| Download URL | arbi-1.37.0.tar.gz |
|---|---|
| Size | 362.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9cc382e445a44755687add58414d53ca451554ed266b85c12b214c710864d4e4
|
|
BLAKE2b-256 checksum How to use checksums |
e12b1f372fdf8ba12f7a17ec49c148f452136241650e8022b9ca640086853d38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / arbi-1.37.0-py3-none-any.whl
| Download URL | arbi-1.37.0-py3-none-any.whl |
|---|---|
| Size | 962.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1421762bb95b0f3f49f2a6a89f7434b5a6f8a34faab658b31d21c9ab44a36f3
|
|
BLAKE2b-256 checksum How to use checksums |
f37c7c12b5077c2ffd49c2524ab2a7dd48d1e68380b8270f1250846837b5e763
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|