GitXplorerGitXplorer
m

multipla

public
1 stars
2 forks
1 issues

Commits

List of commits on branch master.
Unverified
8d55573e8603699aff7049163de1c2ef8ff60b65

Merge branch 'master' of https://github.com/monkeython/multipla

mmonkeython committed 10 years ago
Unverified
69229b7227e1252238cbbcb66bb7c38d5def4f76

More documentations, .travis.yml fixes

mmonkeython committed 10 years ago
Unverified
e6dd76b472b76c1fbb31856f4d6e76f8a81a7f4e

More documentations, .travis.yml fixes.

mmonkeython committed 10 years ago
Unverified
490ffcf7e1965f410d1177ddd7b7f3cd2c5cab26

Python3 compatibility fixes

mmonkeython committed 10 years ago
Unverified
a01faa2b9461247646330b99830890ef7b74dff0

Added -a to coverage run

mmonkeython committed 10 years ago
Unverified
005a5d81676ccc04c8519fb678c01575e890f606

flake8 fixes

mmonkeython committed 10 years ago

README

The README file for this repository.

.. image:: https://travis-ci.org/monkeython/multipla.svg?branch=v0.3.3 :target: https://travis-ci.org/monkeython/multipla :alt: Build status

.. image:: https://coveralls.io/repos/monkeython/multipla/badge.png?branch=v0.3.3 :target: https://coveralls.io/r/monkeython/multipla?branch=master :alt: Test coverage

.. image:: https://readthedocs.org/projects/multipla/badge/?version=v0.3.3&style=default :target: http://multipla.readthedocs.org/en/latest/ :alt: Read the Docs

.. image:: https://pypip.in/download/multipla/badge.svg?period=month :target: https://pypi.python.org/pypi/multipla/ :alt: Downloads

.. image:: https://pypip.in/version/multipla/badge.svg?text=latest :target: https://pypi.python.org/pypi/multipla/ :alt: Latest Version

.. image:: https://pypip.in/status/multipla/badge.svg :target: https://pypi.python.org/pypi/multipla/ :alt: Development Status

.. image:: https://pypip.in/py_versions/multipla/badge.svg :target: https://pypi.python.org/pypi/multipla/ :alt: Supported Python versions

.. image:: https://pypip.in/implementation/multipla/badge.svg :target: https://pypi.python.org/pypi/multipla/ :alt: Supported Python implementations

.. image:: https://pypip.in/egg/multipla/badge.svg :target: https://pypi.python.org/pypi/multipla/ :alt: Egg Status

.. image:: https://pypip.in/wheel/multipla/badge.svg :target: https://pypi.python.org/pypi/multipla/ :alt: Wheel Status

.. .. image:: https://pypip.in/license/multipla/badge.svg .. :target: https://pypi.python.org/pypi/multipla/ .. :alt: License ..

(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:

.. code-block:: python

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:

.. code-block:: python

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.

.. _Pythonhosted: http://pythonhosted.org/multipla .. _Read the Docs: http://multipla.readthedocs.org