This release is a pre-release and may not be stable for production use.
benzene-core
The transport-neutral message-handling engine of the
Benzene Python port: the handler registry and
@message decorator, the middleware pipeline, a minimal per-invocation DI container, request/
response mapping, and the BenzeneMessageApplication envelope entry point.
Depends only on benzene-results. No transport code.
pip install benzene-core
from benzene.core import BenzeneMessageApplication, Registry, message
from benzene.results import Result
@message("say:hello")
async def hello(request: dict) -> Result:
return Result.ok({"greeting": f"Hello {request['name']}"})
app = BenzeneMessageApplication(Registry().add(hello))
# Drive it with a transport-neutral Benzene message envelope:
response = await app.handle(
{"topic": "say:hello", "headers": {}, "body": '{"name": "world"}'}
)
# -> {"statusCode": "ok", "headers": {"content-type": "application/json"},
# "body": '{"greeting": "Hello world"}'}
Install a transport binding on top (e.g. benzene-http)
to host these handlers over a real protocol. Mirrors .NET's Benzene.Core +
Benzene.Core.MessageHandlers + Benzene.Dependencies, and contributes the benzene.core
subpackage to the shared benzene namespace.
Metadata
Release files for benzene-core 0.1.0b2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| benzene_core-0.1.0b2.tar.gz | 63.1 kB | With provenance | Details for benzene_core-0.1.0b2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| benzene_core-0.1.0b2-py3-none-any.whl | Python 3 | none | any | Details for benzene_core-0.1.0b2-py3-none-any.whl |
Total release size: 140.4 kB
Release files / benzene_core-0.1.0b2.tar.gz
| Download URL | benzene_core-0.1.0b2.tar.gz |
|---|---|
| Size | 63.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5322c3e81d1288fbf2d80da56686e20a5e9ea78561d0e0044e30ffc233993e73
|
|
BLAKE2b-256 checksum How to use checksums |
9342cade9a82c91eeb2cde3db21accdf1f6acab5ba78067d3a223bebd876b6cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.
Transparency logRelease files / benzene_core-0.1.0b2-py3-none-any.whl
| Download URL | benzene_core-0.1.0b2-py3-none-any.whl |
|---|---|
| Size | 77.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c21e907fb8426e27317b09443cf87b5efe5b776ede792aec71a953b6e94ea4da
|
|
BLAKE2b-256 checksum How to use checksums |
a53266158829a23aee95dbf9118f087a5bb40ef0bf2e0741bd7f91065f2dbe72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.
Transparency logSecurity for benzene-core 0.1.0b2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for benzene_core-0.1.0b2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.