Skip to main content

Package for reading configs from yml files

Project description

Yaml config

Package for working with config files in yaml format

Using

yaml_config - root package.

open_config

The function for a configuration 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 object.

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.

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

yaml-config-reader-1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

yaml_config_reader-1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file yaml-config-reader-1.tar.gz.

File metadata

  • Download URL: yaml-config-reader-1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.6.0

File hashes

Hashes for yaml-config-reader-1.tar.gz
Algorithm Hash digest
SHA256 93393a9eeecfcd1efdb5b4d78476b41a22e73b8e1eac048dcdde8f14ae016389
MD5 f296e0a6e63d6575e0b47a05f81e41d2
BLAKE2b-256 3135036f249582b6549639d36b068176ae8c60e28e8a49cfc53296a9c487a565

See more details on using hashes here.

File details

Details for the file yaml_config_reader-1-py3-none-any.whl.

File metadata

  • Download URL: yaml_config_reader-1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.6.0

File hashes

Hashes for yaml_config_reader-1-py3-none-any.whl
Algorithm Hash digest
SHA256 b600b8ec516299a078a008b1fee44199c85c6aed25ae04346cc45e4a2a42f1ef
MD5 85d81bc0590c1a218c3ee75b4c7745ca
BLAKE2b-256 a143175749ad0adb6ffe0175797bb6d4475dc2ffcfe5265f01d9de8c3449ae06

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page