Metadata-Version: 2.1
Name: nonelib
Version: 0.0
Summary: f(x=None) ≡ f()
Home-page: https://github.com/marcgurevitx/nonelib
Author: Marc Gurevitx
Author-email: marcgurevitx@gmail.com
License: The Unlicense
Platform: UNKNOWN
Description-Content-Type: text/markdown

# Nonelib

Remove None's from data and calls.

### `nonedict()`

```python
>>> 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`

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

### `nonelist()`

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

### `noneset()`

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

### `noneiter()`

```python
>>> from nonelib import noneiter
>>> for x in noneiter({1, None, 3}):
...     print(x)
1
3
```


