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 details)

Uploaded Source

File details

Details for the file dotrc-0.1.tar.gz.

File metadata

  • Download URL: dotrc-0.1.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0

File hashes

Hashes for dotrc-0.1.tar.gz
Algorithm Hash digest
SHA256 5dab48b48b7fee39d5a28bba873ef33fdb09fd2211209aeff189b11ad60bd5d8
MD5 d8f096cd40428577269036b004d45b83
BLAKE2b-256 a78b5f182989f42970cfcf598acb12e832a533fdf436461b660080d8bd563235

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