Skip to main content

brussle (Python)

from brussle import And, Client

db = Client(api_key="...")
ns = db.namespace("acme/prod/tenant_123")
ns.write(upsert=[{"id": "t_123", "attributes": {"plan": "pro"}, "state": {"subject": "Refund"}}])
page = ns.query(filters=And(("attributes.plan", "Eq", "pro"), ("answers.needs_escalation.p", "Gte", 0.85)), top_k=10)

To load many documents, import_documents takes any iterable and writes it in batches, 4 at a time on a thread pool, with retries:

summary = ns.import_documents(records(), concurrency=4)
print(summary.documents, summary.failures)

Methods mirror the API's routes. Every route that changes something takes idempotency_key=. Reads, writes and calls with a key are retried after network errors, timeouts and 5xx, 2 times by default (max_retries). Requests and responses are plain JSON, typed in brussle.types. Filters and rank_by are tuples. Errors raise ApiError with the API's code and details, or unknown for an error response that is not the API's JSON (such as a proxy's error page), or a success whose body is not JSON. A call your organization's plan doesn't include raises plan_required (402), and details["required_plan"] names the plan that does. See the SDK overview.

Metadata

Release files for brussle 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brussle 1.1.0
File Size Uploaded Provenance Actions
brussle-1.1.0.tar.gz 122.0 kB Without provenance Details for brussle-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for brussle 1.1.0
File Interpreter ABI Platform Actions
brussle-1.1.0-py3-none-any.whl Python 3 none any Details for brussle-1.1.0-py3-none-any.whl

Total release size: 194.6 kB

Release files / brussle-1.1.0.tar.gz

Download URL brussle-1.1.0.tar.gz
Size 122.0 kB
Tags Source
SHA-256 checksum
How to use checksums
eb228371000f25b92fb6644ee8f1bdc2e2e924a12f938a84b6433e871fab60c7
BLAKE2b-256 checksum
How to use checksums
b17faf5256aa96563b532ffd938f6d2b3fc9a4b3e182173e8449c25a82efbf78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","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 / brussle-1.1.0-py3-none-any.whl

Download URL brussle-1.1.0-py3-none-any.whl
Size 72.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d3bc8d9cf9bfe4cf5481065bbace93ecb440560e65850a770184b5c554e351a
BLAKE2b-256 checksum
How to use checksums
eb65df4102a83d97109780fce24d47217b2cba759645ee1f857b1ac8f743333d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","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}

Security for brussle 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page