Skip to main content

Python bindings for Tarantool queue script (http://github.com/tarantool/queue)

Project description

Python Bindings for Tarantool Queue.

Library depends on:

  • msgpack-python
  • tarantool

Basic usage can be found in tests. Description on every command is in source code.

Big thanks to Dmitriy Shveenkov and Alexandr (FZambia) Emelin.

For install of latest “stable” version type:

# using pip
$ sudo pip install tarantool-queue
# or using easy_install
$ sudo easy_install tarantool-queue
# or using python
$ wget http://is.gd/tarantool_queue
$ tar xzf tarantool-queue-0.1.0.tar.gz
$ cd tarantool-queue-0.1.0
$ sudo python setup.py install

For install bleeding edge type:

$ sudo pip install git+https://github.com/bigbes92/tarantool-queue-python.git

For configuring Queue in Tarantool read manual Here.

Then just import it, create Queue, create Tube, put and take some elements:

>>> from tarantool_queue import Queue
>>> queue = Queue("localhost", 33013, 0)
>>> tube = queue.tube("name_of_tube")
>>> tube.put([1, 2, 3])
Not taken task instance
>>> task = tube.take()
>>> task.data # take task and read data from it
[1, 2, 3]
>>> task.ack() # move this task into state DONE
True

That’s all, folks!

Project details


Download files

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

Files for tarantool-queue, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size tarantool-queue-0.1.0.tar.gz (6.4 kB) File type Source Python version None Upload date Hashes View hashes
Filename, size tarantool-queue-0.1.0.zip (9.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page