aap-utils 0.1.3__py3-none-any.whl → 0.1.4__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_kcn.py ADDED
@@ -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,11 +1,16 @@
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
13
  Requires-Dist: requests
11
14
 
15
+ UNKNOWN
16
+
@@ -0,0 +1,7 @@
1
+ aap_utils/__init__.py,sha256=OALCpHMgWzr-3Lu7eKwalsw5GNCwWWkETUPHOqfGXsg,36
2
+ aap_utils/init_kcn.py,sha256=FMX9w0WoaP6I3yc3xn8xqGYT2VbtG2uJbwpTKouZpew,718
3
+ aap_utils/register.py,sha256=YDUvUtoICYVMuuzYAueb34ZtGcYI8SJ6YxoNB3POyyQ,3069
4
+ aap_utils-0.1.4.dist-info/METADATA,sha256=zJjIBA1qS5GDppSjX3rtQF8zY455umerTc3pI-jiaJI,409
5
+ aap_utils-0.1.4.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
6
+ aap_utils-0.1.4.dist-info/top_level.txt,sha256=Qt5xmL8_0_jhMl9uA3lg-xnvs4nCEyVj1tBE4vnp36M,10
7
+ aap_utils-0.1.4.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: bdist_wheel (0.37.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,6 +0,0 @@
1
- aap_utils/__init__.py,sha256=OALCpHMgWzr-3Lu7eKwalsw5GNCwWWkETUPHOqfGXsg,36
2
- aap_utils/register.py,sha256=YDUvUtoICYVMuuzYAueb34ZtGcYI8SJ6YxoNB3POyyQ,3069
3
- aap_utils-0.1.3.dist-info/METADATA,sha256=8RqkF_j5hIRzy2czLQ8a5Kt_kjjnaEvZResid-aDL2g,346
4
- aap_utils-0.1.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
5
- aap_utils-0.1.3.dist-info/top_level.txt,sha256=Qt5xmL8_0_jhMl9uA3lg-xnvs4nCEyVj1tBE4vnp36M,10
6
- aap_utils-0.1.3.dist-info/RECORD,,