Skip to main content
Pre-release

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

benzene_results-0.1.0b1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

benzene_results-0.1.0b1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

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

Hashes for benzene_results-0.1.0b1.tar.gz
Algorithm Hash digest
SHA256 de17d28268e77c377a179261cfd1bceaf63acee79cc10cd239efa1812e5724f8
MD5 390c3bf6d47255610c9456c3ef3f204d
BLAKE2b-256 9aee5244f14aa9dd60f975a26297cafacbb6e829d7eca4cb4eaba079bdfde74a

See more details on using hashes here.

Provenance

The following attestation bundles were made for benzene_results-0.1.0b1.tar.gz:

Publisher: release.yml on daniellepelley/benzene-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file benzene_results-0.1.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for benzene_results-0.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 8eb9a79778a60c90fdc123ced2234c372c8acd71b0af9968aedc352a42fe13d9
MD5 97e999d7794cdebc1147af8574127a9a
BLAKE2b-256 755eb95bd48e84a49a139af8471d4a298494cd3eaa0dcc1fffa551a5871e68e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for benzene_results-0.1.0b1-py3-none-any.whl:

Publisher: release.yml on daniellepelley/benzene-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0b1 This release

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