Skip to main content

A small library for creating pluggable app

Project description

pluggable_app_engine

pluggable_app_engine is very simple example of plugin system for Python app.

The main basis of pluggable_app_engine is treating plugins as modules. To add new plugin, just place your module or package in your modules directory and add its name to modules path in config file (config.json by default).

The entry point of your module (or package) is initialize_module() function. It takes only 1 argument: the AppContext object. AppContext represents all data in your application. It lets you to have access to application configuration (and customize your plugins behavior without modifying plugin code) and application state.

There are sample plugins in examples/modules directory. Launch the example.py script to check how it works.

pluggable_app_engine was tested for Python 3.5.3

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

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

Source Distribution

pluggable_app_engine-0.2.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

pluggable_app_engine-0.2-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

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