structure.py

Required fields for the different data types.

structure.dataset()[source]

Provide a basic data structure for a dataset.

Returns

the data structure for datasets

Return type

dict

structure.order()[source]

Provide a basic data structure for an order.

Returns

the data structure for orders

Return type

dict

structure.order_validator(data: dict)[source]

Validate the content of the fields of an incoming order.

Parameters

data (dict) – order to check

Raises

ValueError – bad incoming data

structure.project()[source]

Provide a basic data structure for a project.

Returns

the data structure for projects

Return type

dict

structure.user()[source]

Provide a basic data structure for a user.

Returns

the data structure for users

Return type

dict