Port details |
- py-confection Sweetest config system for Python
- 0.1.4 devel =0 0.1.4Version of this port present on the latest quarterly branch.
- Maintainer: sunpoet@FreeBSD.org
- Port Added: 2024-02-21 15:18:34
- Last Update: 2024-02-21 15:06:04
- Commit Hash: 4960f5d
- Also Listed In: python
- License: MIT
- WWW:
- https://github.com/explosion/confection
- Description:
- confection is a lightweight library that offers a configuration system letting
you conveniently describe arbitrary trees of objects.
Configuration is a huge challenge for machine-learning code because you may want
to expose almost any detail of any function as a hyperparameter. The setting you
want to expose might be arbitrarily far down in your call stack, so it might
need to pass all the way through the CLI or REST API, through any number of
intermediate functions, affecting the interface of everything along the way. And
then once those settings are added, they become hard to remove later. Default
values also become hard to change without breaking backwards compatibility.
To solve this problem, confection offers a config system that lets you easily
describe arbitrary trees of objects. The objects can be created via function
calls you register using a simple decorator syntax. You can even version the
functions you create, allowing you to make improvements without breaking
backwards compatibility. The most similar config system we're aware of is Gin,
which uses a similar syntax, and also allows you to link the configuration
system to functions in your code using a decorator. confection's config system
is simpler and emphasizes a different workflow via a subset of Gin's
functionality.
- ¦ ¦ ¦ ¦
- 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.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}confection>0:devel/py-confection@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/devel/py-confection/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/py-confection
- pkg install py39-confection
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 py39-confection listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py39-confection
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1708448816
SHA256 (confection-0.1.4.tar.gz) = e80f22fd008b5231a2e8852fac6de9e28f2276a04031d0536cff74fe4a990c8f
SIZE (confection-0.1.4.tar.gz) = 38679
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py39-setuptools>=0 : devel/py-setuptools@py39
- py39-wheel>=0 : devel/py-wheel@py39
- python3.9 : lang/python39
- py39-build>=0 : devel/py-build@py39
- py39-installer>=0 : devel/py-installer@py39
- Test dependencies:
-
- python3.9 : lang/python39
- Runtime dependencies:
-
- py39-pydantic2>=1.7.4<3.0.0 : devel/py-pydantic2@py39
- py39-srsly>=2.4.0<3.0.0 : devel/py-srsly@py39
- python3.9 : lang/python39
- This port is required by:
- for Build
-
- textproc/py-spacy-llm
- for Run
-
- devel/py-thinc
- devel/py-thinc8
- devel/py-weasel
Configuration Options:
- No options to configure
- Options name:
- devel_py-confection
- USES:
- python
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Number of commits found: 1
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
0.1.4 21 Feb 2024 15:06:04 |
Po-Chuan Hsieh (sunpoet) |
devel/py-confection: Add py-confection 0.1.4
confection is a lightweight library that offers a configuration system letting
you conveniently describe arbitrary trees of objects.
Configuration is a huge challenge for machine-learning code because you may want
to expose almost any detail of any function as a hyperparameter. The setting you
want to expose might be arbitrarily far down in your call stack, so it might
need to pass all the way through the CLI or REST API, through any number of
intermediate functions, affecting the interface of everything along the way. And
then once those settings are added, they become hard to remove later. Default
values also become hard to change without breaking backwards compatibility.
To solve this problem, confection offers a config system that lets you easily
describe arbitrary trees of objects. The objects can be created via function
calls you register using a simple decorator syntax. You can even version the
functions you create, allowing you to make improvements without breaking
backwards compatibility. The most similar config system we're aware of is Gin,
which uses a similar syntax, and also allows you to link the configuration
system to functions in your code using a decorator. confection's config system
is simpler and emphasizes a different workflow via a subset of Gin's
functionality. |
Number of commits found: 1
|