Skip to main content

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("127.0.0.1", 3301)

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

gevent.joinall(jobs)

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.

Source Distribution

gtarantool-1.0.10.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file gtarantool-1.0.10.tar.gz.

File metadata

  • Download URL: gtarantool-1.0.10.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gtarantool-1.0.10.tar.gz
Algorithm Hash digest
SHA256 d51600014c47202f24b36815137be049e130c605ab657b4c0655a7b794c500ba
MD5 44bc8b9c2944176c2b464d243aaf4e32
BLAKE2b-256 ceed846670c3acc6d49f1092cbaa2550a9ab60cd48e7904623fe2b3dd903137c

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