This release is a pre-release and may not be stable for production use.
benzene-results
The bottom layer of the Benzene Python port:
the Result type and the status vocabulary. Zero dependencies.
A domain handler returns a value, never raising for an expected outcome:
from benzene.results import Result
def create_order(request) -> Result:
if not request.get("sku"):
return Result.bad_request("sku is required")
return Result.created({"id": "ord_123"})
Install just this layer if all you want is Benzene's result/status model (e.g. to type a domain service's return values) without any pipeline or transport code:
pip install benzene-results
Provides Result, Status (the wire-contract status constants), is_successful, and the
SUCCESS_STATUSES / FAILURE_STATUSES / KNOWN_STATUSES sets. It contributes the benzene.results
subpackage to the shared benzene namespace. Mirrors .NET's Benzene.Results plus the status
vocabulary from Benzene.Abstractions.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file benzene_results-0.1.0b1.tar.gz.
File metadata
- Download URL: benzene_results-0.1.0b1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de17d28268e77c377a179261cfd1bceaf63acee79cc10cd239efa1812e5724f8
|
|
| MD5 |
390c3bf6d47255610c9456c3ef3f204d
|
|
| BLAKE2b-256 |
9aee5244f14aa9dd60f975a26297cafacbb6e829d7eca4cb4eaba079bdfde74a
|
Provenance
The following attestation bundles were made for benzene_results-0.1.0b1.tar.gz:
Publisher:
release.yml on daniellepelley/benzene-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
benzene_results-0.1.0b1.tar.gz -
Subject digest:
de17d28268e77c377a179261cfd1bceaf63acee79cc10cd239efa1812e5724f8 - Sigstore transparency entry: 2467247393
- Sigstore integration time:
-
Permalink:
daniellepelley/benzene-python@7f3c0d2abeeb3782a82a8e2621ee8b431bf02ca8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/daniellepelley
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7f3c0d2abeeb3782a82a8e2621ee8b431bf02ca8 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file benzene_results-0.1.0b1-py3-none-any.whl.
File metadata
- Download URL: benzene_results-0.1.0b1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8eb9a79778a60c90fdc123ced2234c372c8acd71b0af9968aedc352a42fe13d9
|
|
| MD5 |
97e999d7794cdebc1147af8574127a9a
|
|
| BLAKE2b-256 |
755eb95bd48e84a49a139af8471d4a298494cd3eaa0dcc1fffa551a5871e68e1
|
Provenance
The following attestation bundles were made for benzene_results-0.1.0b1-py3-none-any.whl:
Publisher:
release.yml on daniellepelley/benzene-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
benzene_results-0.1.0b1-py3-none-any.whl -
Subject digest:
8eb9a79778a60c90fdc123ced2234c372c8acd71b0af9968aedc352a42fe13d9 - Sigstore transparency entry: 2467242071
- Sigstore integration time:
-
Permalink:
daniellepelley/benzene-python@7f3c0d2abeeb3782a82a8e2621ee8b431bf02ca8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/daniellepelley
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7f3c0d2abeeb3782a82a8e2621ee8b431bf02ca8 -
Trigger Event:
workflow_dispatch
-
Statement type: