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.1.tar.gz
(7.0 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.1.tar.gz.
File metadata
- Download URL: betterlist-0.1.1.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82a9fa63e9def90670355a35d4e91910646786d1cb77cd06ebd65859ef418daf
|
|
| MD5 |
318581693f3fb32875263d0657ccfaf1
|
|
| BLAKE2b-256 |
87eff2cd16915e0403663e7a53f7e49b1931dcc880ff64142e3b6d5e953d43ad
|
File details
Details for the file betterlist-0.1.1-py3-none-any.whl.
File metadata
- Download URL: betterlist-0.1.1-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 |
36688af1f14d93b75b19c96a2aa7dbbef55c3c7c686fe55309a7d2ec3308f454
|
|
| MD5 |
be3e6f465e5e76b3f49087c65e2f18c0
|
|
| BLAKE2b-256 |
23958517a46eae41f735b186adb4f5df43ee641188a12fcd14eee8904b494bab
|