Skip to main content

No project description provided

Project description

Ultra Simple Config for Python

Installation

pip install ultra-simple-config

Usage

Create a yml file with your configuration, for example:

db:
  url: localhost
  port: 5432
  format: utf8


user:
  name: blubby

Then load it in your python code:

from ultra_simple_config import load_config

Then use it on your method like that:

@load_config(location="tests/example_config/db.yaml")
def test_loading(cfg: DictConfig):

    # then you can use it like this:
    print(cfg.db.url)

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

ultra_simple_config-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ultra_simple_config-0.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file ultra_simple_config-0.1.0.tar.gz.

File metadata

  • Download URL: ultra_simple_config-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/5.15.0-91-generic

File hashes

Hashes for ultra_simple_config-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a0dc9573569cc82791081868308cbc018190bc435d1cd38c2a3670438d93186e
MD5 310407738b90ba4c8496d49ed84addae
BLAKE2b-256 5a871b9cc980cee002bdbd2fd3470d6522f17dc26c847cb46037a07f2c6a204a

See more details on using hashes here.

File details

Details for the file ultra_simple_config-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ultra_simple_config-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/5.15.0-91-generic

File hashes

Hashes for ultra_simple_config-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f1d9b8f9f7bb9a5d8b725fc353465f270d8a72661ac3c941e08c028d38d7670
MD5 1bcd9efcf386f4f284ef92e6f9287c3b
BLAKE2b-256 9c70ee1b6f0d11dbce52c7900ec7ac45f58be4591be71006443a8ae6a5d3e3d8

See more details on using hashes here.

Supported by

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