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

Tarantool connection driver for work with gevent framework

Project description

Connector required tarantool version 1.6:

$ pip install gtarantool

Try it example:

import gevent
import gtarantool

cnt = 0

def insert_job(tnt):
    global cnt

    for i in range(10000):
        # make io job here
        cnt += 1
        tnt.insert("tester", (cnt, cnt))

tnt = gtarantool.connect("", 3301)

jobs = [gevent.spawn(insert_job, tnt)
        for _ in range(10)]


Under this scheme the gtarantool driver makes a smaller number of read/write tarantool socket.

See benchmark results time for insert/select/delete 100K tuples on 1.5KBytes:

call tarantool gtarantool
insert 32.448247 10.072774
select 22.326968 9.305423
delete 33.535188 9.464293

In this case, your code does not contain callbacks and remains synchronous!

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 gtarantool, version 1.0.12
Filename, size File type Python version Upload date Hashes
Filename, size gtarantool-1.0.12.tar.gz (4.7 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