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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pluggable_app_engine-0.2.tar.gz.
File metadata
- Download URL: pluggable_app_engine-0.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ef9b8e696c7db03b70a82fda177372701c49bd76ef18de4c2ef1ee88addc9f1
|
|
| MD5 |
8c9d7988bc9e2e3fa1bb72f35ec5d545
|
|
| BLAKE2b-256 |
5cef9ec54d64933a7f0cd30a4f23c312df84fa830655c3848a8bfe47b80a3204
|
File details
Details for the file pluggable_app_engine-0.2-py3-none-any.whl.
File metadata
- Download URL: pluggable_app_engine-0.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca81e855839a3b029c8e08e70ccc291ac8f572f0e00a10c76aaaeec6889e589c
|
|
| MD5 |
5b5aa093b9ca15e3819b5e02648984f1
|
|
| BLAKE2b-256 |
d7277fb11117aeeff9b3e09623f64659b8659e9518719d61597ef9c96d3944ff
|