No project description provided
Project description
ReNats
Elegant, modern and asynchronous NATS Client API framework in Python
from renats.client import connect
client = await connect('127.0.0.1', 4222)
# Publish message to subject 'my.subject' with payload 'My payload =)'
await client.publish('my.subject', b'My payload =)')
# Publish message to subject 'my.subject' with payload 'My payload =)',
# reply subject 'my.reply.subject' and header 'MyHeader' with value 'MyValue'
await client.publish('my.subject', b'My payload =)', reply='my.reply.subject', headers={'MyHeader': 'MyValue'})
# Closing client
await client.close()
TODO
- Subscriptions
- JetStream
- ObjectStorage
- Request-Reply
- Request-Reply API Framework for microservices
- And more, maybe...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
renats-0.2.0.tar.gz
(5.2 kB
view hashes)
Built Distribution
renats-0.2.0-py3-none-any.whl
(9.0 kB
view hashes)