All Projects → smira → Txzmq

smira / Txzmq

Licence: gpl-2.0
ZeroMQ bindings for Twisted

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Txzmq

Spyne
A transport agnostic sync/async RPC library that focuses on exposing services with a well-defined API using popular protocols.
Stars: ✭ 992 (+574.83%)
Mutual labels:  twisted
Rzmq
R package for ZMQ
Stars: ✭ 83 (-43.54%)
Mutual labels:  zeromq
Notes
let me know if my notes help you :D (it's a mess, I know)
Stars: ✭ 119 (-19.05%)
Mutual labels:  zeromq
Cppzmq
Header-only C++ binding for libzmq
Stars: ✭ 1,045 (+610.88%)
Mutual labels:  zeromq
Bokeh
Bokeh is a simple, scalable and blazing-fast task queue built on Node.js and ZeroMQ.
Stars: ✭ 67 (-54.42%)
Mutual labels:  zeromq
Mockssh
Mock an SSH server and define all commands it supports (Python, Twisted)
Stars: ✭ 107 (-27.21%)
Mutual labels:  twisted
Afkak
Kafka client written in Twisted Python
Stars: ✭ 27 (-81.63%)
Mutual labels:  twisted
Python Zeroless
ZeroMQ for Pythonistas™
Stars: ✭ 140 (-4.76%)
Mutual labels:  zeromq
Realtime Rails
Realtime rails support. See website for documentation:
Stars: ✭ 77 (-47.62%)
Mutual labels:  zeromq
Fszmq
An F# binding for the ZeroMQ distributed computing library. For more information, please visit:
Stars: ✭ 112 (-23.81%)
Mutual labels:  zeromq
01cnode
tool to monitor full bitcoin node bitcoind-web
Stars: ✭ 50 (-65.99%)
Mutual labels:  zeromq
Goshare
Go Share your TimeSeries/NameSpace/KeyVal DataStore (using leveldb) over HTTP &/or ZeroMQ
Stars: ✭ 59 (-59.86%)
Mutual labels:  zeromq
Lzmq
Lua binding to ZeroMQ
Stars: ✭ 110 (-25.17%)
Mutual labels:  zeromq
Zeromq Ng
⚡️ Next-generation Node.js bindings to the ZeroMQ library
Stars: ✭ 45 (-69.39%)
Mutual labels:  zeromq
Uchain Fullnode
UChain Cross-Platform C++ Full-Node Wallet Implementation
Stars: ✭ 133 (-9.52%)
Mutual labels:  zeromq
Zeroeq
Cross-platform C++ library for fast binary and REST messaging
Stars: ✭ 35 (-76.19%)
Mutual labels:  zeromq
Evennia
Python MUD/MUX/MUSH/MU* development system
Stars: ✭ 1,309 (+790.48%)
Mutual labels:  twisted
Kubetop
A top(1)-like tool for Kubernetes.
Stars: ✭ 142 (-3.4%)
Mutual labels:  twisted
Smoothstream
Webcam, PiCamera streaming over the network with Python made easy.
Stars: ✭ 133 (-9.52%)
Mutual labels:  zeromq
Zproc
Process on steroids
Stars: ✭ 112 (-23.81%)
Mutual labels:  zeromq

Twisted bindings for 0MQ

.. image:: https://travis-ci.org/smira/txZMQ.png?branch=master :target: https://travis-ci.org/smira/txZMQ

.. image:: https://coveralls.io/repos/smira/txZMQ/badge.png :target: https://coveralls.io/r/smira/txZMQ

.. image:: https://badge.fury.io/py/txZMQ.svg :target: https://badge.fury.io/py/txZMQ

Introduction

txZMQ allows to integrate easily ØMQ <http://zeromq.org>_ sockets into Twisted event loop (reactor).

txZMQ supports both CPython and PyPy and ØMQ library version 2.2.x or 3.2.x.

Documentation is available at ReadTheDocs <http://txzmq.readthedocs.org>_ and CI is done by Travis CI <https://travis-ci.org/smira/txZMQ>_.

Requirements

C library required:

  • ØMQ library 2.2.x or 3.2.x

Python packages required:

  • pyzmq >= 13 (for CPython & PyPy)
  • Twisted

Details

txZMQ introduces support for general 0MQ sockets by class ZmqConnection that can do basic event loop integration, sending-receiving messages in non-blocking manner, scatter-gather for multipart messages.

txZMQ uses ØMQ APIs to get file descriptor that is used to signal pending actions from ØMQ library IO thread running in separate thread. This is used in a custom file descriptor reader, which is then added to the Twisted reactor.

Upgrading from 0.3.x

If you're upgrading from version 0.3.1 and earlier, please apply following changes to your code:

  • root package name was changed from txZMQ to txzmq, adjust your imports accordingly;
  • ZmqEndpointType.Connect has been renamed to ZmqEndpointType.connect;
  • ZmqEndpointType.Bind has been renamed to ZmqEndpointType.bind;
  • ZmqConnection.__init__ has been changed to accept keyword arguments instead of list of endpoints; if you were using one endpoint, no changes are required; if using multiple endpoints, please look for add_endpoints method.

Hacking

Source code for txZMQ is available at github <https://github.com/smira/txZMQ>_; forks and pull requests are welcome.

To start hacking, fork at github and clone to your working directory. To use the Makefile (for running unit tests, checking for PEP8 compliance and running pyflakes), you will want to have virtualenv installed (it includes a pip installation).

Create a branch, add some unit tests, write your code, check it and test it! Some useful make targets are:

  • make env
  • make check
  • make test

If you don't have an environment set up, a new one will be created for you in ./env. Additionally, txZMQ will be installed as well as required development libs.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].