Skip to main content

"That's not flying, it's falling with style": Exceptions with extras

Project description

Latest Version Python Versions Build Status Documentation Status

py-buzz-logo

That's not flying, it's falling with style: Exceptions with extras

asciicast

py-buzz is fully equipped with a suite of exception tools that will save you from writing the same code over and over again in your python projects. These include:

  • checking many conditions and reporting which ones failed (check_expressions())
  • catching exceptions wrapping them in clearer exception types with better error messages (handle_errors())
  • retrying operations with exponential backoff until they succeed (retry())
  • checking that values are defined and raising errors if not (enforce_defined())
  • checking that values are a certain type and raising errors if not (ensure_type())
  • checking conditions and raising errors on failure (require_condition())

py-buzz also provides an exception class, Buzz, that can be used as a base class for custom exceptions within a project.

Super-quick Start

  • Only requires Python 3.10 or later
  • Installed with pip ($ pip install py-buzz)
  • Each feature demonstrated in an executable demo "extra"

Documentation

The complete documentation can be found at the py-buzz documentation page

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

py_buzz-8.1.1.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

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

py_buzz-8.1.1-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

File details

Details for the file py_buzz-8.1.1.tar.gz.

File metadata

  • Download URL: py_buzz-8.1.1.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for py_buzz-8.1.1.tar.gz
Algorithm Hash digest
SHA256 6fa4349cdbb9eb9faba564f54050e78f9c8bc8e157c844f45f9730ac4ba8e389
MD5 390b4ffece857e3a82f8cca212159745
BLAKE2b-256 16f93749d3a993f8509c37a5722e7c4ba3b7a3955a3391b03555f9269fbbc9bf

See more details on using hashes here.

File details

Details for the file py_buzz-8.1.1-py3-none-any.whl.

File metadata

  • Download URL: py_buzz-8.1.1-py3-none-any.whl
  • Upload date:
  • Size: 29.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for py_buzz-8.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2c3e0c5360d18b8f2ab2b033681eec74c77ff4c393c9d2f6266a3909771efd3f
MD5 61a9e8a66c02670dadff6049fd830e29
BLAKE2b-256 12d7fc42a27ed1b0e12e6a2e7df04568f2f55b3f085c71dcda311eed305f97fb

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