You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Very `lightweight` and `simple` API (currently it contains only one function)
15
15
-`Easy` to use
16
-
- Based on popular and well-tested libraries (like `pydantic`, `camel-converter`, `PyYAML` and `munch`)
16
+
- Based on popular and well-tested libraries (like `pydantic`, `camel-converter`, `PyYAML`, `toml` and `munch`)
17
17
- Automatically `merge` default and production configuration files
18
18
- Convert keys in configuration files to `snake_case`
19
-
- YAML validation with `Pydantic` models
19
+
- YAML/TOML validation with `Pydantic` models
20
20
- Generate stub files for your dynamic configuration with `pyya` CLI tool.
21
21
22
22
## Installation
@@ -94,6 +94,8 @@ As you can see, `pyya` automatically merges default config file with production
94
94
95
95
Under the hood `pyya` uses [PyYAML](https://pypi.org/project/PyYAML/) to parse YAML files and [munch](https://pypi.org/project/munch/) library to create attribute-stylish dictionaries.
96
96
97
+
For TOML files the logic is the same except you should point `pyya` to correct TOML files (e.g. `config.toml`)
- Very `lightweight` and `simple` API (currently it contains only one function)
42
44
- `Easy` to use
43
-
- Based on popular and well-tested libraries (like `pydantic`, `camel-converter`, `PyYAML` and `munch`)
45
+
- Based on popular and well-tested libraries (like `pydantic`, `camel-converter`, `PyYAML`, `toml` and `munch`)
44
46
- Automatically `merge` default and production configuration files
45
47
- Convert keys in configuration files to `snake_case`
46
-
- YAML validation with `Pydantic` models
48
+
- YAML/TOML validation with `Pydantic` models
47
49
- Generate stub files for your dynamic configuration with `pyya` CLI tool.
48
50
49
51
## Installation
@@ -121,6 +123,8 @@ As you can see, `pyya` automatically merges default config file with production
121
123
122
124
Under the hood `pyya` uses [PyYAML](https://pypi.org/project/PyYAML/) to parse YAML files and [munch](https://pypi.org/project/munch/) library to create attribute-stylish dictionaries.
123
125
126
+
For TOML files the logic is the same except you should point `pyya` to correct TOML files (e.g. `config.toml`)
0 commit comments