Catalog PyPI
PACKAGE EXPLORERView in registry

aice-core

PyPI

Shared HTTP transport, retry, error and auth primitives for the AICE Python SDKs

aicehttpsdktransport
Versions collected1
Direct dependencies8From release 0.3.0
Last observed21 Oct, 10:07 UTC

README

Version 0.3.0 documentation

aice-core

Shared primitives for every AICE Python SDK: HTTP transport, retry/backoff, typed errors, and auth context. Each service SDK (aice-reco-sdk, aice-knowledge, aice-crawler, …) depends on this package; nothing in here is service-specific.

What lives here

  • AuthContext holds the API key, decodes service scopes, raises InsufficientScopeError client-side before any request goes out.
  • SyncTransport / AsyncTransport the single _request() entry point every service client routes through. Injects auth, handles retries, maps HTTP errors to typed exceptions, sets User-Agent.
  • Error hierarchy (aice_core.exceptions) one shared set of errors.
  • Page[T] generic paginated iterator (SyncPage / AsyncPage).

What doesn't live here

Service-specific endpoints, request/response models, or resource classes. Those are in their own packages under python/<service>/.

Why this exists

Six different implementations of "retry on 5xx with exponential backoff, map 401 to AuthError" is five too many. Fixing retry once, here, fixes retry everywhere.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.3.028 Sept 20268

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 10:07 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:e36f3b3e77c122e615ee5d1905217b9fad56a3635a7c2d90be1f0f70f3829439