Metadata-Version: 2.3
Name: nothingpy
Version: 0.1.3
Summary: A None alternative for Python that reduces the need for None checks.
Project-URL: Homepage, https://github.com/llmonpy/nothingpy
Project-URL: Issues, https://github.com/llmonpy/nothingpy/issues
Author-email: Tom Burns <public@llmonpy.ai>
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.4
Description-Content-Type: text/markdown

# nothingpy
Nothing is a replacement for None that eliminates the need for many if statements.  I am tired of writing code like this:

```python
if some_list:
    for item in some_list:
        do_something(item)
```

If you use Nothing instead of None, you can write code like this:

```python
for item in some_list:
    do_something(item)
```

**Nothing** is a global variable of the class NothingClass.  **Nothing** has a len of 0, is False, returns an empty iterable,
converts to an empty string, and responds to values(), keys() and items() like an empty dictionary.  **Nothing** equals
other NothingClass instances, None and False.  

## Installation

```pip install nothingpy```

## Usage

```python
from nothingpy import Nothing

some_variable = Nothing
```