falsifierยถ

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.

Table of Contentsยถ

Indicesยถ