Metadata-Version: 2.1
Name: renats
Version: 0.2.1a0
Summary: 
Author: Respirens
Author-email: thesergiyprotsanin@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: msgspec (>=0.15.1,<0.16.0)
Requires-Dist: typing-extensions (>=4.6.3,<5.0.0)
Description-Content-Type: text/markdown

# ReNATS

> Elegant, modern and asynchronous NATS Client API library written in pure Python

```python
from renats.client import NATSClient


client = await NATSClient().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(
    subject="my.subject",
    data=b"My payload =)",
    reply="my.reply.subject",
    headers={
        "MyHeader": "MyValue"
    }
)

# Closing client
await client.close()
```

### Installation
```bash
pip install renats
```

---

### TODO
- Subscriptions
- Request-Reply
- JetStream
- ObjectStorage
- Request-Reply API Framework for microservices
- And more, maybe...

