nvidia-nat 1.2.0rc6__py3-none-any.whl → 1.2.0rc8__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.
aiq/__init__.py ADDED
@@ -0,0 +1,66 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ import sys
17
+ import importlib
18
+ import importlib.abc
19
+ import importlib.util
20
+ import warnings
21
+
22
+
23
+ class CompatFinder(importlib.abc.MetaPathFinder):
24
+
25
+ def __init__(self, alias_prefix, target_prefix):
26
+ self.alias_prefix = alias_prefix
27
+ self.target_prefix = target_prefix
28
+
29
+ def find_spec(self, fullname, path, target=None): # pylint: disable=unused-argument
30
+ if fullname == self.alias_prefix or fullname.startswith(self.alias_prefix + "."):
31
+ # Map aiq.something -> nat.something
32
+ target_name = self.target_prefix + fullname[len(self.alias_prefix):]
33
+ spec = importlib.util.find_spec(target_name)
34
+ if spec is None:
35
+ return None
36
+ # Wrap the loader so it loads under the alias name
37
+ return importlib.util.spec_from_loader(fullname, CompatLoader(fullname, target_name))
38
+ return None
39
+
40
+
41
+ class CompatLoader(importlib.abc.Loader):
42
+
43
+ def __init__(self, alias_name, target_name):
44
+ self.alias_name = alias_name
45
+ self.target_name = target_name
46
+
47
+ def create_module(self, spec):
48
+ # Reuse the actual module so there's only one instance
49
+ target_module = importlib.import_module(self.target_name)
50
+ sys.modules[self.alias_name] = target_module
51
+ return target_module
52
+
53
+ def exec_module(self, module):
54
+ # Nothing to execute since the target is already loaded
55
+ pass
56
+
57
+
58
+ # Register the compatibility finder
59
+ sys.meta_path.insert(0, CompatFinder("aiq", "nat"))
60
+
61
+ warnings.warn(
62
+ "!!! The 'aiq' namespace is deprecated and will be removed in a future release. "
63
+ "Please use the 'nat' namespace instead.",
64
+ DeprecationWarning,
65
+ stacklevel=2,
66
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nvidia-nat
3
- Version: 1.2.0rc6
3
+ Version: 1.2.0rc8
4
4
  Summary: NVIDIA NeMo Agent toolkit
5
5
  Author: NVIDIA Corporation
6
6
  Maintainer: NVIDIA Corporation
@@ -1,3 +1,4 @@
1
+ aiq/__init__.py,sha256=E9vuQX0dCZIALhOg360sRLO53f6NXPgMTv3X1sh8WAM,2376
1
2
  nat/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
3
  nat/agent/base.py,sha256=vKD3q6RiRdXYlmsZOsB9DB0cVfSMNByhjn7uwp8TxGw,9094
3
4
  nat/agent/dual_node.py,sha256=EOYpYzhaY-m1t2W3eiQrBjSfNjYMDttAwtzEEEcYP4s,2353
@@ -425,10 +426,10 @@ nat/utils/reactive/base/observer_base.py,sha256=UAlyAY_ky4q2t0P81RVFo2Bs_R7z5Nde
425
426
  nat/utils/reactive/base/subject_base.py,sha256=UQOxlkZTIeeyYmG5qLtDpNf_63Y7p-doEeUA08_R8ME,2521
426
427
  nat/utils/settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
427
428
  nat/utils/settings/global_settings.py,sha256=CYHQX7F6MDR18vsVFTrEySpS9cBufuVGTUqZm9lREFs,7446
428
- nvidia_nat-1.2.0rc6.dist-info/licenses/LICENSE-3rd-party.txt,sha256=8o7aySJa9CBvFshPcsRdJbczzdNyDGJ8b0J67WRUQ2k,183936
429
- nvidia_nat-1.2.0rc6.dist-info/licenses/LICENSE.md,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
430
- nvidia_nat-1.2.0rc6.dist-info/METADATA,sha256=blF_qymwsJPfUvzlXRuW6PnnN8vmtOoWEBD62WC4rT0,21688
431
- nvidia_nat-1.2.0rc6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
432
- nvidia_nat-1.2.0rc6.dist-info/entry_points.txt,sha256=FNh4pZVSe_61s29zdks66lmXBPtsnko8KSZ4ffv7WVE,653
433
- nvidia_nat-1.2.0rc6.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
434
- nvidia_nat-1.2.0rc6.dist-info/RECORD,,
429
+ nvidia_nat-1.2.0rc8.dist-info/licenses/LICENSE-3rd-party.txt,sha256=8o7aySJa9CBvFshPcsRdJbczzdNyDGJ8b0J67WRUQ2k,183936
430
+ nvidia_nat-1.2.0rc8.dist-info/licenses/LICENSE.md,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
431
+ nvidia_nat-1.2.0rc8.dist-info/METADATA,sha256=uQ8zTKL_-xPalV3BSpg4p18o9u0KbRu6ZUPZXDzI6FY,21688
432
+ nvidia_nat-1.2.0rc8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
433
+ nvidia_nat-1.2.0rc8.dist-info/entry_points.txt,sha256=FNh4pZVSe_61s29zdks66lmXBPtsnko8KSZ4ffv7WVE,653
434
+ nvidia_nat-1.2.0rc8.dist-info/top_level.txt,sha256=lgJWLkigiVZuZ_O1nxVnD_ziYBwgpE2OStdaCduMEGc,8
435
+ nvidia_nat-1.2.0rc8.dist-info/RECORD,,