Skip to main content

qubrics-core

PyPI version Python versions PyPI downloads Licence

Shared runtime helpers for the Qubrics Python SDK packages.

Documentation

Requirements

  • Python 3.10 or newer.
  • A surface package such as qubrics-sending, qubrics-mailbox, or qubrics-management for 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_key checks smx_root_* prefixes for root clients, send-capable smx_mbx_* prefixes or owner-approved Sending-resource smx_agent_* tokens for Sending clients, and mailbox-compatible smx_mbx_* or smx_agent_* prefixes for Mailbox clients.
  • configure_auth applies API-key bearer auth to generated client configuration objects. Surface factories also accept access_token as a bare token or callable; do not set both credential options.
  • idempotency_headers and conditional_headers prepare request headers.
  • iter_cursor_pages iterates cursor-paginated list responses.
  • RetryOptions configures retry behaviour for generated clients. A single retry layer honours retryable: false, server retry delays and the total retry deadline.
  • QubricsApiError normalises 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)

Source distribution for qubrics-core 2.0.0
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)

Table of built distributions (wheels) for qubrics-core 2.0.0
File Interpreter ABI Platform Actions
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.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files No provenance

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