Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Python client library for Tarantool 1.6 Database

Project description

This package is a pure-python client library for Tarantool.

Documentation | Downloads | PyPI | GitHub | Issue tracker

https://travis-ci.org/tarantool/tarantool-python.svg?branch=master https://ci.appveyor.com/api/projects/status/github/tarantool/tarantool-python?branch=master

Download and Install

You can also download zip archive, unpack it and run

$ python setup.py install

To install development version of the package using pip

For Tarantool version < 1.6.0 you must get stable branch:

$ pip install git+https://github.com/tarantool/tarantool-python.git@stable

For later Tarantool use master branch:

$ pip install git+https://github.com/tarantool/tarantool-python.git@master

What is Tarantool?

Tarantool is a NoSQL database running inside a Lua program. It combines the network programming power of Node.JS with data persistency capabilities of Redis. It’s open source, BSD licensed.

Features

  • Lua packages for non-blocking I/O, fibers and HTTP
  • MsgPack data format and MsgPack based client-server protocol
  • Two data engines:
    • 100% in-memory with optional persistence
    • 2-level disk-based B-tree, to use with large data sets (powered by Sophia)
  • secondary key and index iterators support (can be non-unique and composite)
  • multiple index types: HASH, BITSET, TREE
  • asynchronous master-master replication
  • authentication and access control

NOTE

This driver is synchronous, so connection mustn’t be shared between threads/processes.

Run tests

On Linux:

$ python setup.py test

On Windows:

  • Setup a Linux machine with installed tarantool (called remote later).
  • (on remote) Copy unit/suites/lib/tarantool_python_ci.lua to /etc/tarantool/instances.available.
  • (on remote) Run tarantoolctl start tarantool_python_ci.
  • Set the following environment variables: * REMOTE_TARANTOOL_HOST=..., * REMOTE_TARANTOOL_CONSOLE_PORT=3302.
  • Run python setup.py test.

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, version 0.6.6
Filename, size File type Python version Upload date Hashes
Filename, size tarantool-0.6.6-py2.py3-none-any.whl (27.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size tarantool-0.6.6.tar.gz (57.2 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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page