cli
¶
Module that contains the command line application.
Functions:
-
apply_credentials
–Apply credentials for AWS and Hugging Face.
-
get_parser
–Return the CLI argument parser.
-
main
–Run the main program.
apply_credentials
¶
apply_credentials(*services: str) -> None
Apply credentials for AWS and Hugging Face.
This function is called when the program starts. It hides the credentials for AWS and Hugging Face in a hidden directory.
Source code in src/unibox/cli.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
|
get_parser
¶
get_parser() -> ArgumentParser
Return the CLI argument parser.
Source code in src/unibox/cli.py
49 50 51 52 53 54 55 56 57 58 59 60 61 |
|
main
¶
Run the main program.
This function is executed when you type unibox
or python -m unibox
.
Parameters:
Returns:
-
int
–An exit code.
Source code in src/unibox/cli.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
|