Production of falsey objects.
Project description
🎭 A very simple Python library package which provides a base class for falsey objects - objects that evaluate to False in boolean contexts.
Installation 📦
pip install falsifier
Examples 💡
The Falsifier class provides a base for creating objects that evaluate to False in boolean contexts:
>>> from falsifier import Falsifier >>> obj = Falsifier( ) >>> bool( obj ) False
Identity-based equality ensures each instance is only equal to itself:
>>> obj2 = Falsifier( ) >>> obj == obj2 False >>> obj == obj True
Use Cases 🎯
🚩 Sentinel Objects: Base class for creating unique sentinel objects that evaluate to False.
🕳️ Absence Indicators: Foundation for creating objects that represent absence or invalidity when None or False may be valid.
More Flair
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file falsifier-2.1.tar.gz.
File metadata
- Download URL: falsifier-2.1.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b170ba113b8be97ce096717f0971d3702e44820712dc4d87b607c4c05758156
|
|
| MD5 |
623125b1f298d2ca4c6304ed815bd689
|
|
| BLAKE2b-256 |
fe9d1650020af6d07bd377a426c1a40effbc0cdc709e4cc19d1d1f7600414632
|
Provenance
The following attestation bundles were made for falsifier-2.1.tar.gz:
Publisher:
releaser.yaml on emcd/python-falsifier
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
falsifier-2.1.tar.gz -
Subject digest:
4b170ba113b8be97ce096717f0971d3702e44820712dc4d87b607c4c05758156 - Sigstore transparency entry: 230433088
- Sigstore integration time:
-
Permalink:
emcd/python-falsifier@99c4641cc721bca46e7903e62166043e32479fb0 -
Branch / Tag:
refs/tags/v2.1 - Owner: https://github.com/emcd
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
releaser.yaml@99c4641cc721bca46e7903e62166043e32479fb0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file falsifier-2.1-py3-none-any.whl.
File metadata
- Download URL: falsifier-2.1-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03c4cba0c7e84d3e168411e55db1c1bb6fae7f6b6d1105f9b2a651c9bf107404
|
|
| MD5 |
07935c9e2d0d004c15300ed556c69f37
|
|
| BLAKE2b-256 |
71c025f3ff7f984aedcfea893174e2fb3bfb14600f7582d716fd4a8131762cc6
|
Provenance
The following attestation bundles were made for falsifier-2.1-py3-none-any.whl:
Publisher:
releaser.yaml on emcd/python-falsifier
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
falsifier-2.1-py3-none-any.whl -
Subject digest:
03c4cba0c7e84d3e168411e55db1c1bb6fae7f6b6d1105f9b2a651c9bf107404 - Sigstore transparency entry: 230433091
- Sigstore integration time:
-
Permalink:
emcd/python-falsifier@99c4641cc721bca46e7903e62166043e32479fb0 -
Branch / Tag:
refs/tags/v2.1 - Owner: https://github.com/emcd
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
releaser.yaml@99c4641cc721bca46e7903e62166043e32479fb0 -
Trigger Event:
push
-
Statement type: