README.md

    treevalue

    PyPI PyPI - Python Version Loc Comments

    Docs Deploy Code Test Badge Creation Package Release codecov

    GitHub stars GitHub forks GitHub commit activity GitHub issues GitHub pulls Contributors GitHub license

    TreeValue is a generalized tree-based data structure mainly developed by OpenDILab Contributors.

    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.3,
            'x': {
                'c': 'str',
                'd': [1, 2, None],
                'e': b'bytes',
            }
        })
        print(t)
    

    The result should be

    <FastTreeValue 0x7f6c7df00160 keys: ['a', 'b', 'x']>
    ├── 'a' --> 1
    ├── 'b' --> 2.3
    └── 'x' --> <FastTreeValue 0x7f6c81150860 keys: ['c', 'd', 'e']>
        ├── 'c' --> 'str'
        ├── 'd' --> [1, 2, None]
        └── 'e' --> b'bytes'

    And t is structure should be like this

    For more quick start explanation and further usage, take a look at:

    Contribution

    We appreciate all contributions to improve treevalue, both logic and system designs. Please refer to CONTRIBUTING.md for more guides.

    And users can join our slack communication channel, or contact the core developer HansBug for more detailed discussion.

    License

    treevalue released under the Apache 2.0 license.

    项目简介

    Here are the most awesome tree structure computing solutions, make your life easier. (这里有目前性能最优的树形结构计算解决方案)

    🚀 Github 镜像仓库 🚀

    源项目地址

    https://github.com/opendilab/treevalue

    发行版本 21

    v1.4.12

    全部发行版

    贡献者 4

    HansBug @HansBug
    H HansBug @HansBug
    H HansBug @HansBug
    N niuyazhe @niuyazhe

    开发语言

    • Python 99.0 %
    • Makefile 0.5 %
    • Shell 0.5 %