Skip to main content

'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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pynats2-0.9.0-py3.6.egg (19.6 kB view hashes)

Uploaded Source

pynats2-0.9.0-py3-none-any.whl (9.7 kB view hashes)

Uploaded Python 3

Supported by

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