aap-utils 0.1.3__tar.gz → 0.1.4__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,10 +1,15 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aap_utils
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: A Python library for registering an IP address for AAP
5
+ Home-page: UNKNOWN
5
6
  Author: Minh Dang
6
7
  Author-email: danghoangminh86@gmail.com
8
+ License: UNKNOWN
9
+ Platform: UNKNOWN
7
10
  Classifier: Programming Language :: Python :: 3
8
11
  Classifier: License :: OSI Approved :: MIT License
9
12
  Classifier: Operating System :: OS Independent
10
- Requires-Dist: requests
13
+
14
+ UNKNOWN
15
+
@@ -0,0 +1,19 @@
1
+ import os
2
+ from hydra import initialize, compose
3
+ from omegaconf import OmegaConf, DictConfig
4
+ kcn_params = "config.yaml"
5
+ config_path="configs/"
6
+ overrides = []
7
+
8
+ if os.environ.get('KCN_PARAMS') and os.environ.get('KCN_PARAMS') != '':
9
+ full_path = os.getenv('KCN_PARAMS')
10
+ full_path = "../" + full_path
11
+ config_path = os.path.dirname(full_path)
12
+ kcn_params = os.path.basename(full_path) # Extract the filename
13
+
14
+ if os.environ.get('KCN_OVERRIDES') and os.environ.get('KCN_OVERRIDES') != '':
15
+ overrides_env = os.getenv("KCN_OVERRIDES")
16
+ overrides = overrides_env.split('|') if overrides_env else []
17
+
18
+ with initialize(version_base=None, config_path=config_path):
19
+ args = compose(config_name=kcn_params)
@@ -1,10 +1,15 @@
1
1
  Metadata-Version: 2.1
2
- Name: aap_utils
3
- Version: 0.1.3
2
+ Name: aap-utils
3
+ Version: 0.1.4
4
4
  Summary: A Python library for registering an IP address for AAP
5
+ Home-page: UNKNOWN
5
6
  Author: Minh Dang
6
7
  Author-email: danghoangminh86@gmail.com
8
+ License: UNKNOWN
9
+ Platform: UNKNOWN
7
10
  Classifier: Programming Language :: Python :: 3
8
11
  Classifier: License :: OSI Approved :: MIT License
9
12
  Classifier: Operating System :: OS Independent
10
- Requires-Dist: requests
13
+
14
+ UNKNOWN
15
+
@@ -2,6 +2,7 @@ README.md
2
2
  pyproject.toml
3
3
  setup.py
4
4
  aap_utils/__init__.py
5
+ aap_utils/init_kcn.py
5
6
  aap_utils/register.py
6
7
  aap_utils.egg-info/PKG-INFO
7
8
  aap_utils.egg-info/SOURCES.txt
@@ -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.3",
5
+ version="0.1.4",
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",
File without changes
File without changes
File without changes