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(args)[source]

Create a specific object.

pacifica.metadata.admin_cmd.create_table_options(create_table_parser)[source]

Add the create object command line options.

pacifica.metadata.admin_cmd.db_options(db_parser)[source]

Add the options for dbsync subcommand.

pacifica.metadata.admin_cmd.dbchk(args)[source]

Check the database for the version running.

pacifica.metadata.admin_cmd.dbchk_options(dbchk_parser)[source]

Add the options for dbchk.

pacifica.metadata.admin_cmd.dbsync(_args=None)[source]

Create or update the database.

pacifica.metadata.admin_cmd.delete_obj(args)[source]

Delete an object based on args.

pacifica.metadata.admin_cmd.delete_obj_options(delete_obj_parser)[source]

Delete the object command line options.

pacifica.metadata.admin_cmd.main(*argv)[source]

Main method for admin command line tool.

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.

pacifica.metadata.admin_cmd.objstr_to_whereclause(obj_str)[source]

Convert a string to a where clause hash or raise ValueError.

pacifica.metadata.admin_cmd.render_obj(args)[source]

Render an object based on args.

pacifica.metadata.admin_cmd.render_options(render_parser)[source]

Add the essync command line options.