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.2.1
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.2.1.tar.gz | 22.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_buzz-8.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 53.4 kB
Release files / py_buzz-8.2.1.tar.gz
| Download URL | py_buzz-8.2.1.tar.gz |
|---|---|
| Size | 22.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58776541367e9c93af8d5252606a0e2a02ac30677fba7850e159a5082a2dde89
|
|
BLAKE2b-256 checksum How to use checksums |
8481e390eac7b96e25dadc00c31c6bd3d45ff2f69a4b6a21c05daa156bb4bed2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","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.2.1-py3-none-any.whl
| Download URL | py_buzz-8.2.1-py3-none-any.whl |
|---|---|
| Size | 30.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7bec983ee0d88e6f4804afc0f28d4c1704303b0c82e70b0aa08ae69b0d6e0615
|
|
BLAKE2b-256 checksum How to use checksums |
8d06878eb0400dd15dbc457ec52b1f7508334359c2b6ff46bba41d08fd6d33b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","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}
|