godfather-cli 2.0.0__tar.gz → 2.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {godfather_cli-2.0.0/godfather_cli.egg-info → godfather_cli-2.0.1}/PKG-INFO +1 -1
- {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli/__init__.py +1 -1
- {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli/cli.py +7 -2
- {godfather_cli-2.0.0 → godfather_cli-2.0.1/godfather_cli.egg-info}/PKG-INFO +1 -1
- {godfather_cli-2.0.0 → godfather_cli-2.0.1}/pyproject.toml +1 -1
- {godfather_cli-2.0.0 → godfather_cli-2.0.1}/LICENSE +0 -0
- {godfather_cli-2.0.0 → godfather_cli-2.0.1}/MANIFEST.in +0 -0
- {godfather_cli-2.0.0 → godfather_cli-2.0.1}/README.md +0 -0
- {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli/auth.py +0 -0
- {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli/pod_manager.py +0 -0
- {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli/ssh_connector.py +0 -0
- {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli/ui.py +0 -0
- {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli/update_checker.py +0 -0
- {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli.egg-info/SOURCES.txt +0 -0
- {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli.egg-info/dependency_links.txt +0 -0
- {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli.egg-info/entry_points.txt +0 -0
- {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli.egg-info/requires.txt +0 -0
- {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli.egg-info/top_level.txt +0 -0
- {godfather_cli-2.0.0 → godfather_cli-2.0.1}/setup.cfg +0 -0
- {godfather_cli-2.0.0 → godfather_cli-2.0.1}/tests/test_cli.py +0 -0
|
@@ -17,7 +17,9 @@ from .ui import console, warning, info, BOX, BORDER, PURPLE
|
|
|
17
17
|
from . import __version__
|
|
18
18
|
|
|
19
19
|
# The AI Society platform API and org. Override with --api-url/--org or GODFATHER_API_URL/GODFATHER_ORG.
|
|
20
|
-
DEFAULT_API_URL = 'https://
|
|
20
|
+
DEFAULT_API_URL = 'https://zs6k5wi0boaaax-8000.proxy.runpod.net'
|
|
21
|
+
# Servers that no longer exist. A login saved against one of them falls back to the default.
|
|
22
|
+
RETIRED_API_URLS = {'https://854ap0rs1ws50n-8000.proxy.runpod.net'}
|
|
21
23
|
DEFAULT_ORG = 'ais'
|
|
22
24
|
|
|
23
25
|
|
|
@@ -29,8 +31,11 @@ class GodfatherCLI:
|
|
|
29
31
|
|
|
30
32
|
# A flag or env var wins, then what the last login saved, then the defaults.
|
|
31
33
|
saved = CLIAuthenticator.read_config(self.config_dir)
|
|
34
|
+
saved_url = saved.get('api_url')
|
|
35
|
+
if saved_url in RETIRED_API_URLS:
|
|
36
|
+
saved_url = None
|
|
32
37
|
self.api_base = (
|
|
33
|
-
os.getenv('GODFATHER_API_URL') or
|
|
38
|
+
os.getenv('GODFATHER_API_URL') or saved_url or DEFAULT_API_URL
|
|
34
39
|
).rstrip('/')
|
|
35
40
|
self.org = os.getenv('GODFATHER_ORG') or saved.get('org') or DEFAULT_ORG
|
|
36
41
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "godfather-cli"
|
|
7
|
-
version = "2.0.
|
|
7
|
+
version = "2.0.1"
|
|
8
8
|
description = "Free compute for ASU students: connect to AI Society at ASU GPU pods"
|
|
9
9
|
authors = [
|
|
10
10
|
{name = "AI Society ASU", email = "theaisocietyasu@gmail.com"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|