Skip to main content

Library to create microservices for Micro

Project description

Micro-dev is the only thing needed to create plugins for Micro and use the Micro’s endpoints to send tasks.



$ pip install micro-dev

Development version:

$ git clone
$ cd micro-dev
$ pip install .

or direct from repository:

$ pip install git+ssh://


Create Plugins

Write a Micro plugin is very simple. All that you need to do is create a file named which defines the plugin as follow:

from micro.plugin.pluginbase import PluginBase
from micro.plugin.pluginbase import PluginDescription

class ExamplePlugin(PluginBase):
    def __init__(self):
        print("This is an example plugin")

    # This is the method executed by Micro
    def run(self, name):
        return "Hello " + name + "!!!"

# This description is required by Micro
plugin = PluginDescription(
    name="Example Plugin",
    author="Jhon Doe",
    description="A very simple example plugin",
    long_description="This plugin is a very simple example, "
                     "for that reason, we don't have a long description",
    plugin_help="Params: name type string; A name to greet"

Send tasks

>>> from micro.api.endpoints import Requests
>>> req = Requests(BROKER_URL, QUEUE_NAME)
>>> req.plugins.delay().wait()
{'Example plugin': 'A very simple example plugin'}
>>>"Example plugin", name="Micro").wait()
'Hello Micro!!!'

Project details

Download files

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

Files for Micro-dev, version 2.0.2
Filename, size File type Python version Upload date Hashes
Filename, size Micro_dev-2.0.2-py3-none-any.whl (4.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size Micro-dev-2.0.2.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page