Skip to main content

Micro library that defines NotGiven and NOT_GIVEN

Project description

NotGiven and NOT_GIVEN

pip install notgiven
from notgiven import (
    NotGiven,
    NOT_GIVEN,
    is_given,
    is_not_given,
    is_given_guard,
    is_not_given_guard,
)

The details

  • NOT_GIVEN is the only instance of NotGiven
  • NOT_GIVEN is falsy (if NOT_GIVEN always returns False)
  • Pickling/unpickling, copying, and deepcopying NOT_GIVEN all return the same value.
  • NOT_GIVEN's string representation is "NOT_GIVEN"
  • NOT_GIVEN has no slots, so attributes may not be set on it.
  • Cannot instantiate NotGiven
  • Cannot subclass NotGiven

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

notgiven-0.0.2.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

notgiven-0.0.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file notgiven-0.0.2.tar.gz.

File metadata

  • Download URL: notgiven-0.0.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for notgiven-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2a08647921834aff20b32a1e281f0c86f81bf66e71a3a24660dd28c163c1a4b2
MD5 fceae3932fcbc8af10b44d1a2a2d11b2
BLAKE2b-256 bd5fb8c8062fc10ed52b0b2c6e69c823829166a24d288669e88155dc8921a242

See more details on using hashes here.

File details

Details for the file notgiven-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: notgiven-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for notgiven-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1a40338d277fb84a3385f3b10fe1315ddcbff05bcadbafd0c4ec78edcf3c91a3
MD5 972947ac176bc668caa7a35c21241f06
BLAKE2b-256 e901dc9c28956fdbfaad543abe4baa49a6df42536417219213b97256fd3f1fe2

See more details on using hashes here.

Supported by

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