Overview of pynsq capabilities
masterpynsq is the official Python client library for NSQ. It offers two levels of abstraction for interacting with the NSQ protocol:
- High-level API: Use the
nsq.Readerandnsq.Writerclasses to build robust consumers and producers with minimal boilerplate. - Low-level API: Use the
async_connmodule for synchronous or asynchronous communication directly over the NSQ TCP protocol. This is intended for developers who need to implement custom high-level functionality.
Note on Dependencies: If you use the async_conn module, you must have tornado installed, as the async module is built on top of the Tornado IOLoop.