Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Load configs from python modules or Django applications.

Project Description

Load configs from python modules especially Django applications. Plays well with Django application/modules. You can simply define your specification and then just load your modules which tells you what needs. It’s universal and easy to use.

Installation

pip install python-app-loader

Usage

Your settings.py

from app_loader import app_loader

APPS = ['testapp']

# load directly specified apps
app_loader.get_app_modules(APPS)

# load all modules
app_loader.load_modules()

# just propagate all loaded modules to settings
INSTALLED_APPS = app_loader.config.apps

# override all
try:
    from local_settings import *
except ImportError:
    pass

You can inicialize your AppLoader:

loader = AppLoader(autoload=False)

loader.get_app_modules(APPS)

print(loader.config.apps)

or you can create your own AppLoader:

class MyAppLoader(AppLoader):

    CONFIG_MASTER_OBJECT_CLASS = 'mymodule.MyMasterClass'

For advance example check django-leonardo which uses this module for loading configurations from all modules. (about 60+ modules) which could be auto loaded without any requirements.

Release History

Release History

History Node

1.0.0a0.dev2

History Node

1.0.0a0.dev1

This version
History Node

0.0.9

History Node

0.0.8

History Node

0.0.7

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
python-app-loader-0.0.9.tar.gz (18.5 kB) Copy SHA256 Checksum SHA256 Source Oct 17, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting