Skip to main content

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 details)

Uploaded Source

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

Hashes for moleculer-client-0.1.6.tar.gz
Algorithm Hash digest
SHA256 4ea8c1ceb3866c21facb0dc77ed1b9265f68cc7b4e453fbeac4c9933ae2c02b6
MD5 1b046dceebff157a759eba1e485ad06b
BLAKE2b-256 92875621a9f8649a7f9ef1191cb8938ee7c382eaf907cfb4825b56d112d51e3c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page