Skip to main content

Zubbl Runtime

Core Python runtime client for Zubbl Runtime Guard.

zubbl-runtime provides the shared runtime, bootstrap, signing, policy enforcement, resilience and transport components used by the Zubbl framework adapters.

Requirements

  • Python 3.10+

Installation

pip install zubbl-runtime

Most developers should install a framework adapter such as zubbl-fastapi, which installs this package automatically.

API keys

Supply the API key through the application environment. Never place a real Zubbl key in source code, Git, logs or screenshots.

export ZUBBL_API_KEY="zubbl_sk_..."

For local development, use an uncommitted environment file loaded by your application. Hosted applications should use their platform-managed environment variables or secrets.

Bootstrap errors

BootstrapError.retryable distinguishes temporary network, timeout, HTTP 408, HTTP 429 and HTTP 5xx failures from non-retryable credential or configuration errors. This bootstrap policy is separate from the remotely supplied runtime_fail_mode.

Trusted network context

When a framework adapter supplies a client IP, Runtime Guard uses a signed Zubbl Worker request to resolve trusted country, ASN, VPN and hosting information before local policy enforcement. Results are cached by IP to avoid a remote lookup for every request.

If trusted network information is temporarily unavailable, country remains XX. Geo policies allow unknown countries by default; applications can explicitly set unknown_country_default to deny when strict handling is required.

This normal path does not require trusting user-supplied proxy headers.

Policy refresh

Runtime Guard periodically refreshes effective policies using the polling interval supplied during bootstrap. Policy changes therefore take effect without restarting the protected application. The longer cache lifetime remains available for last-known-good policy recovery when Zubbl is temporarily unavailable.

Download files

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

Source Distribution

zubbl_runtime-0.1.12.tar.gz (55.0 kB view details)

Uploaded Source

Built Distribution

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

zubbl_runtime-0.1.12-py3-none-any.whl (41.2 kB view details)

Uploaded Python 3

File details

Details for the file zubbl_runtime-0.1.12.tar.gz.

File metadata

  • Download URL: zubbl_runtime-0.1.12.tar.gz
  • Upload date:
  • Size: 55.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for zubbl_runtime-0.1.12.tar.gz
Algorithm Hash digest
SHA256 6e42badfcf7059f3a02ad2dadb246ad4e9d5056661b11961fe23beb6fc7712ca
MD5 782227aeb1b0718701429270070594f4
BLAKE2b-256 401c47b4a9accfd62f75201bb0b66301cc419bdcf2154214eb0140e4310c5b96

See more details on using hashes here.

File details

Details for the file zubbl_runtime-0.1.12-py3-none-any.whl.

File metadata

  • Download URL: zubbl_runtime-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 41.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for zubbl_runtime-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 ae62e8ec87b13c509e9dbe90af96c6a89c6785b3dc39a3e83ebc119685086b5c
MD5 e15f8e8f952df07af2b3b408d6319f01
BLAKE2b-256 02f8e24b8bd0e5aa2fd88d15c7472f334d4b514e20fa42578f61cc423df553fb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.12 This release

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

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