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://bit.ly/tarantool_queue -O tarantool_queue.tar.gz
$ tar xzf tarantool_queue.tar.gz
$ cd tarantool-queue-{version}
$ 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!

See Also

Project details


Download files

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

Source Distributions

tarantool-queue-0.1.4.zip (14.4 kB view details)

Uploaded Source

tarantool-queue-0.1.4.tar.gz (8.7 kB view details)

Uploaded Source

File details

Details for the file tarantool-queue-0.1.4.zip.

File metadata

File hashes

Hashes for tarantool-queue-0.1.4.zip
Algorithm Hash digest
SHA256 eb28a05626613a7eab2c61eef6d4cbc123db0501cd6fe4cc03bb1e93be27c8d8
MD5 f3fe67aa8955f174bc5b14171cf4ed33
BLAKE2b-256 dd6ef59b0a120f19c6806ed3ce958495a9ab72e6801f8e9ef064ad04f287a48a

See more details on using hashes here.

File details

Details for the file tarantool-queue-0.1.4.tar.gz.

File metadata

File hashes

Hashes for tarantool-queue-0.1.4.tar.gz
Algorithm Hash digest
SHA256 07583ba16857a55fb830a0a432dcdd8bec928256481344a709033c6b3c544641
MD5 2aa6ebc83685dbaa269b9ffb29586d56
BLAKE2b-256 6bd0a0e5425eb5a834db272cb2280c85be2d621836a1b626045205381ea734bb

See more details on using hashes here.

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