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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pluggable_app_engine-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca81e855839a3b029c8e08e70ccc291ac8f572f0e00a10c76aaaeec6889e589c |
|
MD5 | 5b5aa093b9ca15e3819b5e02648984f1 |
|
BLAKE2b-256 | d7277fb11117aeeff9b3e09623f64659b8659e9518719d61597ef9c96d3944ff |