module tarantool.utils

tarantool.utils.greeting_decode(greeting_buf)

Decode Tarantool server greeting.

Parameters

greeting_buf (bytes) – Binary greetings data.

Return type

Greeting dataclass with version_id, protocol, uuid, salt fields

Raise

Exception

tarantool.utils.strxor(rhs, lhs)

XOR two strings.

Parameters
Return type

bytes

tarantool.utils.version_id(major, minor, patch)
Parameters
  • major (int) – Version major number.

  • minor (int) – Version minor number.

  • patch (int) – Version patch number.

Returns

Unique version identificator for 8-bytes major, minor, patch numbers.

Return type

int

tarantool.utils.wrap_key(*args, first=True, select=False)

Wrap request key in list, if needed.

Parameters
  • args (tuple) – Method args.

  • first (bool) – True if this is the first recursion iteration.

  • select (bool) – True if wrapping SELECT request key.

Return type

list