calypso.utils.level_json module

class calypso.utils.level_json.MontyLevelEncoder(indent_level=inf, *args, **kwargs)

Bases: MontyEncoder

iterencode(o, _one_shot=False)

Encode the given object and yield each string representation as available.

For example:

for chunk in JSONEncoder().iterencode(bigobject):
    mysocket.write(chunk)