Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

'Thread based NATS client for Python 3',

Project description

pynats2

Thread based python client for NATS messaging system.

This project is a replacement for abandoned pynats and nats-python. pynats2 supports only Python 3.6+ and fully covered with typings.

Go to the asyncio-nats project, if you're looking for asyncio implementation.

Installation

$ pip install pynats2

Usage

from pynats2 import NATSClient

with NATSClient() as client:
    client.publish("test-subject", payload=b"test-payload")

Contributing

To work on the pynats2 codebase, you'll want to clone the project locally and install the required dependencies via pip.

$ git clone git@github.com:yosshy/pynats2.git
$ pip install -r requirements.txt
$ python setup.py install

To run tests and linters use command below:

$ black --check --diff .
$ flake8 pynats2 tests
$ mypy --ignore-missing-imports --follow-imports=silent pynats2 tests

License

pynats2 is licensed under the MIT license. See the license file for details.

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pynats2, version 0.9.0
Filename, size File type Python version Upload date Hashes
Filename, size pynats2-0.9.0-py3.6.egg (19.6 kB) File type Egg Python version 3.6 Upload date Hashes View hashes
Filename, size pynats2-0.9.0-py3-none-any.whl (9.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page