Open k-allagbe opened 10 months ago
If this is a draft, you should "Convert to draft".
@k-allagbe get this functionality into its own repo as there are more work to be done here.
@k-allagbe get this functionality into its own repo as there are more work to be done here.
@rngadam Done. https://github.com/ai-cfia/obol
@rngadam Done. https://github.com/ai-cfia/obol
I see you have this issue pending:
@rngadam Done. https://github.com/ai-cfia/obol
I see you have this issue pending:
The PR is here: https://github.com/ai-cfia/obol/pull/2
75
issue75-declarative-env-var-validation
This solution uses Pydantic and Pydantic-Settings for the handling of the validations and nice exceptions.
The dynamic_env_validator.py ensures we can create a vlidation model (DynamicSettings) from a yaml file (env.yaml).
When the DynamicSettings is instantiated with the .env file, it validates the env vars.