"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 conditions and raising errors on failure (
require_conditon
) - checking that values are defined and raising errors if not (
enforce_defined
) - catching exceptions wrapping them in clearer exception types with better error
messages (
handle_errors
) - checking many conditions and reporting which ones failed
(
check_expressions
)
py-buz 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.8 or later
- Installed with pip (
$ pip install py-buzz
) - Each feature demonstrated in examples
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
py_buzz-4.2.0.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file py_buzz-4.2.0.tar.gz
.
File metadata
- Download URL: py_buzz-4.2.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.8.18 Linux/6.8.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ada061df8f0ebaf1f516a260355ed53344056c6fdd196709f4eec1f1bbcaa73 |
|
MD5 | f3fd8758a918cf1b478b82f1eebc9588 |
|
BLAKE2b-256 | 20483978fda6d8835ebe7a53acaefa2bbc1c0a077308a1721a6ce3607451d28d |
File details
Details for the file py_buzz-4.2.0-py3-none-any.whl
.
File metadata
- Download URL: py_buzz-4.2.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.8.18 Linux/6.8.0-1014-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3fba5dabb2aab46d6d5227dc35f9be5c9c38cc63da04029b5a9b94d2bf57333 |
|
MD5 | 24eb542e8e546278b1f4609e112c6504 |
|
BLAKE2b-256 | 1e91b89f973edd6ac4448af1cff388a35463d8b83fceb5fdd3ab02abc7239a8d |