{"added":null,"apiVersion":1,"behindSince":null,"buildDepends":[],"categories":["devel","python"],"comment":"Sweetest config system for Python","compare":null,"dependentCount":null,"description":"confection is a lightweight library that offers a configuration system letting\nyou conveniently describe arbitrary trees of objects.\n\nConfiguration is a huge challenge for machine-learning code because you may want\nto expose almost any detail of any function as a hyperparameter. The setting you\nwant to expose might be arbitrarily far down in your call stack, so it might\nneed to pass all the way through the CLI or REST API, through any number of\nintermediate functions, affecting the interface of everything along the way. And\nthen once those settings are added, they become hard to remove later. Default\nvalues also become hard to change without breaking backwards compatibility.\n\nTo solve this problem, confection offers a config system that lets you easily\ndescribe arbitrary trees of objects. The objects can be created via function\ncalls you register using a simple decorator syntax. You can even version the\nfunctions you create, allowing you to make improvements without breaking\nbackwards compatibility. The most similar config system we're aware of is Gin,\nwhich uses a similar syntax, and also allows you to link the configuration\nsystem to functions in your code using a decorator. confection's config system\nis simpler and emphasizes a different workflow via a subset of Gin's\nfunctionality.","flavors":[],"html":"https://daemonports.org/dragonfly/devel/py-confection0/","kind":"port","lastUpdate":null,"license":["MIT"],"licenses":["MIT"],"maintainer":"sunpoet@FreeBSD.org","name":"py312-confection0","newest":true,"newestVersion":"0.1.5","noVulnData":false,"origin":"devel/py-confection0","otherSystems":[{"maintainer":"sunpoet@FreeBSD.org","newest":true,"origin":"devel/py-confection0","path":"/devel/py-confection0/","system":"FreeBSD","version":"0.1.5"},{"maintainer":"sunpoet@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/py-confection0","path":"","system":"HardenedBSD","version":"0.1.5"},{"maintainer":"sunpoet@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/py-confection0","path":"","system":"GhostBSD","version":"0.1.5"}],"packages":null,"pkgName":"py312-confection0-0.1.5","related":["devel/py-confection"],"repository":"DPorts","requiredBy":["devel/py-thinc"],"requiredByCount":1,"runDepends":["devel/py-pydantic2","devel/py-srsly","lang/python312"],"status":null,"system":"dragonfly","systemLabel":"DragonFly","version":"0.1.5","versions":[{"date":"2026-11-11","version":"0.1.5"}],"vulnerabilities":null,"www":"https://github.com/explosion/confection"}
