Skip to main content

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

nr.preconditions-0.0.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

nr.preconditions-0.0.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file nr.preconditions-0.0.2.tar.gz.

File metadata

  • Download URL: nr.preconditions-0.0.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for nr.preconditions-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f04cb7be9e8ed9290772734f05e8aa3cd248529abda9b6fd61c4020cf3773fd8
MD5 f36f80748701fccfdb1a839f01ec4ab2
BLAKE2b-256 6e95fde5f25ff13ce29155edeffce56a29cca9733fc0bff47b9624ec683d6e23

See more details on using hashes here.

File details

Details for the file nr.preconditions-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: nr.preconditions-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for nr.preconditions-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b1d48a812cc5db42479077bb2dd25cb65950eb41c76ac01b891d56c7aa515e6c
MD5 e003e8af26d8b48df3398f9648e47e3f
BLAKE2b-256 3ec599ad6c030932d763d8634b76cd0234ba0799109e66dab58ef13364d9b287

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page