With Utils
Utils that we've used a lot at WITH.
iter
Iteration-related utils
n_grams
Provides a way to create n_grams from an iterator
from with_utils.iter import n_grams
assert list(n_grams([1, 2, 3, 4], 2)) == [(1, 2), (2, 3), (3, 4)]
return_list
Transforms an iterator into a function that returns a list.
from with_utils.iter import return_list
@return_list
def foo():
yield 1
yield 2
yield 3
assert foo() == [1, 2, 3]
Metadata
Release files for with-utils 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| with-utils-0.2.1.tar.gz | 1.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| with_utils-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.8 kB
Release files / with-utils-0.2.1.tar.gz
| Download URL | with-utils-0.2.1.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83eb3c618287935e2001c681da0a081851c95c72ae8718f3f78b7e83c4af2c28
|
|
BLAKE2b-256 checksum How to use checksums |
41e5c4780e46832eb6f13b4b99f5f61bcb0119506fd65f0ef8dab4faffda9ea4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.2 Linux/4.19.0-8-amd64
|
Release files / with_utils-0.2.1-py3-none-any.whl
| Download URL | with_utils-0.2.1-py3-none-any.whl |
|---|---|
| Size | 2.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6bc14a9372549bda997178cf2ac7dc3879189b562281e0498cdd428cc7966db0
|
|
BLAKE2b-256 checksum How to use checksums |
3096fc98f757fa22e8076e5f92e2554ffb8a5b0f19ab8cfeaa46ad0aabef541d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.2 Linux/4.19.0-8-amd64
|
Security for with-utils 0.2.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.