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!

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.0.zip (9.6 kB view details)

Uploaded Source

tarantool-queue-0.1.0.tar.gz (6.4 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for tarantool-queue-0.1.0.zip
Algorithm Hash digest
SHA256 5626d3420f93260203f8c0052ddabbcb02601dbf46bc01c660e614f63689425b
MD5 dafd17d4ca983c06c3a54ff01356df6f
BLAKE2b-256 067ecfc0b6374b6f998e172b0485013ebbc357ad170097af2f13eca14e114d28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tarantool-queue-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8e99b429aaa1465fe7e818534e5f3baccca021e61bb48486e3faece83f6d5e07
MD5 206a4ce9e9477f45f9473f1c358d7916
BLAKE2b-256 d18fc89e3f17bab2a12ac6b92a650958fdbb2951c62df9f82188499962366e61

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