(Spelled like multiplug) The purpose of this module is to provide a dead simple plugin handler module. I wanted something:
Capable of handling multiple plugins (and that’s pretty obvious)
Capable of handling multiple implementation of the same plugin
Capable of handling multiple pkg_resources.WorkingSet-s… by itself
Easy to initialize in your pluggable application/framework.
I wanted somthing like:
content_types = multipla.power_up('scriba.content_types')
def to_json(object):
content_type = content_types.get('application/json')
return content_type.format(ojbect)
def to_user_supplied_type(object, content_type):
return content_types.get(content_type).format(object)
or:
from loremipsum import generator
import multipla
samples = multipla.power_up('loremipsum.samples')
vaporware = generator.Generator(samples.get('vaporware'))
You can read more on Pythonhosted or Read the Docs. Since this package has en extensive docstring documentation as well as code comments, you can read more browsing the source code or in the python interactive shell.
Metadata
Release files for multipla 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distributions (sdists)
| File | Size | Uploaded | |
|---|---|---|---|
| multipla-0.3.3.zip | 14.1 kB | Details | |
| multipla-0.3.3.tar.gz | 9.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| multipla-0.3.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 33.3 kB
Release files / multipla-0.3.3.zip
| Download URL | multipla-0.3.3.zip |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
849cd2db11b4b99dd663886eacb10950a84071c69c13d25d30d640f062e47a82
|
|
BLAKE2b-256 checksum How to use checksums |
4626f9186412e02d9c25f7df041a4f1c8c9ff987094cd78952257c8396eba108
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / multipla-0.3.3.tar.gz
| Download URL | multipla-0.3.3.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7b2123995d472fa781189ab7944a13362921bf5a5c49668281ce3843ff3a04a
|
|
BLAKE2b-256 checksum How to use checksums |
c79314928338a3c45419aa17e910e6fe90f481f20e02657089ea1ec62a80f2b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / multipla-0.3.3-py2.py3-none-any.whl
| Download URL | multipla-0.3.3-py2.py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
156859978114185f8ea925039b17f950de5af8f9bf3cf6877ffffb74f893d0a7
|
|
BLAKE2b-256 checksum How to use checksums |
3b1f1d1e0bfc824a5a45a580efa4e52c3f690dd6332e6b98b6add4d518323889
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |