falsifier
🎭 A very simple Python library package which provides a base class for falsey objects - objects that evaluate to False in boolean contexts.
Installation 📦
Install via uv pip command:
uv pip install falsifier
Or, install via pip:
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
Subclass to create domain-specific falsey types:
>>> class AbsentValue( Falsifier ): ... ''' Represents an explicitly absent value. ''' ... def __str__( self ) -> str: ... return 'absent' >>> absent = AbsentValue( ) >>> bool( absent ) False
See documentation/examples/objects.rst for more patterns, including singletons and collection usage.
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.
Contribution 🤝
Contribution to this project is welcome! However, it must follow the code of conduct for the project.
Please file bug reports and feature requests in the issue tracker or submit pull requests to improve the source code or documentation.
For development guidance and standards, please see the development guide.
Additional Indicia
Metadata
Release files for falsifier 2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| falsifier-2.2.tar.gz | 12.8 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| falsifier-2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.4 kB
Release files / falsifier-2.2.tar.gz
| Download URL | falsifier-2.2.tar.gz |
|---|---|
| Size | 12.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e4e75e33569b3c62dfd0692ff3e92f02fc403b12d155d70a1cbdbf6353b1339
|
|
BLAKE2b-256 checksum How to use checksums |
890969ee4e21063591f397929533e0ce7c72959bf60dca39864fb6e79d15bb06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / falsifier-2.2-py3-none-any.whl
| Download URL | falsifier-2.2-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e0bcd3d3b448b2c303b570c32ec267bc3335d26e3afaeae6e066e6c95ccb8c8
|
|
BLAKE2b-256 checksum How to use checksums |
1fef0b57493151773caecd94c4e7edd4bb058cf29b0f799fdbb3dd2f9b76d3c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logSecurity for falsifier 2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for falsifier-2.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.