Provides simple functions to assert the state of your program.
Project description
nr.preconditions
Provides simple functions to assert the state of your program.
check_argument(value, message)
check_not_none(value, message=None)
check_instance_of(value, types, message=None)
check_subclass_of(cls, types, message=None)
Copyright © 2021 Niklas Rosenstein
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
Built Distribution
File details
Details for the file nr.preconditions-0.0.3.tar.gz
.
File metadata
- Download URL: nr.preconditions-0.0.3.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06df7ccfb628248699c32f0e895df83ef468610c75fc446c3dcd8bc773e6c913 |
|
MD5 | 56676035ffc2caf6e2ead59fd710c040 |
|
BLAKE2b-256 | 9a210c0d92be1c88652eac818f8da53a8a4bfe98eda57657f2f53cf1a949c24c |
File details
Details for the file nr.preconditions-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: nr.preconditions-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3223a87808ba5893407284d8c49b9113c512e2d2ec2bc40bbcb717e914ff7a4e |
|
MD5 | 276c82416b221f4d682e99031b3b6b81 |
|
BLAKE2b-256 | 50ee5b46d237b8c04a2941ecba8623b5d5be700d6583b61305f364232cb840a4 |