Skip to main content

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.

Compatibility

Python 3.11+. Pure-Python, no framework or database imports.

Full per-adapter matrix at https://z4j.dev/reference/compatibility/.

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, scrubs values that match the built-in or operator-configured patterns from event payloads (URLs, headers, kwargs, exceptions) before they hit the brain
  • Policy helpers, role-based action enums and a pure policy engine for direct consumers. The brain enforces its API RBAC in its own domain 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; its frame models ignore additive fields. Product-version skew is narrower than the wire format alone, so upgrade the active z4j packages together according to the compatibility policy. Adapter interfaces are structural Python protocols; adding a method can therefore require coordinated adapter updates even when the wire format is unchanged.

Documentation

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

License

Apache-2.0, see LICENSE.

Links

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.10.0.tar.gz (131.7 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.10.0-py3-none-any.whl (114.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: z4j_core-1.10.0.tar.gz
  • Upload date:
  • Size: 131.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for z4j_core-1.10.0.tar.gz
Algorithm Hash digest
SHA256 ef8bb3ce84392e0590760975f3d1979b69f21cbcae5d0e20baeddf4cf0740c44
MD5 35efd5d1eeb153a4c6106394e667d5e1
BLAKE2b-256 5f5f37938bdfe1e74cdef2915f556a798640240c6b4134189bd3a917ea386cdc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: z4j_core-1.10.0-py3-none-any.whl
  • Upload date:
  • Size: 114.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for z4j_core-1.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49a09dcb0b8a469a2d89d8566e85d16b0a79d03e6278141f9b6c9671dbce9dd1
MD5 cb585389b0c8080c945ee6e7eafb4c78
BLAKE2b-256 be0d852fca476ee80b7b3ab99321ba090f4a57eeecba700a74e15e96e12241fe

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.10.0 This release

2 files

1.9.1

2 files

1.9.0

2 files

1.8.0

2 files

1.7.0

2 files

1.6.7

2 files

1.6.0

2 files

1.5.1

2 files

1.5.0

2 files

1.4.0

2 files

1.3.1

2 files

1.3.0

2 files

1.2.0

2 files

1.1.0

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

1 file

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.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