Skip to content

daimon99/django-nameko

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo forks from and3rson/django-nameko. several improves:

  • fix rpc module not found bug in python3

django-nameko

build status

Django wrapper for Nameko microservice framework.

How to use

from django_nameko import get_pool           

# Within some view or model:
with get_pool().next() as n:
    n.rpc.mailer.send_mail(foo='bar')

Installation

pip install django-nameko

Configuration

# Config to be passed to ClusterRpcProxy 
NAMEKO_CONFIG = { 
    'AMQP_URI': 'pyamqp://<username>:<password>@127.0.0.1:5672/<vhost>'
}  

# Number of proxies to create
NAMEKO_POOL_SIZE = 4

Credits

Thanks to guys who made an awesome Nameko framework.

About

Django wrapper for nameko microservice framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%