betterlist: list() materialization with transparent caching via betterlist[iterable]
Project description
betterlist
betterlist is a tiny library that materializes iterables like list(), but can cache the result.
Primary API
import betterlist
xs = betterlist[range(5)] # -> [0, 1, 2, 3, 4]
ys = betterlist[(x*x for x in xs)] # -> [0, 1, 4, 9, 16]
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
betterlist-0.1.2.tar.gz
(7.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file betterlist-0.1.2.tar.gz.
File metadata
- Download URL: betterlist-0.1.2.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5630c262031693a7f30d2fb3bec20fbfbe2527c82b420a6b9f6dc5f0afdde59f
|
|
| MD5 |
cb7ab1a11d0cdfce811ad7fe500862c7
|
|
| BLAKE2b-256 |
215a031a5dcdca17601105003f04072297d1cc7f5297c894a8ecde0623c2de43
|
File details
Details for the file betterlist-0.1.2-py3-none-any.whl.
File metadata
- Download URL: betterlist-0.1.2-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1301790396a62617e4ac595684a4452d96512ad47431c90125b1efa5a3cc2ea
|
|
| MD5 |
22fcd5083955854079598636721ece0b
|
|
| BLAKE2b-256 |
905eb539c2e38e50f31356ae26dca6494a7fe8769cbc1ca670c4d0af75ea89cf
|