falsifier 2.0
pip install falsifier
Released:
Production of falsey objects.
Navigation
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License
- Author: Eric McDonald
- Tags comparison, falsey, identity, truthy
- Requires: Python >=3.10
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
- Topic
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
Verified details
These details have been verified by PyPIProject links
GitHub Statistics
Maintainers
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License
- Author: Eric McDonald
- Tags comparison, falsey, identity, truthy
- Requires: Python >=3.10
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
- Topic
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
File details
Details for the file falsifier-2.0.tar.gz
.
File metadata
- Download URL: falsifier-2.0.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e37da17902e82722f237a5a1811a957ae68c188dea19895dd1ad3e970a68fba |
|
MD5 | 818f13f68f5ad224f76c014fe39919c8 |
|
BLAKE2b-256 | 333ddb25ad0aaf05e6f4e89cee24c9ce97a24310c11898bdb3d301ace4f27397 |
Provenance
The following attestation bundles were made for falsifier-2.0.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.0.tar.gz
- Subject digest:
5e37da17902e82722f237a5a1811a957ae68c188dea19895dd1ad3e970a68fba
- Sigstore transparency entry: 157168881
- Sigstore integration time:
- Permalink:
emcd/python-falsifier@fba39f9eabdbf11dd2714a23ba104a02b8aa609c
- Branch / Tag:
refs/tags/v2.0
- Owner: https://github.com/emcd
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
releaser.yaml@fba39f9eabdbf11dd2714a23ba104a02b8aa609c
- Trigger Event:
push
- Statement type:
File details
Details for the file falsifier-2.0-py3-none-any.whl
.
File metadata
- Download URL: falsifier-2.0-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8bbc9ca1f1ff24868561ea31169bf93fb8c6aa83470ffacc36fb60e7b6764f3 |
|
MD5 | 2615c8984b74c8ef74007aa6f4f7ceeb |
|
BLAKE2b-256 | a560a057cc3a98181bc860e0c91d1fc15848c3eff58374f9ab65c5c52b87b5d5 |
Provenance
The following attestation bundles were made for falsifier-2.0-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.0-py3-none-any.whl
- Subject digest:
e8bbc9ca1f1ff24868561ea31169bf93fb8c6aa83470ffacc36fb60e7b6764f3
- Sigstore transparency entry: 157168882
- Sigstore integration time:
- Permalink:
emcd/python-falsifier@fba39f9eabdbf11dd2714a23ba104a02b8aa609c
- Branch / Tag:
refs/tags/v2.0
- Owner: https://github.com/emcd
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
releaser.yaml@fba39f9eabdbf11dd2714a23ba104a02b8aa609c
- Trigger Event:
push
- Statement type: