Skip to main content

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/*

Metadata

Release files for yaml-config-reader 3.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yaml-config-reader 3.0.1
File Size Uploaded Provenance
yaml_config_reader-3.0.1.tar.gz 5.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for yaml-config-reader 3.0.1
File Interpreter ABI Platform
yaml_config_reader-3.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.6 kB

Release files / yaml_config_reader-3.0.1.tar.gz

Download URL yaml_config_reader-3.0.1.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
93dc08696af8bc7ffe02cc13f51a3fb7b00c82e8b0d412b5be6b67d95218a25a
BLAKE2b-256 checksum
How to use checksums
56964825d98117550c188e433fb2b2f051424dd82c3e6d72391bffcd12f558fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.13.0

Release files / yaml_config_reader-3.0.1-py3-none-any.whl

Download URL yaml_config_reader-3.0.1-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
776bc10e17f28afc26fc6fc3018635c57cc84f0806389769b687410eb8e420c4
BLAKE2b-256 checksum
How to use checksums
f56eb61fca80998f44996db4333eb785a95975a7416480fa0f77560d12ce86e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.13.0

Security for yaml-config-reader 3.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page