listools: a Python 3 library of list functions
Project description
This library provides utility functions for dealing with lists in Python 3. listools supports Python version 3.0 and newer. It is contained in a single Python file, so it can be easily copied into your project (the copyright and license notice must be retained). Alternatively, to install it using pip, use the command below:
pip install listools
Note that you might need to use pip3 instead of pip.
Bugs can be reported to https://github.com/gilbertohasnofb/listools. The code can also be found there.
This library contains the following functions:
listools.flatten(input_list)
listools.partial_flatten(input_list[, depth])
listools.concat_flatten(*input_lists)
listools.sum_flatten(input_list)
listools.len_flatten(input_list)
listools.index_flatten(element, input_list)
listools.zip_cycle(*input_iters)
listools.zip_cycle_flatten(*input_lists)
All functions have a __doc__ attribute with usage instructions.
This library is published under the MIT License.
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
File details
Details for the file listools-1.0.2.tar.gz.
File metadata
- Download URL: listools-1.0.2.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.9.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bf06c7822e50c0d2dc789338ff911a0ea6bd6b863e60ecc9f70faee2190f4de
|
|
| MD5 |
96346073776c8a1a2b7d765488494bff
|
|
| BLAKE2b-256 |
0d452f93b8bb9b9649e7d1eedc10896da85d88cc5cdb4248fe049decea5a985b
|