One package for utility functions.
Project description
About
One package for utility functions:
Installation
onekit
is available on PyPI for Python 3.8+:
pip install onekit
License
onekit
was created by onekit developers.
It is licensed under the terms of the BSD 3-Clause license.
Examples
Easily flatten
an irregular list:
>>> from onekit import pytlz
>>> irregular_list = [
... ["one", 2],
... 3,
... [(4, "five")],
... [[["six"]]],
... "seven",
... [],
... ]
>>> list(pytlz.flatten(irregular_list, 8, [9, ("ten",)]))
['one', 2, 3, 4, 'five', 'six', 'seven', 8, 9, 'ten']
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
onekit-0.4.0.tar.gz
(3.8 kB
view hashes)
Built Distribution
onekit-0.4.0-py3-none-any.whl
(4.2 kB
view hashes)