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
Hashes for yaml_config_reader-3.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 776bc10e17f28afc26fc6fc3018635c57cc84f0806389769b687410eb8e420c4 |
|
MD5 | f7e430d7934b4768ad3ebbf4f5cccbf2 |
|
BLAKE2b-256 | f56eb61fca80998f44996db4333eb785a95975a7416480fa0f77560d12ce86e2 |