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.1.zip (10.6 kB view details)

Uploaded Source

tarantool-queue-0.1.1.tar.gz (7.5 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for tarantool-queue-0.1.1.zip
Algorithm Hash digest
SHA256 3162e5ea4d957224435996e5b57e759a3766fb792120e83b81e49b7051c74687
MD5 af0e9f61aca9f6876489f580b24a1aa7
BLAKE2b-256 419cd2c4b089b7d6e9d1d846e6c9a93ec3345c2ed30c9a861a2adc55734b9c48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tarantool-queue-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4a695e2616adbbc0af71ee42230a7a984cc09a94cac40f168100749d88c3b388
MD5 e8e6068172f853e2dee637b8d04a9544
BLAKE2b-256 b4e0476715c6d430ba1c838a61e7511a2c3116db313b18af0b615185386b7e51

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