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
File details
Details for the file moleculer-client-0.1.6.tar.gz.
File metadata
- Download URL: moleculer-client-0.1.6.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ea8c1ceb3866c21facb0dc77ed1b9265f68cc7b4e453fbeac4c9933ae2c02b6
|
|
| MD5 |
1b046dceebff157a759eba1e485ad06b
|
|
| BLAKE2b-256 |
92875621a9f8649a7f9ef1191cb8938ee7c382eaf907cfb4825b56d112d51e3c
|