rebrickable.data.models.inventories module

class rebrickable.data.models.inventories.Inventory(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base

an inventory is a collection with multiple sets in it it also links a set with a collection of parts

id
parts
set_num
sets
version
class rebrickable.data.models.inventories.InventoryPart(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base

Parts content of set

color
color_id
inv_part_id
inventory_id
is_spare
part
part_num
quantity
class rebrickable.data.models.inventories.InventorySet(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base

id
inventory_id
quantity
set
set_num