Skip to main content

Nonelib

Remove None's from data and calls.

nonedict()

>>> from nonelib import nonedict
>>> nonedict(a=1, b=None, c=3)
{'a': 1, 'c':3}
>>> nonedict({'a': 1, 'b': None, 'c':3})
{'a': 1, 'c':3}

@nonewrap

>>> from nonelib import nonewrap
>>> @nonewrap
>>> def s(lst, offset=3, limit=3):
...     return lst[offset:offset+limit]
>>> s([1,2,3,4,5,6,7,8,9,10], offset=None, limit=5)  # offset=3 is in effect
[4, 5, 6, 7, 8]

nonelist()

>>> from nonelib import nonelist
>>> nonelist([1, None, 3])
[1, 3]

noneset()

>>> from nonelib import noneset
>>> noneset({1, None, 3})
{1, 3}

noneiter()

>>> from nonelib import noneiter
>>> for x in noneiter([1, None, 3]):
...     print(x)
1
3

Release files for nonelib 0.0.1

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

Source distribution (sdist)

Source distribution for nonelib 0.0.1
File Size Uploaded
nonelib-0.0.1.tar.gz 1.7 kB Details

Built distribution (wheel)

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

Total release size: 3.6 kB

Release files / nonelib-0.0.1.tar.gz

Download URL nonelib-0.0.1.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
31444593c13fd25acd89831ee8129f43bbe0764fc9977926e4936d258ed6676f
BLAKE2b-256 checksum
How to use checksums
9707b2cfe6df32a524b04a35585d089703fd7333b912fcea54a173a8787d0be6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.5

Release files / nonelib-0.0.1-py3-none-any.whl

Download URL nonelib-0.0.1-py3-none-any.whl
Size 1.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad788bb6bf69cace0bdc3e1462c91bc8c1e7932b903ffa5407ef1fe582a195fe
BLAKE2b-256 checksum
How to use checksums
1efc4c9166c5c21bf2473dc624b573568214cb5e8baaddaadd71ec3f6c08d408
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.5

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

0.0

2 release files

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