aap-utils 0.1.19__tar.gz → 0.1.21__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aap_utils
3
- Version: 0.1.19
3
+ Version: 0.1.21
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,3 @@
1
+ from .register import register_demo
2
+ from .register import get_config
3
+ from .register import get_mlflow_url
@@ -61,7 +61,7 @@ def create_url(domain_name = "aiplatform.vcntt.tech"):
61
61
  return url, transformed_namespace
62
62
 
63
63
 
64
- def get_args(kcn_params = "config.yaml", config_dir="configs"):
64
+ def get_config(kcn_params = "config.yaml", config_dir="configs"):
65
65
 
66
66
  # Get the absolute path of the folder where run.py is located
67
67
  run_py_dir = os.path.abspath(os.getcwd()) # Absolute path to the running script's directory
@@ -87,5 +87,9 @@ def get_args(kcn_params = "config.yaml", config_dir="configs"):
87
87
 
88
88
  return args
89
89
 
90
- def get_mlflow_url():
91
- return os.environ.get('MLFLOW_URI')
90
+
91
+ def get_mlflow_url(domain_name = "aiplatform.vcntt.tech"):
92
+ kernel_namespace = os.getenv("KERNEL_NAMESPACE", "default_namespace") # Default if not set
93
+ mlflow_url = f"https://{kernel_namespace.replace('machinelearning', 'appmachine')}.{domain_name}/private/mlflow"
94
+
95
+ return os.environ.get('MLFLOW_URI') mlflow_url
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aap_utils
3
- Version: 0.1.19
3
+ Version: 0.1.21
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
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="aap_utils", # The name of your library
5
- version="0.1.19",
5
+ version="0.1.21",
6
6
  description="A Python library for registering an IP address for AAP",
7
7
  author="Minh Dang",
8
8
  author_email="danghoangminh86@gmail.com",
@@ -1,3 +0,0 @@
1
- from .register import register_demo
2
- from .register import get_args
3
- from .register import get_mlflow_url
File without changes
File without changes
File without changes