Skip to main content

Develop microservices with Python

Project description



In the past years, the microservice-based architecture became very popular in the computing field.
Although this architecture grew more and more popular, there are a few tools that can help an
individual to build such systems. The current alternatives are using [nameko](
or by building a web application that acts like a microservice. I started developing this framework in order
to provide a tool for creating and managing such systems with ease, and that are capable of being specialized in
a certain role, be it entity management, data storage or just computing.

Example basic usage

I want to obtain a framework that will allow someone to develop a microservice in a manner similar to this

from pymicroservice.core.microservice import PyMicroService
from pymicroservice.core.decorators import public_method, private_api_method

class HelloWorldService(PyMicroService):
name = ""
host = ""
port = 5000

def __init__(self):
self._values = {}
super(HelloWorldService, self).__init__()

def say_hello(self, name):
return "hello {}".format(name)

def store_value(self, name, value):
Stores the value internally.
self._values[name] = value
return "ok"

def retrieve_value(self, name):
Retrieves a value that was previously stored.
return self._values[name]

def more_stuff(self, x, y, k=3, *args, **kwargs):
return "ok"

if __name__ == '__main__':
service = HelloWorldService()


Project status

This project is under heavy development.

Home-page: UNKNOWN
Author: Vlad Calin
License: UNKNOWN
Description: UNKNOWN
Platform: UNKNOWN

Project details

Download files

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

Source Distribution

pymicroservice-0.0.1.tar.gz (9.8 kB view hashes)

Uploaded source

Built Distribution

pymicroservice-0.0.1-py3-none-any.whl (14.6 kB view hashes)

Uploaded py3

Supported by

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