aim.digifeeds.db_client module

class aim.digifeeds.db_client.DBClient[source]

Bases: object

add_item(barcode: str)[source]

Add an item to the digifeeds database

Parameters:

barcode (str) – Barcode of the item

Returns:

A response object

Return type:

json

add_item_status(barcode: str, status: str)[source]

Add a status to an item in the database

Parameters:
  • barcode (str) – Barcode of the item

  • status (str) – Status to add

Returns:

A response object

Return type:

json

get_item(barcode: str)[source]

Get an item from the digifeeds database

Parameters:

barcode (str) – Barcode of the item

Returns:

A response object

Return type:

json

get_items(limit: int = 50, in_zephir: bool | None = None)[source]
get_or_add_item(barcode: str)[source]

Gets or adds an item to the digifeeds database

Parameters:

barcode (str) – Barcode of the item

Returns:

An item

Return type:

Object