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
Metadata
Release files for py-buzz 8.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py_buzz-8.1.2.tar.gz | 20.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_buzz-8.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 49.4 kB
Release files / py_buzz-8.1.2.tar.gz
| Download URL | py_buzz-8.1.2.tar.gz |
|---|---|
| Size | 20.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ca3c8fedc0e2fec9258cd0b3f550cffc785b7094016c5d4174e2c6ebe4ffb17
|
|
BLAKE2b-256 checksum How to use checksums |
ddabc94f80de2b17d8c612016f667bb23c215e37944996dae8d6589f2afbb184
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / py_buzz-8.1.2-py3-none-any.whl
| Download URL | py_buzz-8.1.2-py3-none-any.whl |
|---|---|
| Size | 29.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
217fa7c06467f60eb98c473e95009a951fe759360761070d26640c358018c7b5
|
|
BLAKE2b-256 checksum How to use checksums |
2d9c24230b1e5255430f42c8d31604287e9b16012de65a5cc4561cb3d9c11a72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|