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.2.zip (10.8 kB view details)

Uploaded Source

tarantool-queue-0.1.2.tar.gz (7.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: tarantool-queue-0.1.2.zip
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tarantool-queue-0.1.2.zip
Algorithm Hash digest
SHA256 8e11fbd66007b151e0f2e12b4a8b886ae1f444cd3c7acc3f62b67de0d7b7e476
MD5 15f387b188a14afe8c4391f2a2592e7f
BLAKE2b-256 a21600c7212d4d195f49ac8eb04a4b67c9e46eb67479a56f5251078774b9829a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tarantool-queue-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0e990425734bf353d2d96eb308db3583fe2fa7ac9f0fb203e6676fea437d1846
MD5 5b3689b841c63d0a299fd056863eacf2
BLAKE2b-256 e06886236dc459a1bee6cd7d0592446ab2634194bf305c8a2c4426e80e2bfc7e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page