Entities

class springfield.Entity(**values)
flatten()

Get the values as basic Python types

get(key, default=None, empty=False)

Get a value by key. If passed an iterable, get a dictionary of values matching keys.

Parameters:empty – boolean - Include empty values
jsonify()

Return a dictionary suitable for JSON encoding.

to_json()

Convert the entity to a JSON string.

update(values)

Update attibutes. Ignore keys that aren’t fields. Allows dot notation.