Skip to content

ibm-messaging/macaque

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Macaque

Flask style library for microservices with MQ Light

import macaque

Importing the macaque library into your application code

srv = macaque.Server()

Creating an instance of the macaque server component

@srv.service("news/technology")
def news_tech_handler(request):
	print request
	return {"headline": "MQ Light rocks!"}

Creating a service endpoint handler

cl = macaque.Client()

Creating an instance of the macaque client component

def response_handler(response):
    print response['headline']

app.call("news/technology", "MQ Light?", response_handler)

Calling a service endpoint and handling the returned value

This project is licensed under the Eclipse Public License, details can be found in the file LICENSE

About

Flask style library for microservices with MQ Light

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages