Skip to main content

Convenient Sequence/Iterable/Collection processing for python. Inspired by Clojure mapping and threading macros.

Reason this release was yanked:

unstable

Project description

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. trent is more suitable for processing each element individually

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trent-0.5.2.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trent-0.5.2-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file trent-0.5.2.tar.gz.

File metadata

  • Download URL: trent-0.5.2.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for trent-0.5.2.tar.gz
Algorithm Hash digest
SHA256 6443758c2d498706f754b86bedeabf9ccd6b332f07509a53d9bae50984cb236a
MD5 79e75f4dfec895175056061f66b814a6
BLAKE2b-256 9c0c2c14da0487147c4aae6c9a9086b6f462d6a0d458527d6901d8d77a13981f

See more details on using hashes here.

File details

Details for the file trent-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: trent-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 18.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for trent-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8221b9aacec4016eb88f7b656b60058bb8c2b545a1e579d2828fb2a7b05cc9e7
MD5 a2a57ebc1ca28c603e78a1c58eac4549
BLAKE2b-256 b2559e8f99a677adbd739cbc46b10b7575c62c226a60eae84f2481d1aa539d25

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page