This package is a pure-python client library for Tarantool.
Documentation | Downloads | PyPI | GitHub | Issue tracker
The recommended way to install the tarantool
package is using pip
.
$ pip install tarantool
You can also download zip archive, unpack it and run:
$ make install
You can also install the development version of the package using pip
.
$ pip install git+https://github.com/tarantool/tarantool-python.git@master
Tarantool is an in-memory computing platform originally designed by VK and released under the terms of BSD license.
- ANSI SQL, including views, joins, referential and check constraints
- Lua packages for non-blocking I/O, fibers, and HTTP
- MessagePack data format and MessagePack-based client-server protocol
- Two data engines:
- memtx – in-memory storage engine with optional persistence
- vinyl – on-disk storage engine to use with larger data sets
- Secondary key and index iterator support (can be non-unique and composite)
- Multiple index types: HASH, BITSET, TREE, RTREE
- Asynchronous master-master replication
- Authentication and access control
This driver is synchronous, so connection mustn't be shared between threads/processes.
If you're looking for an asynchronous Python driver based on asyncio
,
consider using asynctnt . See also the feature comparison table.
On Linux:
$ make test
On Windows:
- Setup a Linux machine with Tarantool installed.
This machine will be referred to as
remote
in this instruction. - (On
remote
) Copytest/suites/lib/tarantool_python_ci.lua
to/etc/tarantool/instances.available
. - (On
remote
) Runtarantoolctl start tarantool_python_ci
. - Set the following environment variables:
*
REMOTE_TARANTOOL_HOST=...
, *REMOTE_TARANTOOL_CONSOLE_PORT=3302
. - Run
make test
.
To build documentation, first you must install its build requirements:
$ pip install -r docs/requirements.txt
Then run
$ make docs
You may host local documentation server with
$ python -m http.server --directory build/sphinx/html
Open localhost:8000
in your browser to read the docs.
BSD-2-Clause. See the LICENSE
file.