Skip to main content

A gevent based NSQ driver for Python.

Project description

https://badge.fury.io/py/gnsq.svg https://travis-ci.org/wtolson/gnsq.svg?branch=master https://pypip.in/d/gnsq/badge.png

A gevent based NSQ driver for Python.

Installation

At the command line:

$ easy_install gnsq

Or even better, if you have virtualenvwrapper installed:

$ mkvirtualenv gnsq
$ pip install gnsq

Usage

To use gnsq in a project:

import gnsq
reader = gnsq.Reader('topic', 'channel', 'localhost:4150')

@reader.on_message.connect
def handler(reader, message):
    do_work(message.body)

reader.start()

History

0.1.1 (2014-07-07)

  • Fix packaging stream submodule.

  • Send queued messages before closing socket.

  • Continue to read from socket on EAGAIN

0.1.0 (2014-07-07)

  • First release on PyPI.

Project details


Download files

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

Source Distribution

gnsq-0.1.1.tar.gz (33.1 kB view details)

Uploaded Source

Built Distribution

gnsq-0.1.1-py2.py3-none-any.whl (21.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file gnsq-0.1.1.tar.gz.

File metadata

  • Download URL: gnsq-0.1.1.tar.gz
  • Upload date:
  • Size: 33.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gnsq-0.1.1.tar.gz
Algorithm Hash digest
SHA256 93977fbc0c81ac4f22f8a120f94c206f831fbd32cccd134adcd4ef3c40286030
MD5 3d279a504cc62d7603526cc426a49430
BLAKE2b-256 46ad71b74f8baa9365ceddb35e7ca9f749cd9275afb813898ea4005949c52c29

See more details on using hashes here.

Provenance

File details

Details for the file gnsq-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for gnsq-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c349ecb8cc4731f4d0272293d387e29804e07e1fea009e7c9fa7b9d27d67d6f9
MD5 bce8c2c5381a6006512b62ce711ad792
BLAKE2b-256 aacfe456af7609d0bedaf812830777f632fb26af3dad55e9adf9c18330edd57e

See more details on using hashes here.

Provenance

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