various list helpers. only chunking, atm
Project description
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
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
list_tools-0.0.1.tar.gz
(1.8 kB
view details)
File details
Details for the file list_tools-0.0.1.tar.gz.
File metadata
- Download URL: list_tools-0.0.1.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43e245ba280700bdb0372c775c0e40322fe2ba4c577a25d11f98fbc483f31941
|
|
| MD5 |
532d200440f3f6766e4b7988a89341a6
|
|
| BLAKE2b-256 |
2396d5a5c187a3810bba7bffb8caa53e14617445263d42817a8297f1a275852d
|