Skip to main content

Configuration tool

Project description

Divine

Divine is a configuration utility with unique features:

  • Ability to chain configs together, composing the whole from pieces
  • Ability to quickly grab a nested key using notation like c.get('abc/xyz/foo/bar')
  • Integrated f-strings for composable values and DRY patterns
  • Auto-callable config entries to instantiate a class or call a function with args and kwargs automatically from the config (yes, this is a security risk; don't parse any config from unknown sources)

Divine accepts YAML or JSON files. It can be manually configured or auto-configured with an environment variable pointing to a config file. This allows for many processes to use the config without having to explicitly initialize the config in each process.

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

divine-0.0.1.tar.gz (1.4 kB view details)

Uploaded Source

File details

Details for the file divine-0.0.1.tar.gz.

File metadata

  • Download URL: divine-0.0.1.tar.gz
  • Upload date:
  • Size: 1.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1

File hashes

Hashes for divine-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f52b8f5fb04f3b681b67203e936dc373a56c1300809c557978f102b2c1b82591
MD5 1516f6cab37d77cd07a75cd9518d1a78
BLAKE2b-256 83c002a486b951dce8f4dcf15b8830f5810c3fa380c01f0b6247ccdc436a87f4

See more details on using hashes here.

Provenance

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