API reference

class thingy.View(defaults=False, include=None, exclude=None, ordered=False)[source]

Transform an object into a dict

Parameters:
  • defaults (bool) – Include attributes of object
  • include (list) – A list of properties to include
  • exclude (list) – A list of attributes to exclude
  • ordered (bool) – Use an OrderedDict instead
class thingy.Thingy(*args, **kwargs)[source]

Allows you to use object notation instead of dict notation

classmethod add_view(name, *args, **kwargs)[source]
update(*args, **kwargs)[source]
view(name='defaults')[source]
class thingy.DatabaseThingy(*args, **kwargs)[source]
database
database_name = 'database'
classmethod get_database()[source]
classmethod get_database_name()[source]
classmethod get_table()[source]
classmethod get_table_name()[source]
table
table_name = 'thingy'