confection
confection copied to clipboard
:candy: Confection: the sweetest config system for Python
Hi! As part of my workflow, I want to save my Config to disk so I can reload it later. However, if the config contains a `*` section this fails....
## Overview Adds support for using Pydantic v1 or v2. All relevant Pydantic functions are extracted to utils that support Pydantic v1 and v2 style. CI Tests run with both...
I'm not sure whether this is intended behavior or not. In the following example I'd expect `make_resource` function to receive a `Resource`. ```python from typing import Callable from pydantic.main import...
Hi again, This PR should fix #54. We just have to verify that the destination is a dict when recursively updating a Config field, and overwrite the destination with the...
Hi, I noticed a bug when using pydantic casting functionalities. Using a custom component in spacy : ```python from pydantic import BaseModel class CastStrAsDict: @classmethod def validate(cls, value): if isinstance(value,...
Consider this: ```python from pydantic import BaseModel @registry.dim('v1') class Dim(BaseModel): length: int @registry.architecture('v1') def load_architecture(foo: str, dim: Dim): ... config str = """ [model] @architecture = 'v1' length = 6...
Hi, I have had the problem that I often want variables defined in the top-most layers of my config (e.g. a logger as seen below), which I then want to...
Update `field.type_` check for pydantic v2 `BaseModel`. Test case adapted from #54. This gets less convoluted once you drop earlier versions of pydantic v1.
It appears to me that the 'release-v0.1.5' tag is simply wrong. Based on the available tags (below) I'm _assuming_ that: 1. you are planning on moving to release- tag names...