Module ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad While Num body Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad If NameLoad body Expr Yield NameLoad orelse Return decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Num body Expr Str If UnaryOpNot NameLoad body Return Str Assign NameStore BinOpMod Str TupleLoad BinOpMult NameLoad NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad Str attr ListComp Call NameLoad NameLoad NameLoad BinOpAdd NameLoad Num comprehension NameStore SubscriptLoad NameLoad Index Str Return BinOpAdd BinOpAdd NameLoad Str NameLoad Return NameLoad decorator_list
N/A itertools islice elasticsearch.serializer JSONSerializer to_json N/A N/A data N/A N/A N/A Convert Python structure to JSON used by Elasticsearch

    This is a helper method that uses the elasticsearch-py
    JSONSerializer to serialize the structure. This is the serializer
    that elasticsearch-py uses to serialize data for Elasticsearch and
    handles dates.

    :arg data: Python structure (e.g. dict, list, ...)

    :returns: string

    Examples:

    >>> to_json({'query': {'match': {'message': 'test message'}}})
    '{"query": {"match": {"message": "test message"}}}'

    >>> from elasticutils import S
    >>> some_s = S().query(message__match='test message')
    >>> to_json(some_s.build_search())
    '{"query": {"match": {"message": "test message"}}}'

     N/A N/A N/A N/A JSONSerializer dumps data N/A chunked N/A N/A iterable n N/A N/A N/A Returns chunks of n length of iterable

    If len(iterable) % n != 0, then the last chunk will have length
    less than n.

    Example:

    >>> chunked([1, 2, 3, 4, 5], 2)
    [(1, 2), (3, 4), (5,)]

     N/A iterable N/A iter iterable N/A 1 N/A N/A t N/A tuple N/A islice iterable n N/A t N/A N/A N/A t N/A N/A N/A format_explanation N/A N/A explanation indent indent_level N/A 0 N/A N/A Return explanation in an easier to read format

    Easier to read for me, at least.

     N/A N/A explanation N/A N/A N/A line N/A %s%s %2.4f N/A N/A indent indent_level N/A explanation N/A description N/A explanation N/A value N/A N/A details explanation N/A N/A details N/A N/A join N/A N/A format_explanation subtree indent N/A indent_level 1 N/A subtree N/A explanation N/A details N/A N/A N/A line details N/A line N/A