Skip to main content

Production of falsey objects.

Project description

Package Version PyPI - Status Tests Status Code Coverage Percentage Project License Python Versions

🎭 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

GitHub last commit Copier Hatch pre-commit Pyright Ruff PyPI - Implementation PyPI - Wheel

Other Projects by This Author 🌟

  • python-absence (absence on PyPI)

    🕳️ A Python library package which provides a sentinel for absent values - a falsey, immutable singleton that represents the absence of a value in contexts where None or False may be valid values.

  • python-accretive (accretive on PyPI)

    🌌 A Python library package which provides accretive data structures - collections which can grow but never shrink.

  • python-classcore (classcore on PyPI)

    🏭 A Python library package which provides foundational class factories and decorators for providing classes with attributes immutability and concealment and other custom behaviors.

  • python-dynadoc (dynadoc on PyPI)

    📝 A Python library package which bridges the gap between rich annotations and automatic documentation generation with configurable renderers and support for reusable fragments.

  • python-frigid (frigid on PyPI)

    🔒 A Python library package which provides immutable data structures - collections which cannot be modified after creation.

  • python-icecream-truck (icecream-truck on PyPI)

    🍦 Flavorful Debugging - A Python library which enhances the powerful and well-known icecream package with flavored traces, configuration hierarchies, customized outputs, ready-made recipes, and more.

  • python-mimeogram (mimeogram on PyPI)

    📨 A command-line tool for exchanging collections of files with Large Language Models - bundle multiple files into a single clipboard-ready document while preserving directory structure and metadata… good for code reviews, project sharing, and LLM interactions.

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

falsifier-2.1rc0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

falsifier-2.1rc0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file falsifier-2.1rc0.tar.gz.

File metadata

  • Download URL: falsifier-2.1rc0.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

Hashes for falsifier-2.1rc0.tar.gz
Algorithm Hash digest
SHA256 6c0535ad0c9f962936586726b0713aaf3f66b198e38e6eeca1044ebb1f31f278
MD5 68308270c1d49741e5baec2dafc4f765
BLAKE2b-256 d64c045efa7b48ce82ce991be183aff5863a5fd3c326002cd8c6ce5f15f94165

See more details on using hashes here.

Provenance

The following attestation bundles were made for falsifier-2.1rc0.tar.gz:

Publisher: releaser.yaml on emcd/python-falsifier

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file falsifier-2.1rc0-py3-none-any.whl.

File metadata

  • Download URL: falsifier-2.1rc0-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

Hashes for falsifier-2.1rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 b67bcaa37e9b93db9aab9b04ebb051a5d696a8531eb663eddca50a03030f03ee
MD5 dd2626e91bc61942abc0d32c3a8ddaa5
BLAKE2b-256 a1d47962a0746dabf631670581296c3ffa7f1437a0650e54b143e47ede6a8c0d

See more details on using hashes here.

Provenance

The following attestation bundles were made for falsifier-2.1rc0-py3-none-any.whl:

Publisher: releaser.yaml on emcd/python-falsifier

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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