1
1
Metadata-Version: 2.1
2
2
Name: pyya
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
Summary: Convert YAML configuration files to Python objects
5
5
Author-email: shadowy-pycoder <shadowy-pycoder@example.com>
6
6
Project-URL: Homepage, https://github.com/shadowy-pycoder/pyya
@@ -26,8 +26,22 @@ Requires-Dist: types-pyyaml>=6.0.12.20240917
26
26
27
27
# paya - Simple tool that converts YAML configuration files to Python objects
28
28
29
+ 
30
+ [](https://clickpy.clickhouse.com/dashboard/pyya)
31
+ 
32
+ [](https://pypi.org/project/pyya/)
33
+ 
34
+ 
29
35
[](https://opensource.org/licenses/MIT)
30
36
37
+ ## Features
38
+
39
+ - Very `lightweight` and `simple` API (currently it contains only one function)
40
+ - `Easy` to use
41
+ - Based on popular and well-tested libraries (like `camel-converter` and `munch`)
42
+ - Automatically `merge` default and production configuration files
43
+ - Convert keys in configuration files to `snake_case`
44
+
31
45
32
46
## Installation
33
47
@@ -74,19 +88,20 @@ print(json.dumps(config.database))
74
88
75
89
```
76
90
77
- As you can see, pyya automatically merges default config file with production config file.
91
+ As you can see, ` pyya` automatically merges default config file with production config file.
78
92
79
93
Under the hood `pyya` uses [munch](https://pypi.org/project/munch/) library to create attribute-stylish dictionaries.
80
94
81
- `paya` automatically adds underscore prefix to Python keywords and can be configured to convert `camelCase` or `PascalCase` keys to snake_case.
95
+ `paya` automatically adds underscore prefix to Python keywords and can be configured to convert `camelCase` or `PascalCase` keys to ` snake_case` .
82
96
83
- If `raise_error_non_identifiers` is True, `pyya` will raise error if section name is not valid Python identifier.
97
+ If `raise_error_non_identifiers= True` , `pyya` will raise error if section name is not valid Python identifier.
84
98
85
99
## Contributing
86
100
87
101
Are you a developer?
88
102
89
- - Fork the repository
103
+ - Fork the repository `https://github.com/shadowy-pycoder/pyya/fork`
104
+ - Clone the repository: `git clone https://github.com/<your-username>/pyya.git && cd pyya`
90
105
- Create your feature branch: `git switch -c my-new-feature`
91
106
- Commit your changes: `git commit -am 'Add some feature'`
92
107
- Push to the branch: `git push origin my-new-feature`
0 commit comments