prepro-auto 1.0.0__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 (97) hide show
  1. prepro_auto-1.0.0/.env.example +58 -0
  2. prepro_auto-1.0.0/LICENSE +21 -0
  3. prepro_auto-1.0.0/MANIFEST.in +9 -0
  4. prepro_auto-1.0.0/PKG-INFO +600 -0
  5. prepro_auto-1.0.0/README.md +525 -0
  6. prepro_auto-1.0.0/app/__init__.py +0 -0
  7. prepro_auto-1.0.0/app/api/__init__.py +0 -0
  8. prepro_auto-1.0.0/app/api/router.py +18 -0
  9. prepro_auto-1.0.0/app/api/routes/__init__.py +0 -0
  10. prepro_auto-1.0.0/app/api/routes/datasets.py +487 -0
  11. prepro_auto-1.0.0/app/api/routes/decisions.py +302 -0
  12. prepro_auto-1.0.0/app/api/routes/execution.py +116 -0
  13. prepro_auto-1.0.0/app/api/routes/export.py +69 -0
  14. prepro_auto-1.0.0/app/api/routes/health.py +159 -0
  15. prepro_auto-1.0.0/app/api/routes/ml.py +208 -0
  16. prepro_auto-1.0.0/app/api/routes/transform.py +339 -0
  17. prepro_auto-1.0.0/app/core/__init__.py +0 -0
  18. prepro_auto-1.0.0/app/core/config.py +139 -0
  19. prepro_auto-1.0.0/app/core/logging.py +47 -0
  20. prepro_auto-1.0.0/app/core/memory.py +143 -0
  21. prepro_auto-1.0.0/app/db/__init__.py +0 -0
  22. prepro_auto-1.0.0/app/db/session.py +73 -0
  23. prepro_auto-1.0.0/app/main.py +124 -0
  24. prepro_auto-1.0.0/app/ml/__init__.py +82 -0
  25. prepro_auto-1.0.0/app/ml/encoders.py +97 -0
  26. prepro_auto-1.0.0/app/ml/export.py +183 -0
  27. prepro_auto-1.0.0/app/ml/inference.py +52 -0
  28. prepro_auto-1.0.0/app/ml/leakage.py +90 -0
  29. prepro_auto-1.0.0/app/ml/metrics.py +84 -0
  30. prepro_auto-1.0.0/app/ml/model_zoo.py +431 -0
  31. prepro_auto-1.0.0/app/ml/narrate.py +84 -0
  32. prepro_auto-1.0.0/app/ml/problem.py +101 -0
  33. prepro_auto-1.0.0/app/ml/recipe.py +301 -0
  34. prepro_auto-1.0.0/app/ml/trainer.py +370 -0
  35. prepro_auto-1.0.0/app/ml/types.py +129 -0
  36. prepro_auto-1.0.0/app/models/__init__.py +18 -0
  37. prepro_auto-1.0.0/app/models/decision.py +78 -0
  38. prepro_auto-1.0.0/app/models/job.py +92 -0
  39. prepro_auto-1.0.0/app/models/ml_run.py +43 -0
  40. prepro_auto-1.0.0/app/models/snapshot.py +81 -0
  41. prepro_auto-1.0.0/app/notebook.py +511 -0
  42. prepro_auto-1.0.0/app/preprocessing/__init__.py +0 -0
  43. prepro_auto-1.0.0/app/preprocessing/abbreviations.py +200 -0
  44. prepro_auto-1.0.0/app/preprocessing/correlation.py +152 -0
  45. prepro_auto-1.0.0/app/preprocessing/encoding.py +128 -0
  46. prepro_auto-1.0.0/app/preprocessing/imputation.py +445 -0
  47. prepro_auto-1.0.0/app/preprocessing/missing_values.py +293 -0
  48. prepro_auto-1.0.0/app/preprocessing/outliers.py +216 -0
  49. prepro_auto-1.0.0/app/preprocessing/profiler.py +169 -0
  50. prepro_auto-1.0.0/app/preprocessing/scaling.py +175 -0
  51. prepro_auto-1.0.0/app/preprocessing/semantics.py +190 -0
  52. prepro_auto-1.0.0/app/preprocessing/transforms.py +571 -0
  53. prepro_auto-1.0.0/app/preprocessing/type_inference.py +223 -0
  54. prepro_auto-1.0.0/app/schemas/__init__.py +0 -0
  55. prepro_auto-1.0.0/app/schemas/decision.py +52 -0
  56. prepro_auto-1.0.0/app/schemas/execution.py +50 -0
  57. prepro_auto-1.0.0/app/schemas/job.py +77 -0
  58. prepro_auto-1.0.0/app/services/__init__.py +0 -0
  59. prepro_auto-1.0.0/app/services/dashboard_service.py +112 -0
  60. prepro_auto-1.0.0/app/services/dataset_inspector.py +78 -0
  61. prepro_auto-1.0.0/app/services/decision_alternatives.py +230 -0
  62. prepro_auto-1.0.0/app/services/drift_service.py +181 -0
  63. prepro_auto-1.0.0/app/services/encoding_service.py +108 -0
  64. prepro_auto-1.0.0/app/services/execution_service.py +187 -0
  65. prepro_auto-1.0.0/app/services/export_service.py +434 -0
  66. prepro_auto-1.0.0/app/services/file_reader.py +163 -0
  67. prepro_auto-1.0.0/app/services/llm_client.py +292 -0
  68. prepro_auto-1.0.0/app/services/llm_transform_service.py +505 -0
  69. prepro_auto-1.0.0/app/services/missing_value_service.py +125 -0
  70. prepro_auto-1.0.0/app/services/ml_service.py +318 -0
  71. prepro_auto-1.0.0/app/services/outlier_service.py +164 -0
  72. prepro_auto-1.0.0/app/services/privacy.py +72 -0
  73. prepro_auto-1.0.0/app/services/profiling_service.py +62 -0
  74. prepro_auto-1.0.0/app/services/scaling_service.py +191 -0
  75. prepro_auto-1.0.0/app/services/storage.py +129 -0
  76. prepro_auto-1.0.0/app/services/transform_service.py +111 -0
  77. prepro_auto-1.0.0/app/services/versioning_service.py +173 -0
  78. prepro_auto-1.0.0/app/services/visualization_service.py +171 -0
  79. prepro_auto-1.0.0/app/web/__init__.py +1 -0
  80. prepro_auto-1.0.0/app/web/review.html +275 -0
  81. prepro_auto-1.0.0/app/web/workbench.html +2281 -0
  82. prepro_auto-1.0.0/app/web/workbench_ml.html +595 -0
  83. prepro_auto-1.0.0/app/workers/__init__.py +0 -0
  84. prepro_auto-1.0.0/app/workers/celery_app.py +33 -0
  85. prepro_auto-1.0.0/app/workers/tasks.py +48 -0
  86. prepro_auto-1.0.0/prepro_auto/__init__.py +115 -0
  87. prepro_auto-1.0.0/prepro_auto/_ml.py +236 -0
  88. prepro_auto-1.0.0/prepro_auto/cli.py +38 -0
  89. prepro_auto-1.0.0/prepro_auto.egg-info/PKG-INFO +600 -0
  90. prepro_auto-1.0.0/prepro_auto.egg-info/SOURCES.txt +95 -0
  91. prepro_auto-1.0.0/prepro_auto.egg-info/dependency_links.txt +1 -0
  92. prepro_auto-1.0.0/prepro_auto.egg-info/entry_points.txt +2 -0
  93. prepro_auto-1.0.0/prepro_auto.egg-info/requires.txt +59 -0
  94. prepro_auto-1.0.0/prepro_auto.egg-info/top_level.txt +2 -0
  95. prepro_auto-1.0.0/pyproject.toml +99 -0
  96. prepro_auto-1.0.0/requirements.txt +45 -0
  97. prepro_auto-1.0.0/setup.cfg +4 -0
@@ -0,0 +1,58 @@
1
+ # Copy this file to .env and adjust as needed.
2
+ # For local dev with no Docker, the defaults below work as-is.
3
+
4
+ APP_NAME=PrePro Auto
5
+ APP_ENV=local
6
+ DEBUG=true
7
+
8
+ # ── Database ──────────────────────────────────────────────
9
+ # Local (no Docker): SQLite file
10
+ DATABASE_URL=sqlite:///./prepro_auto.db
11
+ # Docker/Postgres example:
12
+ # DATABASE_URL=postgresql+psycopg2://prepro_auto:prepro_auto@db:5432/prepro_auto
13
+
14
+ # ── Redis ─────────────────────────────────────────────────
15
+ REDIS_URL=redis://localhost:6379/0
16
+
17
+ # ── Storage ───────────────────────────────────────────────
18
+ # Local (no Docker): filesystem
19
+ STORAGE_BACKEND=local
20
+ LOCAL_STORAGE_DIR=./storage
21
+ # MinIO/S3 example:
22
+ # STORAGE_BACKEND=s3
23
+ # S3_ENDPOINT_URL=http://localhost:9000
24
+ # S3_ACCESS_KEY=minioadmin
25
+ # S3_SECRET_KEY=minioadmin
26
+ # S3_BUCKET=prepro_auto
27
+
28
+ # ── Upload limits ─────────────────────────────────────────
29
+ MAX_UPLOAD_MB=2048
30
+ ALLOWED_EXTENSIONS=csv,parquet,xlsx,xls,json
31
+
32
+ # ── LLM (optional) ────────────────────────────────────────
33
+ # Leave LLM_PROVIDER empty to run fully offline (dictionary handles common names).
34
+ # Choose ONE provider, set LLM_PROVIDER to its name, then fill in that key.
35
+ # You can also configure this AT RUNTIME from the workbench's "AI settings"
36
+ # panel or, in a notebook, with prepro_auto.set_api_key("openai", "sk-...").
37
+ #
38
+ # OPTION 1 — Groq (free tier, fast, great for testing):
39
+ # pip install groq · https://console.groq.com · LLM_PROVIDER=groq
40
+ # OPTION 2 — OpenAI / GPT:
41
+ # pip install openai · https://platform.openai.com · LLM_PROVIDER=openai
42
+ # OPTION 3 — Anthropic Claude (production):
43
+ # pip install anthropic · https://console.anthropic.com · LLM_PROVIDER=anthropic
44
+ # OPTION 4 — Google Gemini:
45
+ # pip install google-generativeai · https://aistudio.google.com/app/apikey · LLM_PROVIDER=gemini
46
+ # OPTION 5 — Mistral:
47
+ # pip install mistralai · https://console.mistral.ai · LLM_PROVIDER=mistral
48
+ LLM_PROVIDER=
49
+ GROQ_API_KEY=
50
+ GROQ_MODEL=llama-3.3-70b-versatile
51
+ OPENAI_API_KEY=
52
+ OPENAI_MODEL=gpt-4o-mini
53
+ ANTHROPIC_API_KEY=
54
+ LLM_MODEL=claude-sonnet-4-20250514
55
+ GEMINI_API_KEY=
56
+ GEMINI_MODEL=gemini-1.5-flash
57
+ MISTRAL_API_KEY=
58
+ MISTRAL_MODEL=mistral-small-latest
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 PrepIQ
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,9 @@
1
+ include README.md
2
+ include LICENSE
3
+ include requirements.txt
4
+ include .env.example
5
+ recursive-include app/web *.html
6
+ global-exclude *.pyc
7
+ global-exclude __pycache__/*
8
+ prune tests
9
+ prune venv