Skip to main content

Simple .rc file loading for your Python projects

Project description

dotrc

Simple .rc file loading for your Python projects. Looks for config files in typical locations based on your app name:

  • .apprc
  • ~/.config/app

Files are loaded such that files earlier in the above list override settings in later ones. The content of each file is parsed as YAML, falling back to JSON if that fails.

Usage

import dotrc

# Loads .apprc, ~/.config/app, etc.
config = dotrc.load('app')

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

dotrc-0.1.tar.gz (1.8 kB view hashes)

Uploaded Source

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