Skip to main content

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!

Metadata

Release files for gtarantool 1.0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gtarantool 1.0.12
File Size Uploaded
gtarantool-1.0.12.tar.gz 4.7 kB Details

Release files / gtarantool-1.0.12.tar.gz

Download URL gtarantool-1.0.12.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8ef0e1af0de24b4d532af6b13409724f3f70538fded0cdc9a8dc40502b694ff6
BLAKE2b-256 checksum
How to use checksums
7ec567c2d9ca3e58ee3c3fe6b313152cb8880b571a498d8baa862f2edf037840
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.12 This release

1 release file

1.0.11

1 release file

1.0.10

1 release file

1.0.9

1 release file

1.0.8

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page