qubrics-core
Shared runtime helpers for the Qubrics Python SDK packages.
Documentation
- Qubrics docs: qubrics.com/docs
- Source repository: qubrics/qubrics-sdk
Requirements
- Python 3.10 or newer.
- A surface package such as
qubrics-sending,qubrics-mailbox, orqubrics-managementfor API operations.
Installation
These commands target the Qubrics release of qubrics-core. Until it is published, install sendmux-core with its existing import names.
pip install qubrics-core
Usage
Validate an API key prefix and prepare request headers before calling a surface package.
import os
from qubrics.core import conditional_headers, idempotency_headers, validate_api_key
validate_api_key(os.environ["QUBRICS_MAILBOX_API_KEY"], surface="mailbox")
headers = {
**idempotency_headers("idem_123"),
**conditional_headers(if_none_match='W/"etag"'),
}
Helpers
validate_api_keycheckssmx_root_*prefixes for root clients, send-capablesmx_mbx_*prefixes or owner-approved Sending-resourcesmx_agent_*tokens for Sending clients, and mailbox-compatiblesmx_mbx_*orsmx_agent_*prefixes for Mailbox clients.configure_authapplies API-key bearer auth to generated client configuration objects. Surface factories also acceptaccess_tokenas a bare token or callable; do not set both credential options.idempotency_headersandconditional_headersprepare request headers.iter_cursor_pagesiterates cursor-paginated list responses.RetryOptionsconfigures retry behaviour for generated clients. A single retry layer honoursretryable: false, server retry delays and the total retry deadline.QubricsApiErrornormalises API errors and request IDs.
Support
Open an issue in qubrics/qubrics-sdk with the package name, version, and request ID from any API error.
Licence
MIT. See the licence file.
Metadata
Release files for qubrics-core 2.0.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 | Provenance | Actions |
|---|---|---|---|---|
| qubrics_core-2.0.0.tar.gz | 7.2 kB | Without provenance | Details for qubrics_core-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qubrics_core-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for qubrics_core-2.0.0-py3-none-any.whl |
Total release size: 15.7 kB
Release files / qubrics_core-2.0.0.tar.gz
| Download URL | qubrics_core-2.0.0.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c7309faf34a32af1c612123c0e15f7bd943a44f214051dd9e3e2bf1f251fec72
|
|
BLAKE2b-256 checksum How to use checksums |
713b34f2294cbea3b39167844126f0b7b695de56086129564df10de4f95668b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / qubrics_core-2.0.0-py3-none-any.whl
| Download URL | qubrics_core-2.0.0-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10a04096064e7177f0a654f736de0bca5de78b14eb15ccc37a6fad89d65a01dd
|
|
BLAKE2b-256 checksum How to use checksums |
ac6d5cc94156d316217ca74a6795abf749e0cd31b80e9b93e94fccb28f8f77b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Security for qubrics-core 2.0.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.