Skip to main content

listools: a Python 3 library of list functions

Project description

PyPI Python versions License Bug report

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, you can install it using pip install listools.

Bugs can be reported to https://github.com/gilbertohasnofb/listools/issues.

This library contains the following functions:

  • listools.concat_flatten(*input_lists)

  • listools.flatten(input_list)

  • listools.index_flatten(element, input_list)

  • listools.len_flatten(input_list)

  • listools.partial_flatten(input_list[, depth])

  • listools.reverse_sorted_flatten(input_list)

  • listools.sorted_flatten(input_list)

  • listools.sum_flatten(input_list)

  • listools.zip_cycle_flatten(*input_lists)

  • listools.zip_cycle(*input_iters)

All functions have a __doc__ attribute with usage instructions.

This library is published under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

listools-1.0.5.tar.gz (4.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page