Package for reading configs from yml files
Project description
Yaml config
The package gives object like access for config files in yaml format
Using
yaml_config
- root package.
open_config
The function for configuration an object from a file.
The function accepts an unlimited number of arguments. Each argument is a path to the intended configuration file. The function iterates through all paths in the order in which they were passed to the function. The config that was found first will be used. If the arguments run out and the file is not found, an error will be called.
The function returns the configuration as an python dict
.
cut_protocol
The function truncates the protocol at the passed url.
The function takes a url in string format as an argument.
The function returns clear domain without protocol.
Developing
Running tests
pytest
Updating
- Writing new code
- Updating version in
setup.py
- Running
python -m build
for build - Setup
$HOME/.pypirc
link. - Pushing to pypi via
python -m twine upload --repository yaml-config-reader dist/*
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file yaml_config_reader-3.0.1.tar.gz
.
File metadata
- Download URL: yaml_config_reader-3.0.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93dc08696af8bc7ffe02cc13f51a3fb7b00c82e8b0d412b5be6b67d95218a25a |
|
MD5 | 63fe02e6f355c0290952bc7eb1e14395 |
|
BLAKE2b-256 | 56964825d98117550c188e433fb2b2f051424dd82c3e6d72391bffcd12f558fd |
File details
Details for the file yaml_config_reader-3.0.1-py3-none-any.whl
.
File metadata
- Download URL: yaml_config_reader-3.0.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 776bc10e17f28afc26fc6fc3018635c57cc84f0806389769b687410eb8e420c4 |
|
MD5 | f7e430d7934b4768ad3ebbf4f5cccbf2 |
|
BLAKE2b-256 | f56eb61fca80998f44996db4333eb785a95975a7416480fa0f77560d12ce86e2 |