Skip to main content

treeop

collection of operations for nested dict, list and tuple.

Usage

applyto

>>> applyto(print, {"a": [1, 2], "b": [3, 4], level = 1)
[1, 2]
[3, 4]

>>> applyto(print, {"a": [1, 2], "b": [3, 4], level = 2)
1
2
3
4

mapto

>>> mapto(sum, {"a": [1, 2], "b": [3, 4], level = 1)
{'a': 3, 'b': 7}

>>> mapto(lambda x: 2 * x, {"a": [1, 2], "b": [3, 4], level = 2)
{'a': [2, 4], 'b': [6, 8]}

transpose

>>> transpose({"a": [1, 2], "b": [3, 4], levels = [1, 0])
[{"a": 1, "b": 3}, {"a": 2, "b", 4}]

License

These codes are licensed under CC0.

Tips

Metadata

Release files for treeop 0.0.1

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

Source distribution (sdist)

Source distribution for treeop 0.0.1
File Size Uploaded Provenance Actions
treeop-0.0.1.tar.gz 2.8 kB Without provenance Details for treeop-0.0.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for treeop 0.0.1
File Interpreter ABI Platform Actions
treeop-0.0.1.linux-x86_64.tar.gz Details for treeop-0.0.1.linux-x86_64.tar.gz
treeop-0.0.1-py3.4.egg Legacy Egg format - - Details for treeop-0.0.1-py3.4.egg

Total release size: 14.0 kB

Release files / treeop-0.0.1.tar.gz

Download URL treeop-0.0.1.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dd991de85a31e8cc9fdb7871c0ee56f31ce945465a5431f50c2347ca4855803d
BLAKE2b-256 checksum
How to use checksums
9ef51c42856260754a4a9ca20a3b720e9ec9836f6279da33df00b9ede11142c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / treeop-0.0.1.linux-x86_64.tar.gz

Download URL treeop-0.0.1.linux-x86_64.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4b235337958f0ea0b5bd97330392f1b72a22fc1b264cceef829e9d6067f15dc6
BLAKE2b-256 checksum
How to use checksums
5cf2ecd596da5454ccd19927fc4d79038b7e0741d1490c5c16fc2ec4088483f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / treeop-0.0.1-py3.4.egg

Download URL treeop-0.0.1-py3.4.egg
Size 6.7 kB
Tags Egg
SHA-256 checksum
How to use checksums
f327a104d6d0951c8420654a25c74e8f37f9fb6de148e3206070a1d90751edcb
BLAKE2b-256 checksum
How to use checksums
2cc98ec69973983901ebd03787416d7026627afbabf679984828b0b4ff39eaeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for treeop 0.0.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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

3 release files 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