"That's not flying, it's falling with style": Exceptions with extras
Project description
That's not flying, it's falling with style: Exceptions with extras
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
Release history Release notifications | RSS feed
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 py_buzz-8.0.0.tar.gz.
File metadata
- Download URL: py_buzz-8.0.0.tar.gz
- Upload date:
- Size: 18.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
410d0b6e90c5238130c970933e9db0448d6827fbf72b2f9d4ff864dbc4eeef0e
|
|
| MD5 |
823ea2bfefe3803b8458150a7db6cb88
|
|
| BLAKE2b-256 |
08b2b0cc3f35aafa05c3888035e03eece12769141113b099327ff46ccdfe6d66
|
File details
Details for the file py_buzz-8.0.0-py3-none-any.whl.
File metadata
- Download URL: py_buzz-8.0.0-py3-none-any.whl
- Upload date:
- Size: 27.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
314ae1cec1ff59fda7a4485dc62777dfd38fc37ccff66995662763364c4300bd
|
|
| MD5 |
d58052671159fd7beecc9a285889ad6a
|
|
| BLAKE2b-256 |
b2a851ec81dce27cbb59f023ae78e38a6592fc92c22f1a6c5e12a661b263324d
|