datapilot-kit 0.3.0rc1__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.
Files changed (44) hide show
  1. datapilot/__init__.py +11 -0
  2. datapilot/analysis/__init__.py +3 -0
  3. datapilot/analysis/correlation.py +58 -0
  4. datapilot/analysis/datatype.py +48 -0
  5. datapilot/analysis/duplicate.py +40 -0
  6. datapilot/analysis/health.py +163 -0
  7. datapilot/analysis/insights.py +101 -0
  8. datapilot/analysis/missing.py +56 -0
  9. datapilot/analysis/models.py +108 -0
  10. datapilot/analysis/outliers.py +85 -0
  11. datapilot/analysis/statistics.py +46 -0
  12. datapilot/analysis/summary.py +36 -0
  13. datapilot/api/__init__.py +7 -0
  14. datapilot/api/analyze.py +16 -0
  15. datapilot/assets/style.css +1081 -0
  16. datapilot/cli/__init__.py +3 -0
  17. datapilot/core/__init__.py +3 -0
  18. datapilot/core/loader.py +72 -0
  19. datapilot/core/report.py +104 -0
  20. datapilot/interpretation/__init__.py +3 -0
  21. datapilot/llm/__init__.py +0 -0
  22. datapilot/recommendation/__init__.py +0 -0
  23. datapilot/reporting/__init__.py +3 -0
  24. datapilot/reporting/fragments.py +329 -0
  25. datapilot/reporting/html.py +51 -0
  26. datapilot/reporting/placeholders.py +133 -0
  27. datapilot/reporting/renderer.py +57 -0
  28. datapilot/templates/report.html +528 -0
  29. datapilot/ui/__init__.py +0 -0
  30. datapilot/ui/cards.py +70 -0
  31. datapilot/ui/console.py +12 -0
  32. datapilot/ui/dashboard.py +90 -0
  33. datapilot/ui/panels.py +16 -0
  34. datapilot/ui/renderer.py +21 -0
  35. datapilot/ui/sections.py +89 -0
  36. datapilot/ui/tables.py +21 -0
  37. datapilot/ui/theme.py +20 -0
  38. datapilot/utils/__init__.py +3 -0
  39. datapilot/visualization/__init__.py +0 -0
  40. datapilot_kit-0.3.0rc1.dist-info/METADATA +103 -0
  41. datapilot_kit-0.3.0rc1.dist-info/RECORD +44 -0
  42. datapilot_kit-0.3.0rc1.dist-info/WHEEL +5 -0
  43. datapilot_kit-0.3.0rc1.dist-info/licenses/LICENSE +21 -0
  44. datapilot_kit-0.3.0rc1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,90 @@
1
+ """
2
+ Dashboard layout for Datapilot.
3
+ """
4
+
5
+ from rich.columns import Columns
6
+ from rich.console import Group
7
+
8
+ from datapilot.core.report import Report
9
+
10
+ from .cards import hero_card, metric_card
11
+
12
+
13
+ def _health_color(score: int) -> str:
14
+ """
15
+ Return a border color based on dataset health.
16
+ """
17
+
18
+ if score >= 90:
19
+ return "green"
20
+
21
+ if score >= 75:
22
+ return "yellow"
23
+
24
+ return "red"
25
+
26
+
27
+ def render_dashboard(report: Report) -> Group:
28
+ """
29
+ Render the Datapilot dashboard.
30
+ """
31
+
32
+ health = report.dataset_health()
33
+ missing = report.missing_values()
34
+ duplicates = report.duplicates()
35
+
36
+ hero = hero_card(
37
+ title="DATASET HEALTH",
38
+ value=f"{health.score}/100",
39
+ subtitle=f"Grade {health.grade} • {health.status}",
40
+ score=health.score,
41
+ border_style=_health_color(health.score),
42
+ )
43
+
44
+ cards = [
45
+ metric_card(
46
+ title="Missing",
47
+ value=f"{missing.missing_percentage:.1f}%",
48
+ subtitle=f"{missing.total_missing} values",
49
+ border_style=(
50
+ "green"
51
+ if missing.missing_percentage == 0
52
+ else "yellow"
53
+ if missing.missing_percentage <= 10
54
+ else "red"
55
+ ),
56
+ ),
57
+ metric_card(
58
+ title="Duplicates",
59
+ value=f"{duplicates.duplicate_percentage:.1f}%",
60
+ subtitle=f"{duplicates.total_duplicates} rows",
61
+ border_style=(
62
+ "green"
63
+ if duplicates.total_duplicates == 0
64
+ else "yellow"
65
+ if duplicates.duplicate_percentage <= 5
66
+ else "red"
67
+ ),
68
+ ),
69
+ metric_card(
70
+ title="ML Ready",
71
+ value="YES" if health.ml_ready else "NO",
72
+ subtitle="Training Status",
73
+ border_style=(
74
+ "green"
75
+ if health.ml_ready
76
+ else "red"
77
+ ),
78
+ ),
79
+ ]
80
+
81
+ metrics = Columns(
82
+ cards,
83
+ equal=True,
84
+ expand=True,
85
+ )
86
+
87
+ return Group(
88
+ hero,
89
+ metrics,
90
+ )
datapilot/ui/panels.py ADDED
@@ -0,0 +1,16 @@
1
+ from rich.console import RenderableType
2
+ from rich.panel import Panel
3
+
4
+
5
+ def title_panel(
6
+ content: RenderableType,
7
+ ) -> Panel:
8
+ """
9
+ Create the standard Datapilot title panel.
10
+ """
11
+
12
+ return Panel(
13
+ content,
14
+ expand=True,
15
+ border_style="accent",
16
+ )
@@ -0,0 +1,21 @@
1
+ """
2
+ Rich renderer for Datapilot reports.
3
+ """
4
+
5
+ from datapilot.core.report import Report
6
+
7
+ from .sections import (
8
+ render_header,
9
+ render_health,
10
+ render_summary,
11
+ )
12
+
13
+
14
+ def render_report(report: Report) -> None:
15
+ """
16
+ Render a complete Datapilot report.
17
+ """
18
+
19
+ render_header()
20
+ render_health(report)
21
+ render_summary(report)
@@ -0,0 +1,89 @@
1
+ """
2
+ Reusable rendering sections for Datapilot.
3
+ """
4
+
5
+ from rich.align import Align
6
+ from rich.table import Table
7
+ from rich.text import Text
8
+
9
+ from datapilot.core.report import Report
10
+
11
+ from .console import console
12
+ from .dashboard import render_dashboard
13
+ from .panels import title_panel
14
+
15
+
16
+ def render_header() -> None:
17
+ """
18
+ Render the Datapilot header.
19
+ """
20
+
21
+ header = Text(justify="center")
22
+
23
+ header.append(
24
+ "DATAPILOT\n",
25
+ style="title",
26
+ )
27
+
28
+ header.append(
29
+ "Data Quality Assessment & EDA\n",
30
+ style="info",
31
+ )
32
+
33
+ header.append(
34
+ "v0.1.0-alpha",
35
+ style="accent",
36
+ )
37
+
38
+ console.print(
39
+ title_panel(
40
+ Align.center(header)
41
+ )
42
+ )
43
+
44
+ console.print()
45
+
46
+
47
+ def render_summary(report: Report) -> None:
48
+ """
49
+ Render dataset summary.
50
+ """
51
+
52
+ summary = report.summary()
53
+
54
+ table = Table(
55
+ title="Dataset Overview",
56
+ show_header=False,
57
+ border_style="accent",
58
+ expand=True,
59
+ )
60
+
61
+ table.add_column(style="label", width=20)
62
+ table.add_column(style="value")
63
+
64
+ table.add_row("Rows", str(summary.rows))
65
+ table.add_row("Columns", str(summary.columns))
66
+ table.add_row(
67
+ "Memory",
68
+ f"{summary.memory_usage_mb:.2f} MB",
69
+ )
70
+ table.add_row(
71
+ "Column Names",
72
+ ", ".join(summary.column_names),
73
+ )
74
+
75
+ console.print(table)
76
+
77
+
78
+ def render_health(report: Report) -> None:
79
+ """
80
+ Render the Datapilot dashboard.
81
+ """
82
+
83
+ console.print()
84
+
85
+ console.print(
86
+ render_dashboard(report)
87
+ )
88
+
89
+ console.print()
datapilot/ui/tables.py ADDED
@@ -0,0 +1,21 @@
1
+ """
2
+ Reusable Rich tables for Datapilot.
3
+ """
4
+
5
+ from rich.table import Table
6
+
7
+
8
+ def create_table(title: str | None = None) -> Table:
9
+ """
10
+ Create a standard Datapilot table.
11
+ """
12
+
13
+ table = Table(
14
+ title=title,
15
+ show_header=True,
16
+ header_style="heading",
17
+ border_style="accent",
18
+ expand=True,
19
+ )
20
+
21
+ return table
datapilot/ui/theme.py ADDED
@@ -0,0 +1,20 @@
1
+ """
2
+ Datapilot Rich theme.
3
+ """
4
+
5
+ from rich.theme import Theme
6
+
7
+ DATAPILOT_THEME = Theme(
8
+ {
9
+ "title": "bold cyan",
10
+ "heading": "bold bright_blue",
11
+ "success": "bold green",
12
+ "warning": "bold yellow",
13
+ "error": "bold red",
14
+ "info": "cyan",
15
+ "score": "bold magenta",
16
+ "label": "bold white",
17
+ "value": "bright_white",
18
+ "accent": "bright_cyan",
19
+ }
20
+ )
@@ -0,0 +1,3 @@
1
+ """
2
+ Utility modules for Datapilot.
3
+ """
File without changes
@@ -0,0 +1,103 @@
1
+ Metadata-Version: 2.4
2
+ Name: datapilot-kit
3
+ Version: 0.3.0rc1
4
+ Summary: An open-source Python library for deterministic exploratory data analysis and dataset understanding.
5
+ Author: Avishkar D. Gopale
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/Aviii-3085/datapilot
8
+ Project-URL: Repository, https://github.com/Aviii-3085/datapilot
9
+ Project-URL: Issues, https://github.com/Aviii-3085/datapilot/issues
10
+ Project-URL: Documentation, https://github.com/Aviii-3085/datapilot/tree/main/docs
11
+ Keywords: eda,exploratory-data-analysis,data-analysis,data-science,dataset-profiling,machine-learning,analytics,python
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: Intended Audience :: Education
16
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Operating System :: OS Independent
22
+ Requires-Python: >=3.10
23
+ Description-Content-Type: text/markdown
24
+ License-File: LICENSE
25
+ Requires-Dist: pandas>=2.2
26
+ Requires-Dist: numpy>=2.0
27
+ Requires-Dist: scipy>=1.14
28
+ Requires-Dist: matplotlib>=3.9
29
+ Requires-Dist: plotly>=6.0
30
+ Requires-Dist: jinja2>=3.1
31
+ Requires-Dist: rich>=14.0
32
+ Requires-Dist: typer>=0.16
33
+ Provides-Extra: dev
34
+ Requires-Dist: black; extra == "dev"
35
+ Requires-Dist: ruff; extra == "dev"
36
+ Requires-Dist: mypy; extra == "dev"
37
+ Requires-Dist: pytest; extra == "dev"
38
+ Dynamic: license-file
39
+
40
+ # Datapilot
41
+
42
+ > **The first step after loading your dataset.**
43
+
44
+ Datapilot is an open-source Python library that automates exploratory data analysis by generating deterministic dataset insights, health assessments, statistical summaries, and professional HTML reports.
45
+
46
+ Every data project begins with understanding the data. Datapilot helps you understand your dataset before building machine learning models, dashboards, or AI-powered applications.
47
+
48
+ ---
49
+
50
+ ## Installation
51
+
52
+ ```bash
53
+ pip install datapilot-kit
54
+ ```
55
+
56
+ ---
57
+
58
+ ## Quick Start
59
+
60
+ ```python
61
+ import pandas as pd
62
+
63
+ from datapilot import analyze
64
+
65
+ df = pd.read_csv("dataset.csv")
66
+
67
+ report = analyze(df)
68
+ ```
69
+
70
+ ---
71
+
72
+ ## Features
73
+
74
+ - Dataset Summary
75
+ - Dataset Health Score
76
+ - Missing Value Analysis
77
+ - Duplicate Detection
78
+ - Data Type Analysis
79
+ - Statistical Summaries
80
+ - Outlier Detection
81
+ - Correlation Analysis
82
+ - Actionable Insights
83
+ - Professional HTML Reports
84
+
85
+ ---
86
+
87
+ ## Documentation
88
+
89
+ Project documentation is available in the `docs/` directory.
90
+
91
+ - Vision
92
+ - User Journey
93
+ - API Philosophy
94
+ - API Review
95
+ - Roadmap
96
+
97
+ ---
98
+
99
+ ## Status
100
+
101
+ 🚧 Datapilot v0.3 — Public Preview (In Development)
102
+
103
+ The project is currently being prepared for its first public release.
@@ -0,0 +1,44 @@
1
+ datapilot/__init__.py,sha256=1iKfhsQUiUf6KyhYxvxC37XQ6f8H6GojYr5q78xV8Pw,164
2
+ datapilot/analysis/__init__.py,sha256=9EbR5fqNuGfQxiJk16EX5vUn9Zek51q82Dm-5GQAb3U,41
3
+ datapilot/analysis/correlation.py,sha256=nKkdbncyxZMs1Ki1-o6xK9djpeOLofI3qa5OHe-fDcI,1439
4
+ datapilot/analysis/datatype.py,sha256=9uBkx50POu_ORVR_dWmGYagwk8AtwWahJROJJeNDEQY,1112
5
+ datapilot/analysis/duplicate.py,sha256=jNK6IT7Ylcywht1ncZpTmm5HCPvOE_RQZh_oJgpnal8,842
6
+ datapilot/analysis/health.py,sha256=09ZQuevCpw9OZItvxDJ1MbWRABSk9yo1qhb1QX7tfo8,4193
7
+ datapilot/analysis/insights.py,sha256=N0EfQ2jpQQowj5OGBFLG6Z37YflpXEKuDAnwyY-BMig,2302
8
+ datapilot/analysis/missing.py,sha256=Iry3ezChgsvspEPHplsdaNNwNVZidbqujveQtPvSS7U,1323
9
+ datapilot/analysis/models.py,sha256=vUkA4K70mYE0rfZTef9uo6J2swgqDpVPBclGsqiVgDM,2143
10
+ datapilot/analysis/outliers.py,sha256=zYp7wQH2Ey4FpMi3vrkOTiCDe0PgT2POXDjBgYa2C_Q,1863
11
+ datapilot/analysis/statistics.py,sha256=A67ASq9KMVuX7tKlJC1jDtYdSiz2DGMp-7g3kijCptU,1477
12
+ datapilot/analysis/summary.py,sha256=9ipuvUnDTodSFLCJ_Kh5V7uF2OJlmcmPow1GOe1Q7m4,754
13
+ datapilot/api/__init__.py,sha256=b5VKEwfbHuew4bpYVXrF1NEaLiJZW2JH8kZgRBGPmA8,92
14
+ datapilot/api/analyze.py,sha256=QLRtHfq5ZDE618jd_v0PX_ViZMGxYiLHBIgGMbUlHIc,311
15
+ datapilot/assets/style.css,sha256=hsZTFort0p9XNf1PdSos0dRmAaGNtlkHGcJVJqecuS8,27381
16
+ datapilot/cli/__init__.py,sha256=xevHiFgVAsWkTrnwCQBQa04UUx0R2EyQl8BBTz4b6VQ,47
17
+ datapilot/core/__init__.py,sha256=x1qYdHlerjMZsgaGTyfy0taPaso1a8Z_TmkA36m9fQo,37
18
+ datapilot/core/loader.py,sha256=Mdr9IhvY0xVYLa8hsySrmeHIUDJps6zeiGV-qo5nCkg,1462
19
+ datapilot/core/report.py,sha256=saqSffuXzF5F8i-_67Pq_Wku_gJo1XhfSdpuTmaEFSE,2870
20
+ datapilot/interpretation/__init__.py,sha256=M-EtGXnJzBU2zn0DOYE9bEdH7uqb9n6xK8ahdkS-odE,47
21
+ datapilot/llm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
+ datapilot/recommendation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
+ datapilot/reporting/__init__.py,sha256=_oqlarqmgpkSYlyUUzME1-bwBaWy-1zRXDVe1NP2olo,44
24
+ datapilot/reporting/fragments.py,sha256=7VScGkdWxCGIGjAshwBNP5-YvA0xrvN31cZ7qRaP6Zk,5799
25
+ datapilot/reporting/html.py,sha256=kFwjXTISWv1U4vl-OHpuptXj0I3YzswgPlCN7P7xHgk,875
26
+ datapilot/reporting/placeholders.py,sha256=iNFbs1CrZkmtUbBGs3SqDp0OkNOxx14dQJlHX80BRk8,3342
27
+ datapilot/reporting/renderer.py,sha256=CYBcXBHVd35v4SsEulGGYGkTmeGI0w6FJeapn4LA1vo,1119
28
+ datapilot/templates/report.html,sha256=jZ521w2I_GTJV3DGJo1icpSEYCZKT-jmm4Dd36uA1DI,22496
29
+ datapilot/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
+ datapilot/ui/cards.py,sha256=3JI6MWFyg41dj-tGRSPH4ovGFPmEWFD2Jr-jKVXudqA,1416
31
+ datapilot/ui/console.py,sha256=JvEKX4CD-bIshbNj5KkM41RTfy70iBpBZpE0bq9h08M,193
32
+ datapilot/ui/dashboard.py,sha256=Qt133v0Ls7pk1Hc5T9ZEg27rYW5JvJlWivakDBk1uVQ,2206
33
+ datapilot/ui/panels.py,sha256=_w4wbffo8Xqgiqt27I2SrtJ_Z1CcRJj3oK6WRo8Dc3Y,300
34
+ datapilot/ui/renderer.py,sha256=ZgBYsXPuEBPXCJUAJK7NnVKoHfdHlR0y6yL-re3pthw,366
35
+ datapilot/ui/sections.py,sha256=xG_QWWsB_wwMW-eAA9K73PUVJ0ZIvsCxZROvdC9khd0,1676
36
+ datapilot/ui/tables.py,sha256=jKOjxDBizFbC6TKxf26bQDOV1cuyPFCN-E_ycg_kcI8,378
37
+ datapilot/ui/theme.py,sha256=yAvJRsyjqaryd0_xBrR9hS6b4WPCCt77D3zMQleH_Gc,437
38
+ datapilot/utils/__init__.py,sha256=lxtSihEb0zCIIxC--B3hBLjJo1m643peP-CWCqNZql0,40
39
+ datapilot/visualization/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
+ datapilot_kit-0.3.0rc1.dist-info/licenses/LICENSE,sha256=DZWFtv_Z13xjXjMR463oHoHV6U-pbBEvzReSk2Gtu5Q,1091
41
+ datapilot_kit-0.3.0rc1.dist-info/METADATA,sha256=WwpoSocH8eevaeC0Fs3bIrWnX_ebztXEm6Aa4l3iSIU,2902
42
+ datapilot_kit-0.3.0rc1.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
43
+ datapilot_kit-0.3.0rc1.dist-info/top_level.txt,sha256=gAOFOdwB00vcxv74y4M1J-nQtPvEatU8-mYViEBcToo,10
44
+ datapilot_kit-0.3.0rc1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (83.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Avishkar Gopale
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 @@
1
+ datapilot