nats-python


Namenats-python JSON
Version 0.8.0 PyPI version JSON
download
home_pagehttps://github.com/Gr1N/nats-python
SummaryPython client for NATS messaging system
upload_time2020-06-21 09:30:35
maintainer
docs_urlNone
authorNikita Grishko
requires_python>=3.6,<4.0
licenseMIT
keywords nats nats-client messaging
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            # nats-python

[![Build Status](https://github.com/Gr1N/nats-python/workflows/default/badge.svg)](https://github.com/Gr1N/nats-python/actions?query=workflow%3Adefault) [![codecov](https://codecov.io/gh/Gr1N/nats-python/branch/master/graph/badge.svg)](https://codecov.io/gh/Gr1N/nats-python) ![PyPI](https://img.shields.io/pypi/v/nats-python.svg?label=pypi%20version) ![PyPI - Downloads](https://img.shields.io/pypi/dm/nats-python.svg?label=pypi%20downloads)

Python client for NATS messaging system.

This project is a replacement for abandoned [pynats](https://github.com/mcuadros/pynats). `nats-python` supports only Python 3.6+ and fully covered with typings.

Go to the [asyncio-nats](https://github.com/nats-io/asyncio-nats) project, if you're looking for `asyncio` implementation.

## Installation

```sh
$ pip install nats-python
```

## Usage

```python
from pynats import NATSClient

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

## Contributing

To work on the `nats-python` codebase, you'll want to clone the project locally and install the required dependencies via [poetry](https://poetry.eustace.io):

```sh
$ git clone git@github.com:Gr1N/nats-python.git
$ make install
```

To run tests and linters use command below:

```sh
$ make lint && make test
```

If you want to run only tests or linters you can explicitly specify which test environment you want to run, e.g.:

```sh
$ make lint-black
```

## License

`nats-python` is licensed under the MIT license. See the license file for details.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Gr1N/nats-python",
    "name": "nats-python",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6,<4.0",
    "maintainer_email": "",
    "keywords": "nats,nats-client,messaging",
    "author": "Nikita Grishko",
    "author_email": "gr1n@protonmail.com",
    "download_url": "https://files.pythonhosted.org/packages/69/8d/f1d9715880e38fcb1e446b2c44607cc147339a599db822cdff78feaabf6d/nats-python-0.8.0.tar.gz",
    "platform": "",
    "description": "# nats-python\n\n[![Build Status](https://github.com/Gr1N/nats-python/workflows/default/badge.svg)](https://github.com/Gr1N/nats-python/actions?query=workflow%3Adefault) [![codecov](https://codecov.io/gh/Gr1N/nats-python/branch/master/graph/badge.svg)](https://codecov.io/gh/Gr1N/nats-python) ![PyPI](https://img.shields.io/pypi/v/nats-python.svg?label=pypi%20version) ![PyPI - Downloads](https://img.shields.io/pypi/dm/nats-python.svg?label=pypi%20downloads)\n\nPython client for NATS messaging system.\n\nThis project is a replacement for abandoned [pynats](https://github.com/mcuadros/pynats). `nats-python` supports only Python 3.6+ and fully covered with typings.\n\nGo to the [asyncio-nats](https://github.com/nats-io/asyncio-nats) project, if you're looking for `asyncio` implementation.\n\n## Installation\n\n```sh\n$ pip install nats-python\n```\n\n## Usage\n\n```python\nfrom pynats import NATSClient\n\nwith NATSClient() as client:\n    client.publish(\"test-subject\", payload=b\"test-payload\")\n```\n\n## Contributing\n\nTo work on the `nats-python` codebase, you'll want to clone the project locally and install the required dependencies via [poetry](https://poetry.eustace.io):\n\n```sh\n$ git clone git@github.com:Gr1N/nats-python.git\n$ make install\n```\n\nTo run tests and linters use command below:\n\n```sh\n$ make lint && make test\n```\n\nIf you want to run only tests or linters you can explicitly specify which test environment you want to run, e.g.:\n\n```sh\n$ make lint-black\n```\n\n## License\n\n`nats-python` is licensed under the MIT license. See the license file for details.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python client for NATS messaging system",
    "version": "0.8.0",
    "split_keywords": [
        "nats",
        "nats-client",
        "messaging"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "63644d54c599e4007825deb1f7fb7f6c",
                "sha256": "67410bc139e43894717d96ea16a53537e79e4b0a8ac66ab88f0497e230695d4b"
            },
            "downloads": -1,
            "filename": "nats_python-0.8.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "63644d54c599e4007825deb1f7fb7f6c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6,<4.0",
            "size": 7873,
            "upload_time": "2020-06-21T09:30:36",
            "upload_time_iso_8601": "2020-06-21T09:30:36.166820Z",
            "url": "https://files.pythonhosted.org/packages/0f/7e/06e4ddf512c599b8c5ce1b58a9c2abe74885beaf743549fa7d9733328689/nats_python-0.8.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "9a7130cb37e38bfe9fc45eefc9344528",
                "sha256": "2b72eb8cf7d81b9a0110c2ddbed7f624ea3475096fad1670b6a290e0c6589ce9"
            },
            "downloads": -1,
            "filename": "nats-python-0.8.0.tar.gz",
            "has_sig": false,
            "md5_digest": "9a7130cb37e38bfe9fc45eefc9344528",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6,<4.0",
            "size": 7558,
            "upload_time": "2020-06-21T09:30:35",
            "upload_time_iso_8601": "2020-06-21T09:30:35.370643Z",
            "url": "https://files.pythonhosted.org/packages/69/8d/f1d9715880e38fcb1e446b2c44607cc147339a599db822cdff78feaabf6d/nats-python-0.8.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-06-21 09:30:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "Gr1N",
    "github_project": "nats-python",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "lcname": "nats-python"
}
        
Elapsed time: 0.02058s