Simple Client in python to communicate with MoleculerJs Microservices using NATS
Project description
Simple Client in python to communicate with MoleculerJs Microservices using NATS.
Example
from moleculer_client import MoleculerClient
moleculer = MoleculerClient(node_id='python-node', moleculer_nodeID="node-1", url='nats://127.0.0.1:4222')
print(moleculer.discover())
moleculer.emit('client.alive')
print(moleculer.call('microservice.action', {'data': 'moleculer test'}))
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
moleculer-client-0.1.6.tar.gz
(2.5 kB
view hashes)