Skip to main content

boldsec (Python)

BoLD live authorization monitoring for Python. boldsec.core is a hand-port of @boldsec/core (the shared TypeScript extraction core): the same id/owner/scope/tenant/GraphQL extraction. Verified against the JS core on the full shared golden conformance vector suite (web/sdk/bold-conformance/test-vectors*.json, run end to end against a real FastAPI target), the hand-lifted unit cases ported from extract.test.ts/observe.test.ts, a mechanical regex battery generated from the real built @boldsec/core regex objects, and a set of differential tests added specifically for traps a naive port would get wrong (JS's Object.values() integer-index key reordering, the four-character JS line-terminator class, and JS truthiness/String()/?? semantics on off-contract resolver values). This is not a claim of byte-parity on every conceivable input; see boldsec/core.py's module docstring for the one disclosed, bounded ceiling (a non-integer-fractional float's string representation).

boldsec.fastapi is the FastAPI adapter: a custom APIRoute subclass that reads the framework's authoritative matched route param and the already-buffered request/response bodies, then hands a NeutralObservation to boldsec.core.observe_neutral(), which composes and ships the metadata event. The adapter contains zero extraction logic; it only translates.

Metadata only, fail-safe: no payloads, credentials, or response bodies are ever persisted or logged, and any error inside the adapter can never break, slow, or alter the wrapped application's response.

See web/UNIVERSAL_SDK_PHASE_2_DESIGN.md (Section B) and web/UNIVERSAL_SDK_PHASE_2_BUILD_PLAN.md (Phase 2.2) for the governing design and build plan.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

boldsec-0.1.0.tar.gz (124.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

boldsec-0.1.0-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

Details for the file boldsec-0.1.0.tar.gz.

File metadata

  • Download URL: boldsec-0.1.0.tar.gz
  • Upload date:
  • Size: 124.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for boldsec-0.1.0.tar.gz
Algorithm Hash digest
SHA256 94350363cbacc30a6bfcfdb0ee9b032853f68352e0dfaba43e7ba7fb44c011af
MD5 4534a011bd0b11171495bdac291bd979
BLAKE2b-256 dd9f51c032c645ae41f02e14ddeb162614c2f46bf0e0739caf466a3978510641

See more details on using hashes here.

File details

Details for the file boldsec-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: boldsec-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 27.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for boldsec-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bafa8219e5f5716126f6366ddf50c0d5c0dfb385e20e5f34697d86dceb816131
MD5 721fd91edb72edf73fe4b8f21bc5614f
BLAKE2b-256 c2b263881741581f1b3f21b65f204ce64fa19196df836298b6d03c2c7d9395c8

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

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