Skip to main content

python-app-loader

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.

Read More

Metadata

Release files for python-app-loader 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-app-loader 0.0.9
File Size Uploaded Provenance Actions
python-app-loader-0.0.9.tar.gz 18.5 kB Without provenance Details for python-app-loader-0.0.9.tar.gz

Release files / python-app-loader-0.0.9.tar.gz

Download URL python-app-loader-0.0.9.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
61c0d23feb0753d4623244859856b5fa45a0f32f1f0fc6c340906c25aeeecbc6
BLAKE2b-256 checksum
How to use checksums
9fe1e218002321e9254f324da3377add6884d32ac665015d2ec7912eeaffd449
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for python-app-loader 0.0.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page