Skip to main content

nothingpy

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

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

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

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

from nothingpy import Nothing

some_variable = Nothing

Metadata

Release files for nothingpy 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nothingpy 0.1.3
File Size Uploaded Provenance Actions
nothingpy-0.1.3.tar.gz 6.7 kB Without provenance Details for nothingpy-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nothingpy 0.1.3
File Interpreter ABI Platform Actions
nothingpy-0.1.3-py3-none-any.whl Python 3 none any Details for nothingpy-0.1.3-py3-none-any.whl

Total release size: 10.8 kB

Release files / nothingpy-0.1.3.tar.gz

Download URL nothingpy-0.1.3.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
505effb4c841dbefd6740d0c6d186e7fc5f75fdaae5816cc5a420c76a4eb1f34
BLAKE2b-256 checksum
How to use checksums
19cc49ed6fd9c42391c74a1e88ee59d489739164ed6becf4f9867b8e7c2137dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.0

Release files / nothingpy-0.1.3-py3-none-any.whl

Download URL nothingpy-0.1.3-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2bb8f9a738538b8af1e0ef1aa81768e6475aa798f83d625e3989836f3b8b0ff3
BLAKE2b-256 checksum
How to use checksums
722363e0fd1a1b004230862f4ff0ba63801f25fb0db6f904ceabb927ec3695e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.0

Security for nothingpy 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page