commands.models
module commands.models
commands.models
Global Variables
API_HOST
function get
get
Command to create a user. Asks for the new users information and validates the input, then sends the information to the API
Args:
debug
(Optional[bool], optional): Whether to add debug information, will show requests, extra logs and traceback if there is an Exception. Defaults to DEBUG_OPTION (False).
Raises:
ValidationError
: input fields are validated, if these are not suitable the exception is raisedHTTPError
: request error to the API, 4XX or 5XX
function list
list
Command to list all models.
Args:
debug
(Optional[bool], optional): Whether to add debug information, will show requests, extra logs and traceback if there is an Exception. Defaults to DEBUG_OPTION (False).
Raises:
ValidationError
: input fields are validated, if these are not suitable the exception is raisedHTTPError
: request error to the API, 4XX or 5XX
function create
create
Command to create a model. Asks for the new model's information and validates the input, then sends the information to the API
Args:
debug
(Optional[bool], optional): Whether to add debug information, will show requests, extra logs and traceback if there is an Exception. Defaults to DEBUG_OPTION (False).
Raises:
ValidationError
: input fields are validated, if these are not suitable the exception is raisedHTTPError
: request error to the API, 4XX or 5XX
Last updated