Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

configloader

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

configloader

Python dict that supports common app configuration-loading scenarios.

  • 1.0.1
  • PyPI
  • Socket score

Maintainers
1

============ ConfigLoader

.. image:: https://travis-ci.org/adblair/configloader.svg?branch=master :target: https://travis-ci.org/adblair/configloader

.. image:: https://coveralls.io/repos/adblair/configloader/badge.svg?branch=master&service=github :target: https://coveralls.io/github/adblair/configloader?branch=master

.. image:: https://img.shields.io/pypi/dm/configloader.svg :target: https://pypi.python.org/pypi/configloader

ConfigLoader is a Python dictionary subclass that provides convenience methods for common app configuration-loading scenarios, inspired by flask.Config_.

Features

Easily load config settings from:

  • Python modules, classes or objects
  • JSON files
  • YAML files
  • Environment variables

Supports Python 2.6+ and 3.3+.

Installation

Install ConfigLoader from PyPI_ using pip_::

pip install configloader[all]

The [all] indicates that all optional dependencies (AttrDict and PyYAML) should be installed.

Example usage

::

>>> from configloader import ConfigLoader
>>> config = ConfigLoader
>>> config.update_from_object('my_app.settings')
>>> config.update_from_yaml_env('YAML_SETTINGS_PATH')

Documentation

https://configloader.readthedocs.org/en/stable/

.. _flask.Config: http://flask.pocoo.org/docs/0.10/api/#configuration .. _PyPI: https://pypi.python.org/pypi .. _pip: https://pip.pypa.io/

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc