trent
Convenient Collection/Sequence/Iterable processing for python.
Inspired by Clojure mapping and threading macros.
Supprot full python12 (and later vesrsion) typing, unlike default map and filter functions.
Which allows for production-grade development.
Provides some work-around for python typing issues (like inability to filter out types from aggregate type).
Provides some auxiliary side funtions, like first, second, nth, getter etc.
Also, provide some additional usefull functionality, like group_by and partition_by (see more examples below)
What is it for
Writing functional, fully typehinted code in a style of Common Lisp / Clojure mappings, with convenience of Clojure funcall threading (->, ->>, as-> macroses), but with python native syntax (without trying to force-fit any other syntax in)
And more:
- Processing Iterables in a functional manner, with lazy evaluation (in most cases)
- Iterating, concating, grouping and collecting elements of given sequences quickly.
- Prototyping code in quick, readable and maintanable manner.
- Writing fully typehinted code (unlike default map/filter)
- Built-in assyncronous calls (mapping, filtering etc.)
- Reducing resulting iterables.
What is it NOT for
trent - is keps simple for a reason. Don't try to use it for more than it designed for.
- Not for high load / high performance Sequences processing (although - it supports parallel-map)
- Not for processing table-like data. Just use pandas/polars/pyspark for that.
trentis more suitable for processing each element individually
Metadata
Release files for trent 0.5.4
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 | Actions |
|---|---|---|---|---|
| trent-0.5.4.tar.gz | 20.2 kB | Without provenance | Details for trent-0.5.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| trent-0.5.4-py3-none-any.whl | Python 3 | none | any | Details for trent-0.5.4-py3-none-any.whl |
Total release size: 39.6 kB
Release files / trent-0.5.4.tar.gz
| Download URL | trent-0.5.4.tar.gz |
|---|---|
| Size | 20.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f43b5dec0659c18253916ca4bda10edc5a570bd5878daad71bbf0efb8cb5dc8
|
|
BLAKE2b-256 checksum How to use checksums |
d2a09fe23b07d48ac7d9c4fa0dfd4a4d5fecc3d2c2199d024147dce204a9ebe6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / trent-0.5.4-py3-none-any.whl
| Download URL | trent-0.5.4-py3-none-any.whl |
|---|---|
| Size | 19.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ed66ce554dbed407b18d6dd3ccebc150e31c4a58ad9324ddebe997a178e9136
|
|
BLAKE2b-256 checksum How to use checksums |
18676d8d01df33a74d8dc1503e6975b76ffc58f66cc4fe7ca7811fe7f4a4387a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for trent 0.5.4
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.