Python client for the ARBI API
Project description
arbi
Official Python client for the ARBI API, auto-generated from the OpenAPI specification.
Installation
pip install arbi
Quick start
ARBI uses Ed25519 signature-based authentication. The login endpoint does not require a token — you use the unauthenticated Client to log in, then switch to AuthenticatedClient with the JWT from the response.
from arbi_client import Client, AuthenticatedClient
from arbi_client.api.user import login_user
from arbi_client.models import LoginRequest
# 1. Log in (no token needed)
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="<ed25519-signature>",
timestamp=1700000000,
),
)
login = response.parsed
token = login.access_token
# 2. Use the token for authenticated requests
with AuthenticatedClient(base_url="https://your-instance.arbicity.com", token=token) as c:
# Make authenticated API calls
...
Async support
Every endpoint has both sync and async variants:
from arbi_client import AuthenticatedClient
from arbi_client.api.workspace 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
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 arbi-0.50.2.tar.gz.
File metadata
- Download URL: arbi-0.50.2.tar.gz
- Upload date:
- Size: 91.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","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":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80366c10d67b936197c96b8278d36206472ff33179fae3233bcbc23586d697ab
|
|
| MD5 |
2ad99f25a33de373df7a8c023c6c75aa
|
|
| BLAKE2b-256 |
79c3856925a6df8fbe80ff8bccbcff4a39934ef74a5226bdd7bae601917e4108
|
File details
Details for the file arbi-0.50.2-py3-none-any.whl.
File metadata
- Download URL: arbi-0.50.2-py3-none-any.whl
- Upload date:
- Size: 273.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","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":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91cc97097a0748fcaadab5b061a78300468c7db58e124cb0d8e37e73430bd24a
|
|
| MD5 |
2a9e6c8821f054f723ca312e8857a56c
|
|
| BLAKE2b-256 |
0ff1679524b8d508933e1a35a79855e333992b6aed6d62288699205887437191
|