aap-utils 0.1.18__py3-none-any.whl → 0.1.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/__init__.py CHANGED
@@ -1,2 +1,3 @@
1
1
  from .register import register_demo
2
- from .register import get_args
2
+ from .register import get_config
3
+ from .register import get_mlflow_url
aap_utils/register.py CHANGED
@@ -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
@@ -85,4 +85,8 @@ def get_args(kcn_params = "config.yaml", config_dir="configs"):
85
85
  with initialize_config_dir(version_base=None, config_dir=config_path):
86
86
  args = compose(config_name=kcn_params)
87
87
 
88
- return args
88
+ return args
89
+
90
+
91
+ def get_mlflow_url():
92
+ return os.environ.get('MLFLOW_URI')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aap_utils
3
- Version: 0.1.18
3
+ Version: 0.1.20
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,6 @@
1
+ aap_utils/__init__.py,sha256=Px9phm-1DU2yq-wUjKg9zEmRWbcLpWAYG-9AlnNVmCc,105
2
+ aap_utils/register.py,sha256=IfpCqJjridwRKekAHqr8a8qLvWLBYD1dkdYS9SrCjo8,3560
3
+ aap_utils-0.1.20.dist-info/METADATA,sha256=XodydMKRP-w58wnTTuvP07uChl6vRMszDdqvHgkd5ac,347
4
+ aap_utils-0.1.20.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
5
+ aap_utils-0.1.20.dist-info/top_level.txt,sha256=Qt5xmL8_0_jhMl9uA3lg-xnvs4nCEyVj1tBE4vnp36M,10
6
+ aap_utils-0.1.20.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- aap_utils/__init__.py,sha256=QcqBOrCuKWHsW7wNycAyPJTPquUzw_dg8E98XTm7OUk,67
2
- aap_utils/register.py,sha256=O-9h1tAsra8BJp6p82V2kd7J0tGPx5EUnd9eJqFQn_c,3494
3
- aap_utils-0.1.18.dist-info/METADATA,sha256=oURm5_wCMkObrSYzAGl6P6R-qNLdvKuJoFIKf-oMlgM,347
4
- aap_utils-0.1.18.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
5
- aap_utils-0.1.18.dist-info/top_level.txt,sha256=Qt5xmL8_0_jhMl9uA3lg-xnvs4nCEyVj1tBE4vnp36M,10
6
- aap_utils-0.1.18.dist-info/RECORD,,