Skip to main content

List tools

Various helpers for lists.

Requirements

  • Python: >=3.5

Installation

python -m pip install list_tools

Current functions

chunk

Split list into chunks by size you provide.

Example:

from list_tools import chunk

items = ['foo', 'bar', 'baz']

for part in chunk(items, 2):
	print(part)
	# ['foo', 'bar'] <- first iteration
	# ['baz']        <- second iteration

Metadata

Release files for list-tools 0.0.1

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

Source distribution (sdist)

Source distribution for list-tools 0.0.1
File Size Uploaded Provenance
list_tools-0.0.1.tar.gz 1.8 kB Without provenance Details

Release files / list_tools-0.0.1.tar.gz

Download URL list_tools-0.0.1.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
43e245ba280700bdb0372c775c0e40322fe2ba4c577a25d11f98fbc483f31941
BLAKE2b-256 checksum
How to use checksums
2396d5a5c187a3810bba7bffb8caa53e14617445263d42817a8297f1a275852d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4

Security for list-tools 0.0.1

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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file No provenance

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