Admin Command Python Module¶
Admin Module for Admin Commands.
-
pacifica.metadata.admin_cmd.
bool2cmdint
(command_bool)[source]¶ Convert a boolean to either 0 for true or -1 for false.
-
pacifica.metadata.admin_cmd.
create_subcommands
(subparsers)[source]¶ Create the subcommands from the subparsers.
-
pacifica.metadata.admin_cmd.
create_table_options
(create_table_parser)[source]¶ Add the create object command line options.
-
pacifica.metadata.admin_cmd.
delete_obj_options
(delete_obj_parser)[source]¶ Delete the object command line options.
-
pacifica.metadata.admin_cmd.
objstr_to_ormobj
(obj_str)[source]¶ Convert a string to an orm object or raise ValueError.
-
pacifica.metadata.admin_cmd.
objstr_to_timedelta
(obj_str)[source]¶ Turn an object string of the format X unit ago into timedelta.