Rapidly create services.
- python >= 3.6
- mongodb
- mysql
- rabbitmq
- redis
pip install oriole-service
o t
o r <service>
o h <service>
o d
If you are not familar with docker, skip this paragraph. Startup your rabbitmq/mysql/redis, and use their address below.
- Create an auth_service.
docker containers run -e 'RABBIT=pyamqp://' \
-e 'MYSQL=mysql://' \
-e 'REDIS=redis://' \
zhouxiaoxiang/service
- Login.
from oriole_service.api import ClusterRpcProxy
with ClusterRpcProxy({'AMQP_URI':'pyamqp://'}) as s:
s.auth_service.login({})



