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):
tnt.insert("tester", (cnt, cnt))
cnt += 1
tnt = gtarantool.connect("127.0.0.1", 3301)
jobs = [gevent.spawn(insert_job, tnt)
for _ in range(10)]
gevent.joinall(jobs)
it’s cool !
Project details
Release history Release notifications | RSS feed
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.1.tar.gz
(3.4 kB
view details)
File details
Details for the file gtarantool-1.0.1.tar.gz.
File metadata
- Download URL: gtarantool-1.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dac7ae4cbd540053ca59cfbcf1412c569706d762607040ef72ee34071a1eaa3e
|
|
| MD5 |
5a37141e8573e70d86fdd99363c7fb33
|
|
| BLAKE2b-256 |
569a1af708b66f5f8348993e7d79cca3f9bac48459733ea7548afa6d95334a17
|