-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac894ef
commit adee254
Showing
4 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "pyya" | ||
version = "0.1.1" | ||
version = "0.1.2" | ||
authors = [ | ||
{ name="shadowy-pycoder", email="[email protected]" }, | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Metadata-Version: 2.1 | ||
Name: pyya | ||
Version: 0.1.1 | ||
Version: 0.1.2 | ||
Summary: Convert YAML configuration files to Python objects | ||
Author-email: shadowy-pycoder <[email protected]> | ||
Project-URL: Homepage, https://github.com/shadowy-pycoder/pyya | ||
|
@@ -24,7 +24,7 @@ Requires-Dist: munch>=4.0.0 | |
Requires-Dist: pyyaml>=6.0.2 | ||
Requires-Dist: types-pyyaml>=6.0.12.20240917 | ||
|
||
# paya - Simple tool that converts YAML configuration files to Python objects | ||
# pyya - Simple tool that converts YAML configuration files to Python objects | ||
|
||
![PyPI - Downloads](https://img.shields.io/pypi/dd/pyya) | ||
[![ClickPy Dashboard](https://img.shields.io/badge/clickpy-dashboard-orange)](https://clickpy.clickhouse.com/dashboard/pyya) | ||
|
@@ -38,7 +38,7 @@ Requires-Dist: types-pyyaml>=6.0.12.20240917 | |
|
||
- Very `lightweight` and `simple` API (currently it contains only one function) | ||
- `Easy` to use | ||
- Based on popular and well-tested libraries (like `camel-converter` and `munch`) | ||
- Based on popular and well-tested libraries (like `camel-converter`, `PyYAML` and `munch`) | ||
- Automatically `merge` default and production configuration files | ||
- Convert keys in configuration files to `snake_case` | ||
|
||
|
@@ -90,9 +90,9 @@ print(json.dumps(config.database)) | |
|
||
As you can see, `pyya` automatically merges default config file with production config file. | ||
|
||
Under the hood `pyya` uses [munch](https://pypi.org/project/munch/) library to create attribute-stylish dictionaries. | ||
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. | ||
|
||
`paya` automatically adds underscore prefix to Python keywords and can be configured to convert `camelCase` or `PascalCase` keys to `snake_case`. | ||
`pyya` automatically adds underscore prefix to Python keywords and can be configured to convert `camelCase` or `PascalCase` keys to `snake_case`. | ||
|
||
If `raise_error_non_identifiers=True`, `pyya` will raise error if section name is not valid Python identifier. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters