ins-pricing 0.5.1__py3-none-any.whl → 0.5.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.
@@ -14,15 +14,16 @@ __all__ = sorted(
14
14
  "bayesopt",
15
15
  "plotting",
16
16
  "explain",
17
- "evaluation",
18
- "cli",
19
- }
20
- )
17
+ "evaluation",
18
+ "cli",
19
+ }
20
+ )
21
21
 
22
22
  _LAZY_ATTRS = {
23
23
  "bayesopt": "ins_pricing.modelling.bayesopt",
24
24
  "plotting": "ins_pricing.modelling.plotting",
25
25
  "explain": "ins_pricing.modelling.explain",
26
+ "evaluation": "ins_pricing.modelling.evaluation",
26
27
  "BayesOptConfig": "ins_pricing.modelling.bayesopt.core",
27
28
  "BayesOptModel": "ins_pricing.modelling.bayesopt.core",
28
29
  }
@@ -72,11 +73,10 @@ _LEGACY_EXPORTS = {
72
73
 
73
74
  __all__ = sorted(set(__all__) | set(_BAYESOPT_EXPORTS) | set(_LEGACY_EXPORTS))
74
75
 
75
- _LAZY_SUBMODULES = {
76
- "bayesopt": "ins_pricing.modelling.bayesopt",
77
- "evaluation": "ins_pricing.modelling.evaluation",
78
- "cli": "ins_pricing.cli",
79
- }
76
+ _LAZY_SUBMODULES = {
77
+ "bayesopt": "ins_pricing.modelling.bayesopt",
78
+ "cli": "ins_pricing.cli",
79
+ }
80
80
 
81
81
  _PACKAGE_PATHS = {
82
82
  "bayesopt": Path(__file__).resolve().parent / "bayesopt",
@@ -111,6 +111,9 @@ def _install_proxy(alias: str, target: str) -> None:
111
111
  module_name = f"{__name__}.{alias}"
112
112
  if module_name in sys.modules:
113
113
  return
114
+ # Avoid self-referential proxies (e.g. modelling.bayesopt -> modelling.bayesopt).
115
+ if target == module_name:
116
+ return
114
117
  proxy = _lazy_module(module_name, target, _PACKAGE_PATHS.get(alias))
115
118
  sys.modules[module_name] = proxy
116
119
  globals()[alias] = proxy
@@ -124,7 +127,7 @@ def __getattr__(name: str):
124
127
  target = _LAZY_ATTRS.get(name)
125
128
  if target:
126
129
  module = import_module(target)
127
- if name in {"bayesopt", "plotting", "explain"}:
130
+ if name in {"bayesopt", "plotting", "explain", "evaluation"}:
128
131
  value = module
129
132
  else:
130
133
  value = getattr(module, name)
ins_pricing/setup.py CHANGED
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
3
3
 
4
4
  setup(
5
5
  name="ins_pricing",
6
- version="0.5.1",
6
+ version="0.5.4",
7
7
  description="Reusable modelling, pricing, governance, and reporting utilities.",
8
8
  author="meishi125478",
9
9
  license="Proprietary",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ins_pricing
3
- Version: 0.5.1
3
+ Version: 0.5.4
4
4
  Summary: Reusable modelling, pricing, governance, and reporting utilities.
5
5
  Author: meishi125478
6
6
  License: Proprietary
@@ -1,7 +1,7 @@
1
1
  ins_pricing/README.md,sha256=pufz_ChEpXXfLk96prv8ciqwgyVvHE5aEZ8iAH-u6k0,3679
2
2
  ins_pricing/__init__.py,sha256=pATYokjg75DXHd2zyoct62efui98SCBO2H8B06Q68r0,4317
3
3
  ins_pricing/exceptions.py,sha256=5fZavPV4zNJ7wPC75L215KkHXX9pRrfDAYZOdSKJMGo,4778
4
- ins_pricing/setup.py,sha256=cbVFHNm5swws1eyPy6zTkZYH2GGwRehcJiKLAZ_2mNE,1702
4
+ ins_pricing/setup.py,sha256=AQ9Q0y5--N0uO825NNwz6IktuwDtmsEZNSU89IwjW-s,1702
5
5
  ins_pricing/cli/BayesOpt_entry.py,sha256=AMdHJim2fG1_Z6DRZopt3wMWeYwTOnmcL2_8iO490kY,2058
6
6
  ins_pricing/cli/BayesOpt_incremental.py,sha256=SerZyK2a6Lr3EBvuuay_Yq1dSQ8u2KvtKuePoLS7Y9w,36422
7
7
  ins_pricing/cli/Explain_Run.py,sha256=zDtHZ6tbLXN7-mw7yCAK4R1D4oOfHr-oYwcHhuTgjXg,1281
@@ -33,7 +33,7 @@ ins_pricing/governance/audit.py,sha256=f0aw-LaOxH5NGzxwczeLrGMJcxO-JDRn99BpI55KR
33
33
  ins_pricing/governance/registry.py,sha256=2uxQL6qMGY5IYWJti9MpaV_auvL--piJaasFrX20ghk,3139
34
34
  ins_pricing/governance/release.py,sha256=9s-6V41RFaJ-z0V0RFw3_xgrk77BYfun0WN_w3uspqc,4946
35
35
  ins_pricing/modelling/README.md,sha256=eSi6OoVjz-609_XFZ2yXWfOGuK00mb9x5EYL3PgXDEs,2151
36
- ins_pricing/modelling/__init__.py,sha256=1Z_fDHMpuGYOGh4s662mHh4EGMQkYG5hH8Fcg5Aln3I,4366
36
+ ins_pricing/modelling/__init__.py,sha256=1bklF3zUAkqID9lO0fQDSpwLI4BaPUx2zeKrfpPHpNU,4523
37
37
  ins_pricing/modelling/evaluation.py,sha256=tgmQ-7RHhOkzPCLHtfm4HHNLJVwxYaFExnCVjoBqoeM,4154
38
38
  ins_pricing/modelling/bayesopt/README.md,sha256=9WBmvcEupOYUSA8LNIUHxs9rNCoEfT0Bq-gewpsAQZw,2544
39
39
  ins_pricing/modelling/bayesopt/__init__.py,sha256=wkTYjfU9Oi6sNCrn4pmF1QevEc2f_EF6k_PIiCYt-aY,1555
@@ -126,7 +126,7 @@ ins_pricing/utils/paths.py,sha256=ds_nt2JmP4Gq8nERJUdUFjh3rxGL2duOXNMifgutI6g,91
126
126
  ins_pricing/utils/profiling.py,sha256=dwbJIEgZFr-Ow0-F1KT94fBfNev1g2HT_UWqJQ2FCvc,11265
127
127
  ins_pricing/utils/torch_compat.py,sha256=UrRsqx2qboDG8WE0OmxNOi08ojwE-dCxTQh0N2s3Rgw,2441
128
128
  ins_pricing/utils/validation.py,sha256=4Tw9VUJPk0N-WO3YUqZP-xXRl1Xpubkm0vi3WzzZrv4,13348
129
- ins_pricing-0.5.1.dist-info/METADATA,sha256=xsczDkdeHh7VLt5cFlsZ9MwA5agobSC12PBvsxu-Tp0,5891
130
- ins_pricing-0.5.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
131
- ins_pricing-0.5.1.dist-info/top_level.txt,sha256=haZuNQpHKNBEPZx3NjLnHp8pV3I_J9QG8-HyJn00FA0,12
132
- ins_pricing-0.5.1.dist-info/RECORD,,
129
+ ins_pricing-0.5.4.dist-info/METADATA,sha256=nPQRszkW6AQzAhnupwlCzIJDhxXPhQ3FM0ZfOGLw3EM,5891
130
+ ins_pricing-0.5.4.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
131
+ ins_pricing-0.5.4.dist-info/top_level.txt,sha256=haZuNQpHKNBEPZx3NjLnHp8pV3I_J9QG8-HyJn00FA0,12
132
+ ins_pricing-0.5.4.dist-info/RECORD,,