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.
Metadata
Release files for pynats2 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pynats2-0.9.0-py3.6.egg | Legacy Egg format | - | - | Details for pynats2-0.9.0-py3.6.egg |
| pynats2-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for pynats2-0.9.0-py3-none-any.whl |
Total release size: 29.3 kB
Release files / pynats2-0.9.0-py3.6.egg
| Download URL | pynats2-0.9.0-py3.6.egg |
|---|---|
| Size | 19.6 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
346261268db5a11e4ac4b3dc7bd8fda66d3714286fdacc733d0714d8ecf384c0
|
|
BLAKE2b-256 checksum How to use checksums |
7a3d3c0b687e282328e26b84cd25808dbb18174b60641317c9e07fbb4e89a438
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pynats2-0.9.0-py3-none-any.whl
| Download URL | pynats2-0.9.0-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7a3d05f5d139080005fc209fbc321fe05fd0d5d7f5ac9019d9197a43e9aac38
|
|
BLAKE2b-256 checksum How to use checksums |
6df7196560f0f398e1dd6163843377b69b82dbc8d6c4587889f3de61fc0caa49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for pynats2 0.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.