optree has 11M monthly downloads and 213 GitHub stars. Version 0.19.1 supports Python 3.9+, first published in 2022.
It is actively maintained under a permissive license, last released in May 2026.
It is built on top of typing-extensions. It is used by 68 tracked packages, including keras, nvidia-dali-cuda120 and envpool.
GitHub topics include pytree, tree and tree-structure.
Package Insights
((week_daily_avg - month_daily_avg) / month_daily_avg) * 100Weekly Downloads
GitHub Stars
Downloads by OS
Python Versions
Top Countries
Dependencies
- typing-extensions >=4.6.0
29 optional dependencies
- attrs[docs]
- attrs[attrs]
- covdefaults[test]
- cpplint[lint]
- doc8[lint]
- docutils[docs]
- jax[jax]
- jax[docs]
- mypy[lint]
- numpy[numpy]
- numpy[docs]
- pre-commit[lint]
- pyenchant[lint]
- pylint[lint]
- pytest[test]
- pytest-cov[test]
- rich[test]
- ruff[lint]
- sphinx[docs]
- sphinx-autoapi[docs]
- sphinx-autobuild[docs]
- sphinx-autodoc-typehints[docs]
- sphinx-copybutton[docs]
- sphinx-rtd-theme[docs]
- sphinxcontrib-bibtex[docs]
- torch[docs]
- torch[torch]
- typing-extensions[test]
- xdoctest[lint]
Used By
- keras
- nvidia-dali-cuda120
- envpool
- protenix
- lightning-thunder
- openrlhf
- pytask
- synalinks
- torchopt
- danila-lib
- nvidia-dali-cuda130
- rbyte
- spacecore
- lamareg
- fastipc
- magdi-segmentation-models-3d
- abstract-dataloader
- beignet
- algebraic-arrays
- pytorch-custom-utils
- efficient-classifier
- uniovi-simur-wearablepermed-ml
- id-echo
- ttsim-backend
- lumiere-pytorch
- automatedcleaning
- gtech-ariel
- uniovi-simur-wearablepermed-predictor
- person-detector
- autoform
- ai-computing-broker
- jax-moseq
- torchsilk
- posteriors
- translation-canvas
- dpdc-amr
- micaflow
- bayes-xw
- phytorchx
- robobo-emotion
- ergodicity
- tensor-regression
- pytorch-ml-utils
- utilsbox
- causal-forecast
- cricket-tannmay
- neuroflex
- uniovi-simur-wearablepermed-pipeline-ml
- astra-lib
- quantum-dot-sim