Skip to main content

z4j domain core - models, protocols, transport, redaction, policy (Apache 2.0)

Project description

z4j-core

PyPI version Python License

The z4j domain core, shared models, protocols, transport, redaction, policy.

Pure-Python dependency for every z4j package. No framework / engine / database imports, so it can be vendored into agent processes without dragging server runtime weight. End users do not install this package directly; it ships as a transitive dependency of z4j or any agent package.

What's in here

  • Pydantic models, Task, Worker, Queue, Schedule, Event, Command, Agent, plus the wire-frame envelope types
  • Adapter protocols, QueueEngineAdapter, SchedulerAdapter, FrameworkAdapter. Every framework / engine / scheduler package implements one or more of these.
  • Wire protocol, frame definitions and the HMAC envelope used by z4j ↔ agent WebSocket transport (signed v2 protocol)
  • Redaction engine, strips secrets from logged event payloads (URLs, headers, kwargs, exceptions) before they hit the brain
  • Policy types, role-based action enums (Viewer / Operator / Admin), used by the brain's RBAC layer
  • Error hierarchy, shared exception classes so agents and brain agree on what counts as AuthorizationError vs NotFoundError vs ConflictError

Install

pip install z4j-core

End users normally get this as a transitive dependency. Direct installation is appropriate when you're building a custom adapter against the protocols.

Stability

The wire protocol is v=2 and additive within the 1.x major. Adapter protocols (QueueEngineAdapter, etc.) are stable contracts within the 1.x major; new optional methods may be added.

Documentation

Full docs at z4j.dev/concepts/architecture/.

License

Apache-2.0, see LICENSE.

Links

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_core-1.6.0.tar.gz (97.4 kB view details)

Uploaded Source

Built Distribution

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

z4j_core-1.6.0-py3-none-any.whl (96.8 kB view details)

Uploaded Python 3

File details

Details for the file z4j_core-1.6.0.tar.gz.

File metadata

  • Download URL: z4j_core-1.6.0.tar.gz
  • Upload date:
  • Size: 97.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for z4j_core-1.6.0.tar.gz
Algorithm Hash digest
SHA256 b8c051ceb8ca6beb6c83a177860116b476a82a6c0f850e75a1ade25dade2b08b
MD5 4bcf7fda90ba2136f671d4bd2166e628
BLAKE2b-256 20c36109113c0c4a98386b697235b00372dd8a168ca3a7e415cf1877213f8cb0

See more details on using hashes here.

File details

Details for the file z4j_core-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: z4j_core-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 96.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for z4j_core-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f38cbfdaae09a0cf076ab1ac056c5f9eedc20e4d0b79c65ae9bd1f7b93df1be
MD5 7e6c152e8a1e6d469e7b98c9d9fedea6
BLAKE2b-256 929754474db8c9f1431e0ddd3d4c434a5f242d0eec2a4f41677c4b5145b7a7cd

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