asynctnt.instance
Module Contents
Classes
Interface for protocol for subprocess calls. |
|
- class asynctnt.instance.TarantoolInstanceProtocol(tnt, on_exit)[source]
Bases:
asyncio.SubprocessProtocol
Interface for protocol for subprocess calls.
- connection_made(transport)[source]
Called when a connection is made.
The argument is the transport representing the pipe connection. To receive data, wait for data_received() calls. When the connection is closed, connection_lost() is called.
- pipe_data_received(fd, data)[source]
Called when the subprocess writes data into stdout/stderr pipe.
fd is int file descriptor. data is bytes object.
- class asynctnt.instance.TarantoolInstance(*, host='127.0.0.1', port=3301, console_host=None, console_port=3302, replication_source=None, title=None, logger=None, log_level=5, slab_alloc_arena=0.1, wal_mode='none', root=None, specify_work_dir=True, cleanup=True, initlua_template=None, applua='-- app.lua --', extra_box_cfg='', timeout=5.0, command_to_run='tarantool', command_args=None)[source]
- class asynctnt.instance.TarantoolSyncInstance(**kwargs)[source]
Bases:
TarantoolInstance
- class asynctnt.instance.TarantoolAsyncInstance(**kwargs)[source]
Bases:
TarantoolInstance
- class asynctnt.instance.TarantoolSyncDockerInstance(*, docker_image=None, docker_tag=None, host='0.0.0.0', port=3301, console_host=None, console_port=3302, replication_source=None, title=None, logger=None, log_level=5, slab_alloc_arena=0.1, wal_mode='none', initlua_template=None, applua='-- app.lua --', timeout=10.0)[source]
Bases:
TarantoolSyncInstance