'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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pynats2-0.9.0-py3.6.egg.
File metadata
- Download URL: pynats2-0.9.0-py3.6.egg
- Upload date:
- Size: 19.6 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
346261268db5a11e4ac4b3dc7bd8fda66d3714286fdacc733d0714d8ecf384c0
|
|
| MD5 |
55a737e08ed2d3e340f61b0778e37cb3
|
|
| BLAKE2b-256 |
7a3d3c0b687e282328e26b84cd25808dbb18174b60641317c9e07fbb4e89a438
|
File details
Details for the file pynats2-0.9.0-py3-none-any.whl.
File metadata
- Download URL: pynats2-0.9.0-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7a3d05f5d139080005fc209fbc321fe05fd0d5d7f5ac9019d9197a43e9aac38
|
|
| MD5 |
6414a75d64917e34120f00b4d7dd7cce
|
|
| BLAKE2b-256 |
6df7196560f0f398e1dd6163843377b69b82dbc8d6c4587889f3de61fc0caa49
|