aap-utils 0.2.17__py3-none-any.whl → 0.2.19__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 CHANGED
@@ -91,23 +91,13 @@ 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 sys.argv[1] == "b":
98
+ elif len(sys.argv) > 1 and "password" in sys.argv[1]:
104
99
  # Example: python aap_utils.py b "\raiplatform@172.20.0.11's password:\n"
105
- if len(sys.argv) < 3:
106
- print("Usage: aap_utils b \"<prompt_bytes>\"")
107
- return
108
- prompt = sys.argv[2].encode()
109
- password = get_ssh_password_if_prompted(prompt)
110
- print(password)
100
+ print("aiplatform")
111
101
  else:
112
102
  print("Usage:")
113
103
  print(" aap_utils push env")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aap_utils
3
- Version: 0.2.17
3
+ Version: 0.2.19
4
4
  Summary: A Python library for registering an IP address for AAP
5
5
  Author: Minh Dang
6
6
  Author-email: danghoangminh86@gmail.com
@@ -0,0 +1,8 @@
1
+ aap_utils/__init__.py,sha256=g6G3i3a5ANDJWqFX2oPsLpP93aTaoTj0gkMQzeqQIJw,172
2
+ aap_utils/cli.py,sha256=T2j7U8JA-fnmtorTaKdvt8oi-DBRAtJvfxAZJsheiy4,3955
3
+ aap_utils/register.py,sha256=0okAQ8b8wVtT_bSFCAsV3pcVOTifLHfkyCZzvLSpsYc,3964
4
+ aap_utils-0.2.19.dist-info/METADATA,sha256=5PrYnWh16AggT0Lh9Ed6KMndt6F0MI1ZyU5raj_AbI0,373
5
+ aap_utils-0.2.19.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
6
+ aap_utils-0.2.19.dist-info/entry_points.txt,sha256=K-h2toLoqFxAg4Bx2r7FWggKgYnAX9zp9s4Ms4r-d6s,49
7
+ aap_utils-0.2.19.dist-info/top_level.txt,sha256=Qt5xmL8_0_jhMl9uA3lg-xnvs4nCEyVj1tBE4vnp36M,10
8
+ aap_utils-0.2.19.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- aap_utils/__init__.py,sha256=g6G3i3a5ANDJWqFX2oPsLpP93aTaoTj0gkMQzeqQIJw,172
2
- aap_utils/cli.py,sha256=h0bwNdqpmrgCvApJx6votPSbEpdPbBZAEgdfKVqHu2w,4229
3
- aap_utils/register.py,sha256=0okAQ8b8wVtT_bSFCAsV3pcVOTifLHfkyCZzvLSpsYc,3964
4
- aap_utils-0.2.17.dist-info/METADATA,sha256=vJ9-rAB_9KE-Agy2tIgr8JqMTiUhcLwGMhHG2OIUv40,373
5
- aap_utils-0.2.17.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
6
- aap_utils-0.2.17.dist-info/entry_points.txt,sha256=K-h2toLoqFxAg4Bx2r7FWggKgYnAX9zp9s4Ms4r-d6s,49
7
- aap_utils-0.2.17.dist-info/top_level.txt,sha256=Qt5xmL8_0_jhMl9uA3lg-xnvs4nCEyVj1tBE4vnp36M,10
8
- aap_utils-0.2.17.dist-info/RECORD,,