aap-utils 0.2.18__py3-none-any.whl → 0.2.20__py3-none-any.whl
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.
- aap_utils/cli.py +1 -13
- {aap_utils-0.2.18.dist-info → aap_utils-0.2.20.dist-info}/METADATA +1 -1
- aap_utils-0.2.20.dist-info/RECORD +8 -0
- aap_utils-0.2.18.dist-info/RECORD +0 -8
- {aap_utils-0.2.18.dist-info → aap_utils-0.2.20.dist-info}/WHEEL +0 -0
- {aap_utils-0.2.18.dist-info → aap_utils-0.2.20.dist-info}/entry_points.txt +0 -0
- {aap_utils-0.2.18.dist-info → aap_utils-0.2.20.dist-info}/top_level.txt +0 -0
aap_utils/cli.py
CHANGED
@@ -91,21 +91,9 @@ def publish_env():
|
|
91
91
|
except requests.RequestException as e:
|
92
92
|
print(f"❌ Error connecting to the server: {e}")
|
93
93
|
|
94
|
-
|
95
|
-
def get_ssh_password_if_prompted(prompt_bytes):
|
96
|
-
return "aiplatform"
|
97
|
-
|
98
|
-
|
99
94
|
def main():
|
100
95
|
import sys
|
101
96
|
if len(sys.argv) > 2 and sys.argv[1] == "push" and sys.argv[2] == "env":
|
102
97
|
publish_env()
|
103
|
-
elif len(sys.argv) > 1 and "password" in sys.argv[1]:
|
104
|
-
# Example: python aap_utils.py b "\raiplatform@172.20.0.11's password:\n"
|
105
|
-
prompt = sys.argv[2].encode()
|
106
|
-
password = get_ssh_password_if_prompted(prompt)
|
107
|
-
print(password)
|
108
98
|
else:
|
109
|
-
print("Usage:")
|
110
|
-
print(" aap_utils push env")
|
111
|
-
print(" aap_utils b \"<prompt_bytes>\"")
|
99
|
+
print("Usage: aap_utils push env")
|
@@ -0,0 +1,8 @@
|
|
1
|
+
aap_utils/__init__.py,sha256=g6G3i3a5ANDJWqFX2oPsLpP93aTaoTj0gkMQzeqQIJw,172
|
2
|
+
aap_utils/cli.py,sha256=IEpuB7CH9OA8-JlFGuKpd_fZWvDh873RN9Ydl4Qf2dQ,3718
|
3
|
+
aap_utils/register.py,sha256=0okAQ8b8wVtT_bSFCAsV3pcVOTifLHfkyCZzvLSpsYc,3964
|
4
|
+
aap_utils-0.2.20.dist-info/METADATA,sha256=GM4-VgK5nA5M4_29YsxsD2OiuRdDiI53bHq3-D1y1Ls,373
|
5
|
+
aap_utils-0.2.20.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
6
|
+
aap_utils-0.2.20.dist-info/entry_points.txt,sha256=K-h2toLoqFxAg4Bx2r7FWggKgYnAX9zp9s4Ms4r-d6s,49
|
7
|
+
aap_utils-0.2.20.dist-info/top_level.txt,sha256=Qt5xmL8_0_jhMl9uA3lg-xnvs4nCEyVj1tBE4vnp36M,10
|
8
|
+
aap_utils-0.2.20.dist-info/RECORD,,
|
@@ -1,8 +0,0 @@
|
|
1
|
-
aap_utils/__init__.py,sha256=g6G3i3a5ANDJWqFX2oPsLpP93aTaoTj0gkMQzeqQIJw,172
|
2
|
-
aap_utils/cli.py,sha256=3aRyq4bj0MRn535uy6ptc5JD1Iib6wctc6Kz3XjTzM0,4128
|
3
|
-
aap_utils/register.py,sha256=0okAQ8b8wVtT_bSFCAsV3pcVOTifLHfkyCZzvLSpsYc,3964
|
4
|
-
aap_utils-0.2.18.dist-info/METADATA,sha256=PMsu5lpmisSq8dS3VX2YdeRy86uGkzEo2PvxP8OPZMo,373
|
5
|
-
aap_utils-0.2.18.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
6
|
-
aap_utils-0.2.18.dist-info/entry_points.txt,sha256=K-h2toLoqFxAg4Bx2r7FWggKgYnAX9zp9s4Ms4r-d6s,49
|
7
|
-
aap_utils-0.2.18.dist-info/top_level.txt,sha256=Qt5xmL8_0_jhMl9uA3lg-xnvs4nCEyVj1tBE4vnp36M,10
|
8
|
-
aap_utils-0.2.18.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|