2
2
Python
3
3
=====================================================================
4
4
5
+ `tarantool-python <http://github.com/tarantool/tarantool-python >`_
6
+ is the official Python connector for Tarantool. It is not supplied as part
7
+ of the Tarantool repository and must be installed separately (see below for details).
8
+
5
9
Here is a complete Python program that inserts ``[99999,'Value','Value'] `` into
6
10
space ``examples `` via the high-level Python API.
7
11
@@ -18,7 +22,9 @@ To prepare, paste the code into a file named :file:`example.py` and install
18
22
the ``tarantool-python `` connector with either :samp: `pip install tarantool\> 0.4 `
19
23
to install in :file: `/usr ` (requires **root ** privilege) or
20
24
:samp: `pip install tarantool\> 0.4 --user ` to install in :file: `~ ` i.e. user's
21
- default directory. Before trying to run, check that the server instance is :ref: `listening <cfg_basic-listen >` at
25
+ default directory.
26
+
27
+ Before trying to run, check that the server instance is :ref: `listening <cfg_basic-listen >` at
22
28
``localhost:3301 `` and that the space ``examples `` exists, as
23
29
:ref: `described earlier <index-connector_setting >`.
24
30
To run the program, say :samp: `python example.py `. The program will connect
@@ -32,3 +38,7 @@ necessary for good practice. For that, please see
32
38
For an example of using Python API with
33
39
`queue managers for Tarantool <https://github.com/tarantool/queue >`_, see
34
40
`queue-python <https://github.com/tarantool/queue-python >`_ project at GitHub.
41
+ Also there are several community driven Python connectors:
42
+ * `asynctnt <https://github.com/igorcoding/asynctnt >`_ with asyncio support
43
+ * `aiotarantool <https://github.com/shveenkov/aiotarantool >`_ also with asyncio support
44
+ * `gtarantool <https://github.com/shveenkov/gtarantool >`_ with gevent support
0 commit comments