Skip to main content

⛓ Chaining

made-with-python PyPI pyversions MIT LICENSE PyPI version PyPI monthly downloads

Package that implements functional chaining in Python, which behaves like JavaScript

📦 Installation

This package is not ready to be used in production; There are lots of things still left to be implemented and optimized!

# only python 3.6 or newer
pip3 install chaining

🔥 Action

ChainList

>>> from chaining import ChainList
>>> array = ChainList([1, 2, 3])
>>> array.length
3
>>> array.map(lambda item: item * 2)
<ChainList [2, 4, 6]>
>>> other_array = ChainList._from('chain').map(lambda item, idx: ord(item) + idx)
>>> other_array.iterable
[99, 105, 99, 108, 114]
>>> array.concat(other_array)
<ChainList [1, 2, 3, 99, 105, 99, 108, 114]>

Metadata

Release files for chaining 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for chaining 0.0.2
File Interpreter ABI Platform Actions
chaining-0.0.2-py3-none-any.whl Python 3 none any Details for chaining-0.0.2-py3-none-any.whl

Release files / chaining-0.0.2-py3-none-any.whl

Download URL chaining-0.0.2-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e512f6d809373ac57547d3bcf80d191f4ca29a1823c555e2bb37116cfaeb8112
BLAKE2b-256 checksum
How to use checksums
dfd5c97238f2d1f21d135f9f39d66065adab49762bdf755e0b231e1ef54fb250
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.5

Security for chaining 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page