Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/CaioFilus/moleculer-client
Simple Client in python to communicate with MoleculerJs Microservices using NATS
https://github.com/CaioFilus/moleculer-client
Last synced: 2 months ago
JSON representation
Simple Client in python to communicate with MoleculerJs Microservices using NATS
- Host: GitHub
- URL: https://github.com/CaioFilus/moleculer-client
- Owner: CaioFilus
- License: mit
- Created: 2020-06-11T14:28:06.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-11T14:53:15.000Z (over 4 years ago)
- Last Synced: 2024-10-04T06:43:18.406Z (3 months ago)
- Language: Python
- Size: 8.79 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-moleculer - moleculer-client - Simple Client to communicate with Moleculer services using NATS. (Polyglot Implementations / Python)
README
Simple Client in python to communicate with MoleculerJs Microservices using NATS.
## Example
```python
from moleculer_client import MoleculerClientmoleculer = 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'}))
```