Skip to main content

z4j framework-free agent bootstrapper (Apache 2.0)

Project description

z4j-bare

License: Apache 2.0 Status: Phase 1 scaffolding — not yet implemented.

Framework-free agent bootstrapper for z4j. Ships in v1 both as a working reference for standalone Python workers and as proof that the domain core is actually framework-free.

What it does (once implemented)

  • Provides AgentRuntime — the pure-Python agent runtime
  • WebSocket client with exponential-backoff reconnect
  • HTTPS long-poll fallback for restricted networks
  • Local SQLite buffer (crash-safe event storage)
  • Command dispatcher
  • Heartbeat loop
  • CLI entry point: python -m z4j_bare run --config ...

Use cases

  • Pure Celery worker projects (no web framework)
  • ML pipelines that run Celery but don't use Django
  • Environments where you want to run the agent as a separate process

Installation (once v0.1.0-alpha ships)

pip install z4j-bare z4j-celery

Usage

from celery import Celery
from z4j_bare import install_agent
from z4j_celery import CeleryEngineAdapter

app = Celery("myproject", broker="redis://localhost/0")

agent = install_agent(
    engines=[CeleryEngineAdapter(celery_app=app)],
    brain_url="https://z4j.internal",
    token="z4j_agent_...",
    project_id="ml-pipeline-prod",
)

Or as a standalone process:

python -m z4j_bare run \
    --brain-url https://z4j.internal \
    --token $Z4J_TOKEN \
    --project-id ml-pipeline-prod \
    --engine celery \
    --celery-app myproject.celery:app

See docs/ADAPTER.md §6 for the full bare-Python integration guide.

Project details


Download files

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

Source Distribution

z4j_bare-2026.4.0a1.tar.gz (39.5 kB view details)

Uploaded Source

Built Distribution

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

z4j_bare-2026.4.0a1-py3-none-any.whl (40.8 kB view details)

Uploaded Python 3

File details

Details for the file z4j_bare-2026.4.0a1.tar.gz.

File metadata

  • Download URL: z4j_bare-2026.4.0a1.tar.gz
  • Upload date:
  • Size: 39.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.8

File hashes

Hashes for z4j_bare-2026.4.0a1.tar.gz
Algorithm Hash digest
SHA256 fd5b6f4c5775127a82d9687a0948f43495756c4f456381d797dd449222462774
MD5 024ee024063414ec98a24a824f4827f8
BLAKE2b-256 585c7a247219e09e834e7e19e480dc8433d48768a3abeb02bf1f5ffa457f9088

See more details on using hashes here.

File details

Details for the file z4j_bare-2026.4.0a1-py3-none-any.whl.

File metadata

  • Download URL: z4j_bare-2026.4.0a1-py3-none-any.whl
  • Upload date:
  • Size: 40.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.8

File hashes

Hashes for z4j_bare-2026.4.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 fdad5aad00c57f96be056cd93db897b71d78dc54c83c2ffe838c8f0cc61c9b52
MD5 04626313fc39c0eadb3a15d3edf31b57
BLAKE2b-256 bd424ca3cc75cd7a2b31a885eeb1627612417aa32b9afef46a5c85c0be510846

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page