notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC
Ukraine
The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
Port details
py-optree Optimized PyTree utilities
0.19.1 devel on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 0.18.0Version of this port present on the latest quarterly branch.
Maintainer: sunpoet@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2023-12-25 09:09:12
Last Update: 2026-05-09 15:56:18
Commit Hash: d288b0f
Also Listed In: python
License: APACHE20
WWW:
https://optree.readthedocs.io/en/latest/
https://github.com/metaopt/optree
Description:
OpTree provides optimized PyTree utilities. A PyTree is a recursive structure that can be an arbitrarily nested Python container (e.g., tuple, list, dict, OrderedDict, NamedTuple, etc.) or an opaque Python object. The key concepts of tree operations are tree flattening and its inverse (tree unflattening). Additional tree operations can be performed based on these two basic functions.
HomepageHomepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
There is no configure plist information for this port.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • ${PYTHON_PKGNAMEPREFIX}optree>0:devel/py-optree@${PY_FLAVOR}
To install the port:
cd /usr/ports/devel/py-optree/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/py-optree
  • pkg install py311-optree
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
NOTE: This is a Python port. Instead of py311-optree listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py311-optree
Package flavors (<flavor>: <package>)
  • py311: py311-optree
distinfo:
TIMESTAMP = 1778096618 SHA256 (optree-0.19.1.tar.gz) = 4497d1c9197b8c6842e511368163d318ce536521ebdcff8bebb7551dcdfac532 SIZE (optree-0.19.1.tar.gz) = 177531

Packages (timestamps in pop-ups are UTC):
py39-optree
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest-----n/an/an/a
FreeBSD:13:quarterly-----n/an/an/a
FreeBSD:14:latest--------
FreeBSD:14:quarterly------0.10.00.10.0
FreeBSD:15:latest--n/a-n/an/a0.10.00.10.0
FreeBSD:15:quarterly--n/a-n/an/a--
FreeBSD:16:latest--n/a-n/an/a--
 

py311-optree
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest0.19.00.19.0-0.17.00.19.0n/an/an/a
FreeBSD:13:quarterly0.18.00.18.0-0.16.00.18.0n/an/an/a
FreeBSD:14:latest0.19.00.19.1-0.17.00.19.1---
FreeBSD:14:quarterly0.18.00.18.0-0.16.00.18.0---
FreeBSD:15:latest0.19.10.19.1n/a0.17.0n/an/a--
FreeBSD:15:quarterly0.18.00.18.0n/a-n/an/a--
FreeBSD:16:latest0.19.00.19.1n/a-n/an/a--
 

Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. py311-pybind11>=2.12 : devel/py-pybind11@py311
  2. py311-setuptools>=0 : devel/py-setuptools@py311
  3. py311-wheel>=0 : devel/py-wheel@py311
  4. cmake : devel/cmake-core
  5. python3.11 : lang/python311
  6. py311-build>=0 : devel/py-build@py311
  7. py311-installer>=0 : devel/py-installer@py311
Test dependencies:
  1. python3.11 : lang/python311
Runtime dependencies:
  1. py311-typing-extensions>=4.6.0 : devel/py-typing-extensions@py311
  2. python3.11 : lang/python311
This port is required by:
for Build
  1. misc/py-pytorch
for Run
  1. math/py-keras

Configuration Options:
===> The following configuration options are available for py311-optree-0.19.1: ATTRS=off: Attrs integration NUMPY=off: NumPy mathematical computing support ===> Use 'make config' to modify these settings
Options name:
devel_py-optree
USES:
cmake:indirect compiler:c++20-lang python
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (2 items)
Collapse this list.
  1. https://files.pythonhosted.org/packages/source/o/optree/
  2. https://pypi.org/packages/source/o/optree/
Collapse this list.

Number of commits found: 16

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
0.19.1
09 May 2026 15:56:18
commit hash: d288b0fb09d08a46c656b80560a3733fa7e190b9commit hash: d288b0fb09d08a46c656b80560a3733fa7e190b9commit hash: d288b0fb09d08a46c656b80560a3733fa7e190b9commit hash: d288b0fb09d08a46c656b80560a3733fa7e190b9 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Add ATTRS and NUMPY options
0.19.1
07 May 2026 14:27:34
commit hash: 27618a2bded81ef53d155bf4415bb18fdc432df5commit hash: 27618a2bded81ef53d155bf4415bb18fdc432df5commit hash: 27618a2bded81ef53d155bf4415bb18fdc432df5commit hash: 27618a2bded81ef53d155bf4415bb18fdc432df5 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Update to 0.19.1

Changes:	https://github.com/metaopt/optree/releases
0.19.0
18 Apr 2026 21:52:13
commit hash: 64b637bb769114140c34646296eb85d6c6b137d4commit hash: 64b637bb769114140c34646296eb85d6c6b137d4commit hash: 64b637bb769114140c34646296eb85d6c6b137d4commit hash: 64b637bb769114140c34646296eb85d6c6b137d4 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Update to 0.19.0

Changes:	https://github.com/metaopt/optree/releases
0.18.0
29 Nov 2025 23:24:47
commit hash: 6115c8bb4a6e5cad56b786952dfd9de42e71fd42commit hash: 6115c8bb4a6e5cad56b786952dfd9de42e71fd42commit hash: 6115c8bb4a6e5cad56b786952dfd9de42e71fd42commit hash: 6115c8bb4a6e5cad56b786952dfd9de42e71fd42 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Update to 0.18.0

Changes:	https://github.com/metaopt/optree/releases
0.17.0
12 Aug 2025 18:15:42
commit hash: f2b081d446d96ac9ff2c05e9d6f90bd61952e3b4commit hash: f2b081d446d96ac9ff2c05e9d6f90bd61952e3b4commit hash: f2b081d446d96ac9ff2c05e9d6f90bd61952e3b4commit hash: f2b081d446d96ac9ff2c05e9d6f90bd61952e3b4 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Update to 0.17.0

Changes:	https://github.com/metaopt/optree/releases
0.16.0
01 Jun 2025 16:23:24
commit hash: ecc0af7eb28e2793eec69a0a656f7d0be9088474commit hash: ecc0af7eb28e2793eec69a0a656f7d0be9088474commit hash: ecc0af7eb28e2793eec69a0a656f7d0be9088474commit hash: ecc0af7eb28e2793eec69a0a656f7d0be9088474 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Update to 0.16.0

Changes:	https://github.com/metaopt/optree/releases
0.15.0
18 Apr 2025 05:37:33
commit hash: c05461a94b01d0921b8f2a25ea6a0002a1ce94c6commit hash: c05461a94b01d0921b8f2a25ea6a0002a1ce94c6commit hash: c05461a94b01d0921b8f2a25ea6a0002a1ce94c6commit hash: c05461a94b01d0921b8f2a25ea6a0002a1ce94c6 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Update to 0.15.0

Changes:	https://github.com/metaopt/optree/releases
0.14.1
19 Mar 2025 03:38:57
commit hash: 7518566071632d14aad2d6e95d4e0bf4c46e1726commit hash: 7518566071632d14aad2d6e95d4e0bf4c46e1726commit hash: 7518566071632d14aad2d6e95d4e0bf4c46e1726commit hash: 7518566071632d14aad2d6e95d4e0bf4c46e1726 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Update to 0.14.1

Changes:	https://github.com/metaopt/optree/releases
0.14.0
03 Feb 2025 15:51:12
commit hash: e5a8a9a82cb0153fceb9c0909d2ef0339af0225acommit hash: e5a8a9a82cb0153fceb9c0909d2ef0339af0225acommit hash: e5a8a9a82cb0153fceb9c0909d2ef0339af0225acommit hash: e5a8a9a82cb0153fceb9c0909d2ef0339af0225a files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Update to 0.14.0

Changes:	https://github.com/metaopt/optree/releases
0.13.1
21 Nov 2024 13:38:12
commit hash: 4c25d24872774a82e5d2c1df5b743b7a4b59adc7commit hash: 4c25d24872774a82e5d2c1df5b743b7a4b59adc7commit hash: 4c25d24872774a82e5d2c1df5b743b7a4b59adc7commit hash: 4c25d24872774a82e5d2c1df5b743b7a4b59adc7 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Update to 0.13.1

Changes:	https://github.com/metaopt/optree/releases
0.13.0
14 Oct 2024 05:25:33
commit hash: 5858e4f967922adecc5e1c20c60371bef28f76e7commit hash: 5858e4f967922adecc5e1c20c60371bef28f76e7commit hash: 5858e4f967922adecc5e1c20c60371bef28f76e7commit hash: 5858e4f967922adecc5e1c20c60371bef28f76e7 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Update to 0.13.0

Changes:	https://github.com/metaopt/optree/releases
0.12.1
29 Jul 2024 12:39:40
commit hash: 6154d6c94e0f02ab01821baa12fa394832bb639ecommit hash: 6154d6c94e0f02ab01821baa12fa394832bb639ecommit hash: 6154d6c94e0f02ab01821baa12fa394832bb639ecommit hash: 6154d6c94e0f02ab01821baa12fa394832bb639e files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Convert to USES=cmake:indirect
0.12.1
08 Jul 2024 16:21:37
commit hash: 347aff10f6997058596f122e6972d4bb9b196337commit hash: 347aff10f6997058596f122e6972d4bb9b196337commit hash: 347aff10f6997058596f122e6972d4bb9b196337commit hash: 347aff10f6997058596f122e6972d4bb9b196337 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Update to 0.12.1

Changes:	https://github.com/metaopt/optree/releases
0.11.0_1
18 Jun 2024 03:59:59
commit hash: 97dea13acee55a5c5ab4cd6ac1294c3ef3f42e1fcommit hash: 97dea13acee55a5c5ab4cd6ac1294c3ef3f42e1fcommit hash: 97dea13acee55a5c5ab4cd6ac1294c3ef3f42e1fcommit hash: 97dea13acee55a5c5ab4cd6ac1294c3ef3f42e1f files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Fix build with 32-bit architectures (e.g., i386)

- Bump PORTREVISION for package change

Obtained
from:	https://github.com/metaopt/optree/commit/9a613a705ee18e18784ba3a16b2786f56f9c74d2
(based on)
0.11.0
31 Mar 2024 03:06:35
commit hash: 3de9baac702f980d282b9a69fd7a4d421e70455fcommit hash: 3de9baac702f980d282b9a69fd7a4d421e70455fcommit hash: 3de9baac702f980d282b9a69fd7a4d421e70455fcommit hash: 3de9baac702f980d282b9a69fd7a4d421e70455f files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Update to 0.11.0

Changes:	https://github.com/metaopt/optree/releases
0.10.0
25 Dec 2023 08:56:51
commit hash: 2852bacb2eb02d3c3fd2ca75258cce968634f814commit hash: 2852bacb2eb02d3c3fd2ca75258cce968634f814commit hash: 2852bacb2eb02d3c3fd2ca75258cce968634f814commit hash: 2852bacb2eb02d3c3fd2ca75258cce968634f814 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/py-optree: Add py-optree 0.10.0

OpTree provides optimized PyTree utilities.

A PyTree is a recursive structure that can be an arbitrarily nested Python
container (e.g., tuple, list, dict, OrderedDict, NamedTuple, etc.) or an opaque
Python object. The key concepts of tree operations are tree flattening and its
inverse (tree unflattening). Additional tree operations can be performed based
on these two basic functions.

Number of commits found: 16