p2predict 0.9.4__tar.gz → 0.9.5__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.
Files changed (56) hide show
  1. {p2predict-0.9.4 → p2predict-0.9.5}/LICENSE +17 -2
  2. {p2predict-0.9.4/src/p2predict.egg-info → p2predict-0.9.5}/PKG-INFO +2 -2
  3. {p2predict-0.9.4 → p2predict-0.9.5}/pyproject.toml +2 -2
  4. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/cli/predict.py +1 -0
  5. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/cli/train.py +1 -0
  6. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/mcp/server.py +5 -0
  7. {p2predict-0.9.4 → p2predict-0.9.5/src/p2predict.egg-info}/PKG-INFO +2 -2
  8. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict.egg-info/requires.txt +1 -1
  9. {p2predict-0.9.4 → p2predict-0.9.5}/README.md +0 -0
  10. {p2predict-0.9.4 → p2predict-0.9.5}/setup.cfg +0 -0
  11. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/__init__.py +0 -0
  12. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/__main__.py +0 -0
  13. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/cli/__init__.py +0 -0
  14. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/cmdline_io.py +0 -0
  15. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/explain.py +0 -0
  16. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/feature_selection.py +0 -0
  17. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/hpo_training.py +0 -0
  18. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/input_checks.py +0 -0
  19. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/intervals.py +0 -0
  20. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/json_output.py +0 -0
  21. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/mcp/__init__.py +0 -0
  22. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/mcp/__main__.py +0 -0
  23. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/mcp/conversions.py +0 -0
  24. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/mcp/registry.py +0 -0
  25. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/model_evals.py +0 -0
  26. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/model_utils.py +0 -0
  27. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/outliers.py +0 -0
  28. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/plotting.py +0 -0
  29. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/prepare_data.py +0 -0
  30. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/preprocessing.py +0 -0
  31. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/quality.py +0 -0
  32. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/trained_model_io.py +0 -0
  33. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/training.py +0 -0
  34. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/ui_console.py +0 -0
  35. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict/whatif.py +0 -0
  36. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict.egg-info/SOURCES.txt +0 -0
  37. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict.egg-info/dependency_links.txt +0 -0
  38. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict.egg-info/entry_points.txt +0 -0
  39. {p2predict-0.9.4 → p2predict-0.9.5}/src/p2predict.egg-info/top_level.txt +0 -0
  40. {p2predict-0.9.4 → p2predict-0.9.5}/tests/test_benchmarks.py +0 -0
  41. {p2predict-0.9.4 → p2predict-0.9.5}/tests/test_cli.py +0 -0
  42. {p2predict-0.9.4 → p2predict-0.9.5}/tests/test_explain.py +0 -0
  43. {p2predict-0.9.4 → p2predict-0.9.5}/tests/test_feature_selection.py +0 -0
  44. {p2predict-0.9.4 → p2predict-0.9.5}/tests/test_feature_selection_leakage.py +0 -0
  45. {p2predict-0.9.4 → p2predict-0.9.5}/tests/test_input_checks.py +0 -0
  46. {p2predict-0.9.4 → p2predict-0.9.5}/tests/test_intervals.py +0 -0
  47. {p2predict-0.9.4 → p2predict-0.9.5}/tests/test_io_and_evals.py +0 -0
  48. {p2predict-0.9.4 → p2predict-0.9.5}/tests/test_json_output.py +0 -0
  49. {p2predict-0.9.4 → p2predict-0.9.5}/tests/test_mcp.py +0 -0
  50. {p2predict-0.9.4 → p2predict-0.9.5}/tests/test_outliers.py +0 -0
  51. {p2predict-0.9.4 → p2predict-0.9.5}/tests/test_plotting.py +0 -0
  52. {p2predict-0.9.4 → p2predict-0.9.5}/tests/test_prepare_data.py +0 -0
  53. {p2predict-0.9.4 → p2predict-0.9.5}/tests/test_preprocessing.py +0 -0
  54. {p2predict-0.9.4 → p2predict-0.9.5}/tests/test_quality.py +0 -0
  55. {p2predict-0.9.4 → p2predict-0.9.5}/tests/test_training.py +0 -0
  56. {p2predict-0.9.4 → p2predict-0.9.5}/tests/test_whatif.py +0 -0
@@ -1,6 +1,21 @@
1
- PolyForm Noncommercial License 1.0.0
1
+ P2Predict License Exception
2
+ Copyright (c) 2023-2026 Ahmed K. Hafsi
3
+
4
+ P2Predict is licensed under the PolyForm Noncommercial License 1.0.0 (see below).
5
+
6
+ ADDITIONAL GRANT OF PERMISSION:
7
+ Notwithstanding the restrictions in the PolyForm Noncommercial License 1.0.0, the Licensor hereby grants any organization (including for-profit corporations) permission to use this software internally for their own direct operations, procurement, and benchmarking purposes at no cost.
8
+
9
+ A commercial license is ONLY required if you:
10
+ 1. Provide consulting, advisory, or procurement services to third-party clients using this software.
11
+ 2. Embed or integrate this software into a paid commercial product or service.
2
12
 
3
- Copyright (c) 2023 Ahmed K. Hafsi
13
+ For commercial licensing inquiries, please visit p2predict.com.
14
+
15
+ ----------------------------------------------------------------------
16
+
17
+ PolyForm Noncommercial License 1.0.0
18
+ Copyright (c) 2023-2026 Ahmed K. Hafsi
4
19
 
5
20
  https://polyformproject.org/licenses/noncommercial/1.0.0
6
21
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: p2predict
3
- Version: 0.9.4
3
+ Version: 0.9.5
4
4
  Summary: Parametric price benchmarking for engineering and procurement trade-offs. Agentic first, runs on your data, stays on your machine.
5
5
  Author: Ahmed Khalil Hafsi
6
6
  License-Expression: PolyForm-Noncommercial-1.0.0
@@ -39,7 +39,7 @@ Requires-Dist: halo>=0.0.31
39
39
  Requires-Dist: questionary>=1.10
40
40
  Requires-Dist: shap<0.50,>=0.44
41
41
  Provides-Extra: mcp
42
- Requires-Dist: mcp>=1.0; extra == "mcp"
42
+ Requires-Dist: mcp<2,>=1.0; extra == "mcp"
43
43
  Provides-Extra: dev
44
44
  Requires-Dist: pytest>=7; extra == "dev"
45
45
  Dynamic: license-file
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "p2predict"
7
- version = "0.9.4"
7
+ version = "0.9.5"
8
8
  description = "Parametric price benchmarking for engineering and procurement trade-offs. Agentic first, runs on your data, stays on your machine."
9
9
  readme = "README.md"
10
10
  license = "PolyForm-Noncommercial-1.0.0"
@@ -55,7 +55,7 @@ dependencies = [
55
55
 
56
56
  [project.optional-dependencies]
57
57
  mcp = [
58
- "mcp>=1.0",
58
+ "mcp>=1.0,<2",
59
59
  ]
60
60
  dev = [
61
61
  "pytest>=7",
@@ -412,6 +412,7 @@ def _print_whatif(console, result: WhatIfResult, target_name: str) -> None:
412
412
 
413
413
 
414
414
  @click.command()
415
+ @click.version_option(package_name="p2predict", message="%(prog)s %(version)s")
415
416
  @click.option("-m", "--model", type=click.Path(exists=True),
416
417
  help="Path to the trained model file (.model)")
417
418
  @click.option("-p", "--predict_using",
@@ -95,6 +95,7 @@ def _feature_outlier_summary_block(summary: dict) -> dict:
95
95
 
96
96
 
97
97
  @click.command()
98
+ @click.version_option(package_name="p2predict", message="%(prog)s %(version)s")
98
99
  @click.option("-i", "--input", type=click.Path(exists=True), default=None,
99
100
  help="Path to the CSV file containing the training dataset.")
100
101
  @click.option("-t", "--target",
@@ -1239,6 +1239,11 @@ def main():
1239
1239
  default="models",
1240
1240
  help="Directory containing .model files (default: models)",
1241
1241
  )
1242
+ parser.add_argument(
1243
+ "--version",
1244
+ action="version",
1245
+ version=f"p2predict-mcp {_SERVER_BUILD['version']}",
1246
+ )
1242
1247
  args = parser.parse_args()
1243
1248
 
1244
1249
  global _registry
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: p2predict
3
- Version: 0.9.4
3
+ Version: 0.9.5
4
4
  Summary: Parametric price benchmarking for engineering and procurement trade-offs. Agentic first, runs on your data, stays on your machine.
5
5
  Author: Ahmed Khalil Hafsi
6
6
  License-Expression: PolyForm-Noncommercial-1.0.0
@@ -39,7 +39,7 @@ Requires-Dist: halo>=0.0.31
39
39
  Requires-Dist: questionary>=1.10
40
40
  Requires-Dist: shap<0.50,>=0.44
41
41
  Provides-Extra: mcp
42
- Requires-Dist: mcp>=1.0; extra == "mcp"
42
+ Requires-Dist: mcp<2,>=1.0; extra == "mcp"
43
43
  Provides-Extra: dev
44
44
  Requires-Dist: pytest>=7; extra == "dev"
45
45
  Dynamic: license-file
@@ -17,4 +17,4 @@ shap<0.50,>=0.44
17
17
  pytest>=7
18
18
 
19
19
  [mcp]
20
- mcp>=1.0
20
+ mcp<2,>=1.0
File without changes
File without changes
File without changes
File without changes