No project description provided
Project description
treevalue
TreeValue
is a generalized tree-based data structure.
Almost all the operation can be supported in form of trees in a convenient way to simplify the structure processing when the calculation is tree-based.
Installation
You can simply install it with pip
command line from the official PyPI site.
pip install treevalue
For more information about installation, you can refer to Installation.
Documentation
The detailed documentation are hosted on https://opendilab.github.io/treevalue.
Only english version is provided now, the chinese documentation is still under development.
Quick Start
You can easily create a tree value object based on FastTreeValue
.
from treevalue import FastTreeValue
if __name__ == '__main__':
t = FastTreeValue({'a': 1, 'b': 2, 'x': {'c': 3, 'd': 4}})
print(t)
The result should be
<FastTreeValue 0x7fbbe2979f90 keys: ['a', 'b', 'x']>
├── 'a' --> 1
├── 'b' --> 2
└── 'x' --> <FastTreeValue 0x7fbbe2979a10 keys: ['c', 'd']>
├── 'c' --> 3
└── 'd' --> 4
For more quick start explanation and further usage, take a look at:
Contributin
We appreciate all contributions to improve treevalue, both logic and system designs. Please refer to CONTRIBUTING.md for more guides.
License
treevalue
released under the Apache 2.0 license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for treevalue-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7962da0ad292812d281509899ea82bc0176e0b74b20335636aedd15667518e6 |
|
MD5 | afbd9548735945242ea7ec0676f794f3 |
|
BLAKE2b-256 | b03ee3bc0f4c517b127d84f19dfbf93f206e31bb0089fa7a13e773b7fb6aa1fe |