userver: testsuite.utils.tskv Namespace Reference
Loading...
Searching...
No Matches
testsuite.utils.tskv Namespace Reference

Detailed Description

Tools to format messages to different formats.

Functions

 dict_to_tskv (dct, tskv_format='', add_header=True)
 Convert dictionary to string in TSKV format.
 items_to_tskv (items, tskv_format='', add_header=True)
 Return items to string in TSKV format.
 join_tskv (*escaped_strings)
 Join strings in TSKV format.
 _escape (item)
 _escape_datetime (stamp)
 _escape_key (string)
 _escape_string (string)
 _format_pair (value)

Variables

str ENTRIES_SEP = '\t'
str KV_SEP = '='

Function Documentation

◆ _escape()

_escape ( item)
protected

Definition at line 40 of file tskv.py.

◆ _escape_datetime()

_escape_datetime ( stamp)
protected

Definition at line 46 of file tskv.py.

◆ _escape_key()

_escape_key ( string)
protected

Definition at line 50 of file tskv.py.

◆ _escape_string()

_escape_string ( string)
protected

Definition at line 54 of file tskv.py.

◆ _format_pair()

_format_pair ( value)
protected

Definition at line 66 of file tskv.py.

◆ dict_to_tskv()

dict_to_tskv ( dct,
tskv_format = '',
add_header = True )

Convert dictionary to string in TSKV format.

Definition at line 10 of file tskv.py.

◆ items_to_tskv()

items_to_tskv ( items,
tskv_format = '',
add_header = True )

Return items to string in TSKV format.

Definition at line 19 of file tskv.py.

◆ join_tskv()

join_tskv ( * escaped_strings)

Join strings in TSKV format.

Definition at line 35 of file tskv.py.

Variable Documentation

◆ ENTRIES_SEP

str testsuite.utils.tskv.ENTRIES_SEP = '\t'

Definition at line 6 of file tskv.py.

◆ KV_SEP

str testsuite.utils.tskv.KV_SEP = '='

Definition at line 7 of file tskv.py.