diff --git a/README.md b/README.md index 68aeb8e..2b22be4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# centml-python-client +# CCluster Python Client ![](https://github.com/CentML/centml-python-client/actions/workflows/unit_tests.yml/badge.svg) ### Installation diff --git a/centml/cli/login.py b/centml/cli/login.py index 49a5955..9c9c059 100644 --- a/centml/cli/login.py +++ b/centml/cli/login.py @@ -53,7 +53,7 @@ def do_GET(self): self.wfile.write(""" -

Succesfully logged into CentML CLI

+

Successfully logged into CCluster CLI

You can now close this tab and continue in the CLI.

@@ -84,7 +84,7 @@ def exchange_code_for_token(code, code_verifier): return response.json() -@click.command(help="Login to CentML") +@click.command(help="Login to CCluster") @click.argument("token_file", required=False) def login(token_file): if token_file: @@ -95,7 +95,7 @@ def login(token_file): click.echo("Authenticating with stored credentials...\n") click.echo("✅ Login successful") else: - click.echo("Logging into CentML...") + click.echo("Logging into CCluster...") choice = click.confirm("Do you want to log in with your browser now?", default=True) if choice: @@ -128,7 +128,7 @@ def login(token_file): click.echo("Login unsuccessful") -@click.command(help="Logout from CentML") +@click.command(help="Logout from CCluster") def logout(): auth.remove_centml_cred() click.echo("Logout successful") diff --git a/centml/cli/main.py b/centml/cli/main.py index dbf1000..504ea4f 100644 --- a/centml/cli/main.py +++ b/centml/cli/main.py @@ -4,25 +4,29 @@ from centml.cli.cluster import ls, get, delete, pause, resume, capacity from centml.cli.shell import shell, exec_cmd - -@click.group() -# this is the version and prog name set in setup.py -@click.version_option( - prog_name="CentML CLI", - message=""" - ______ __ __ ___ __ - / ____/___ ____ / /_ / |/ // / - / / / _ \\ / __ \\ / __// /|_/ // / - / /___ / __// / / // /_ / / / // /___ - \\____/ \\___//_/ /_/ \\__//_/ /_//_____/ - +# NVIDIA green (#76B900) +_NVIDIA_GREEN = (118, 185, 0) + +_BANNER = r""" + ______________ __ + / ____/ ____/ /_ _______/ /____ _____ + / / / / / / / / / ___/ __/ _ \/ ___/ +/ /___/ /___/ / /_/ (__ ) /_/ __/ / +\____/\____/_/\__,_/____/\__/\___/_/ +""" + +_VERSION_MESSAGE = click.style(_BANNER, fg=_NVIDIA_GREEN) + """ 🚀 Welcome to %(prog)s v%(version)s 🚀 ✨ AI Deployment Made Simple ✨ -📚 Documentation: https://docs.centml.ai/ -🛠 Need help? Reach out to support@centml.ai -""", -) +📚 Documentation: https://docs.nvidia.com/ccluster +💬 Need help? Reach out on GitHub: https://github.com/NVIDIA/ccluster +""" + + +@click.group() +# this is the version and prog name set in setup.py +@click.version_option(prog_name="CCluster CLI", message=_VERSION_MESSAGE) def cli(): pass diff --git a/centml/sdk/auth.py b/centml/sdk/auth.py index cbdc240..d70e266 100644 --- a/centml/sdk/auth.py +++ b/centml/sdk/auth.py @@ -71,7 +71,7 @@ def get_centml_token(): # Fall back to stored credentials for interactive flows cred = load_centml_cred() if not cred: - sys.exit("CentML credentials not found. Please login...") + sys.exit("CCluster credentials not found. Please login...") exp_time = int(jwt.decode(cred["access_token"], options={"verify_signature": False})["exp"]) if time.time() >= exp_time - 100: