Entities

class springfield.Entity(**values)[source]
flatten()[source]

Get the values as basic Python types

get(key, default=None, empty=False)[source]

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

Parameters:empty – boolean - Include empty values
jsonify()[source]

Return a dictionary suitable for JSON encoding.

to_json()[source]

Convert the entity to a JSON string.

update(values)[source]

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