Admin Command Python Module¶
Admin Module for Admin Commands.
-
pacifica.metadata.admin_cmd.
bool2cmdint
(command_bool)¶ Convert a boolean to either 0 for true or -1 for false.
-
pacifica.metadata.admin_cmd.
create_obj
(args)¶ Create a specific object.
-
pacifica.metadata.admin_cmd.
create_obj_options
(create_obj_parser)¶ Add the create object command line options.
-
pacifica.metadata.admin_cmd.
create_subcommands
(subparsers)¶ Create the subcommands from the subparsers.
-
pacifica.metadata.admin_cmd.
db_options
(db_parser)¶ Add the options for dbsync subcommand.
-
pacifica.metadata.admin_cmd.
dbchk
(args)¶ Check the database for the version running.
-
pacifica.metadata.admin_cmd.
dbchk_options
(dbchk_parser)¶ Add the options for dbchk.
-
pacifica.metadata.admin_cmd.
dbsync
(_args=None)¶ Create or update the database.
-
pacifica.metadata.admin_cmd.
main
(*argv)¶ Main method for admin command line tool.
-
pacifica.metadata.admin_cmd.
objstr_to_ormobj
(obj_str)¶ Convert a string to an orm object or raise ValueError.
-
pacifica.metadata.admin_cmd.
objstr_to_timedelta
(obj_str)¶ Turn an object string of the format X unit ago into timedelta.
-
pacifica.metadata.admin_cmd.
objstr_to_whereclause
(obj_str)¶ Convert a string to a where clause hash or raise ValueError.
-
pacifica.metadata.admin_cmd.
render_obj
(args)¶ Render an object based on args.
-
pacifica.metadata.admin_cmd.
render_options
(render_parser)¶ Add the essync command line options.