Skip to main content

PyPI Build Python versions License Bug report

listools is a Python 3 package of which provides utility functions for dealing with lists in Python 3. listools supports Python version 3.0 and newer. You can install it using pip install listools.

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

This package contains four modules: flatools, iterz, llogic and listutils. The complete list of functions available is:

  • flatools.flatten_index(element, input_list)

  • flatools.flatten_join(*input_lists)

  • flatools.flatten_len(input_list)

  • flatools.flatten_max(input_list, *[, key, default])

  • flatools.flatten_min(input_list, *[, key, default])

  • flatools.flatten_mixed_type(input_list)

  • flatools.flatten_reverse(input_list)

  • flatools.flatten_single_type(input_list)

  • flatools.flatten_sorted(input_list, *[, key, reverse])

  • flatools.flatten_sum(input_list[, start])

  • flatools.flatten_zip_cycle(*input_lists)

  • flatools.flatten(input_list)

  • flatools.pflatten(input_list[, depth])

  • iterz.cycle_until_index(input_iter, i)

  • iterz.inf_cycle(input_iter)

  • iterz.iter_mask(input_iter, mask)

  • iterz.ncycles(input_iter, n)

  • iterz.zip_cycle(*input_iters)

  • iterz.zip_each(*input_iters)

  • iterz.zip_inf_cycle(*input_iters)

  • iterz.zip_syzygy(*input_iters)

  • llogic.difference(list_1, list_2)

  • llogic.intersection(list_1, list_2)

  • llogic.is_contained(list_1, list_2)

  • llogic.mixed_type(input_list)

  • llogic.single_type(input_list)

  • llogic.symmetric_difference(list_1, list_2)

  • llogic.union(list_1, list_2)

  • listutils.list_lcm(input_list)

  • listutils.list_mask(input_list, mask)

  • listutils.list_gcd(input_list)

All functions have a __doc__ attribute with usage instructions.

This library is published under the MIT License.

Metadata

Release files for listools 2.0.0

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

Source distribution (sdist)

Source distribution for listools 2.0.0
File Size Uploaded Provenance Actions
listools-2.0.0.tar.gz 2.7 kB Without provenance Details for listools-2.0.0.tar.gz

Release files / listools-2.0.0.tar.gz

Download URL listools-2.0.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ac0a2c1631a1fc7a376e36c83b5085509e7f3b72ba39aa19d561da39f68dc459
BLAKE2b-256 checksum
How to use checksums
be53a43bb49eb39f47ce3418600a42c1cc2e86b68f8039cdbe06533fea842fe4
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for listools 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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