Metadata-Version: 2.4
Name: whenever-none
Version: 0.9.5.2
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
Classifier: Programming Language :: Python
Classifier: Programming Language :: Rust
Classifier: Typing :: Typed
Requires-Dist: tzdata>=2020.1 ; sys_platform == 'win32'
Requires-Dist: tzlocal>=4.0 ; sys_platform != 'darwin' and sys_platform != 'linux'
License-File: LICENSE
License-File: LICENSE-THIRD-PARTY
Summary: Modern datetime library for Python
Keywords: datetime,typesafe,rust,date,time,timezone,utc,zoneinfo,tzdata,tzdb
Author-email: Arie Bovenberg <a.c.bovenberg@gmail.com>, Oliver Margetts <oliver.margetts@gmail.com>
Maintainer-email: Oliver Margetts <oliver.margetts@gmail.com>
License-Expression: MIT
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Changelog, https://github.com/SuadeLabs/whenever-none/blob/main/CHANGELOG.md
Project-URL: Documentation, https://whenever.readthedocs.io
Project-URL: Issues, https://github.com/SuadeLabs/whenever-none/issues
Project-URL: Repository, https://github.com/SuadeLabs/whenever-none

# ⏰ Whenever-None

[![](https://img.shields.io/pypi/v/whenever-none.svg?color=blue)](https://pypi.python.org/pypi/whenever-none)
[![](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2FSuadeLabs%2Fwhenever-none%2Fmain%2Fpyproject.toml)](https://pypi.python.org/pypi/whenever-none)
[![](https://img.shields.io/pypi/l/whenever-none.svg?color=blue)](https://pypi.python.org/pypi/whenever-none)
[![](https://img.shields.io/github/actions/workflow/status/SuadeLabs/whenever-none/checks.yml?branch=main)](https://github.com/SuadeLabs/whenever-none)

**A slightly friendlier fork of whenever handling comparison with None**

This is a slightly niche fork of the excelent [whenever](https://github.com/ariebovenberg/whenever) library for handling comparison against null values. For our purposes, we count None as, essentially, year zero:

```python
>>> from whenever import Instance

>>> Instance.now() > None
True
```

You can install this library as a drop-in replacement without changing your code:

```sh
pip install whenever-none  # install this library
python -c "import whenever"  # use it like whenever
```

## Why use whenever-none?

If you want all the nice features of whenever, but often deal with poor quality data 💩 or data exploration 🔍, this library allows a lot of common python operations to proceed (e.g. sorting a list of Person instances by their `.bith_date` property) without requiring too much (or incorrect) massaging of the data.

