Exemplo n.º 1
0
class _fbthrift_SimpleService_word_character_frequency_result(
        metaclass=_fbthrift_py3lite_types.StructMeta):
    _fbthrift_SPEC = (
        (
            0,  # id
            False,  # isUnqualified
            "success",  # name
            lambda: _fbthrift_py3lite_types.MapTypeInfo(
                _fbthrift_py3lite_types.typeinfo_string,
                _fbthrift_py3lite_types.MapTypeInfo(
                    _fbthrift_py3lite_types.typeinfo_string,
                    _fbthrift_py3lite_types.typeinfo_i32)),  # typeinfo
            None,  # default value
        ), )
Exemplo n.º 2
0
class _fbthrift_SimpleService_sum_map_values_args(metaclass=_fbthrift_py3lite_types.StructMeta):
    _fbthrift_SPEC = (
        (
            1,  # id
            True,  # isUnqualified
            "items",  # name
            lambda: _fbthrift_py3lite_types.MapTypeInfo(_fbthrift_py3lite_types.typeinfo_string, _fbthrift_py3lite_types.typeinfo_i16),  # typeinfo
            None,  # default value
        ),
    )
Exemplo n.º 3
0
class _fbthrift_SimpleService_get_keys_args(metaclass=_fbthrift_py3lite_types.StructMeta):
    _fbthrift_SPEC = (
        (
            1,  # id
            True,  # isUnqualified
            "string_map",  # name
            lambda: _fbthrift_py3lite_types.ListTypeInfo(_fbthrift_py3lite_types.MapTypeInfo(_fbthrift_py3lite_types.typeinfo_string, _fbthrift_py3lite_types.typeinfo_string)),  # typeinfo
            None,  # default value
        ),
    )
Exemplo n.º 4
0
class _fbthrift_SimpleService_get_map_value_args(metaclass=_fbthrift_py3lite_types.StructMeta):
    _fbthrift_SPEC = (
        (
            1,  # id
            True,  # isUnqualified
            "words",  # name
            lambda: _fbthrift_py3lite_types.MapTypeInfo(_fbthrift_py3lite_types.typeinfo_string, _fbthrift_py3lite_types.typeinfo_string),  # typeinfo
            None,  # default value
        ),
        (
            2,  # id
            True,  # isUnqualified
            "key",  # name
            _fbthrift_py3lite_types.typeinfo_string,  # typeinfo
            None,  # default value
        ),
    )
Exemplo n.º 5
0
A_BIG_NUMBER = 102

A_REAL_NUMBER = float(3.14)

A_FAKE_NUMBER = 3.0

A_WORD = "Good word"

SOME_BYTES = b"bytes"

A_STRUCT = SimpleStruct(is_on=True, tiny_int=5, small_int=6, nice_sized_int=7, big_int=8, real=float(9.9))

WORD_LIST = _fbthrift_py3lite_types.List(_fbthrift_py3lite_types.typeinfo_string, ("the", "quick", "brown", "fox", "jumps", "over", "the", "lazy", "dog", ))

SOME_MAP = _fbthrift_py3lite_types.List(_fbthrift_py3lite_types.MapTypeInfo(_fbthrift_py3lite_types.typeinfo_i32, _fbthrift_py3lite_types.typeinfo_double), (_fbthrift_py3lite_types.Map(_fbthrift_py3lite_types.typeinfo_i32, _fbthrift_py3lite_types.typeinfo_double, {1: float(1.1), 2: float(2.2)}), _fbthrift_py3lite_types.Map(_fbthrift_py3lite_types.typeinfo_i32, _fbthrift_py3lite_types.typeinfo_double, {3: float(3.3)}), ))

DIGITS = _fbthrift_py3lite_types.Set(_fbthrift_py3lite_types.typeinfo_i32, (1, 2, 3, 4, 5, ))

A_CONST_MAP = _fbthrift_py3lite_types.Map(_fbthrift_py3lite_types.typeinfo_string, _fbthrift_py3lite_types.StructTypeInfo(SimpleStruct), {"simple": SimpleStruct(is_on=False, tiny_int=50, small_int=61, nice_sized_int=72, big_int=83, real=float(99.9))})

IOBufPtr = _fbthrift_iobuf.IOBuf
IOBuf = _fbthrift_iobuf.IOBuf
foo_bar = bytes


class _fbthrift_SimpleService_get_five_args(metaclass=_fbthrift_py3lite_types.StructMeta):
    _fbthrift_SPEC = (
    )

class _fbthrift_SimpleService_get_five_result(metaclass=_fbthrift_py3lite_types.StructMeta):