zaturn 0.1.1__py3-none-any.whl → 0.1.2__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.
- zaturn/config.py +1 -2
- {zaturn-0.1.1.dist-info → zaturn-0.1.2.dist-info}/METADATA +21 -18
- {zaturn-0.1.1.dist-info → zaturn-0.1.2.dist-info}/RECORD +7 -7
- {zaturn-0.1.1.dist-info → zaturn-0.1.2.dist-info}/WHEEL +0 -0
- {zaturn-0.1.1.dist-info → zaturn-0.1.2.dist-info}/entry_points.txt +0 -0
- {zaturn-0.1.1.dist-info → zaturn-0.1.2.dist-info}/licenses/LICENSE +0 -0
- {zaturn-0.1.1.dist-info → zaturn-0.1.2.dist-info}/top_level.txt +0 -0
zaturn/config.py
CHANGED
@@ -47,7 +47,7 @@ if not source_list:
|
|
47
47
|
print("No data sources provided. Loading example dataset for demonstration.")
|
48
48
|
print(f"\nTo load your datasets, add them to {SOURCES_FILE} (one source URL or full file path per line)")
|
49
49
|
print("\nOr use command line args to specify data sources:")
|
50
|
-
print("
|
50
|
+
print("zaturn_mcp sqlite:///path/to/mydata.db /path/to/my_file.csv")
|
51
51
|
print(f"\nNOTE: Sources in command line args will be ignored if sources are found in {SOURCES_FILE}")
|
52
52
|
|
53
53
|
SOURCES = {}
|
@@ -88,7 +88,6 @@ for s in source_list:
|
|
88
88
|
|
89
89
|
# Other Settings
|
90
90
|
RETURN_IMAGES = not args.noimg
|
91
|
-
print(SOURCES)
|
92
91
|
|
93
92
|
|
94
93
|
|
@@ -1,11 +1,10 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: zaturn
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.2
|
4
4
|
Summary: AI Data Analysis MCP
|
5
5
|
Author-email: Karthik Devan <krtdvn@gmail.com>
|
6
6
|
Maintainer-email: Karthik Devan <krtdvn@gmail.com>
|
7
7
|
Project-URL: Homepage, https://github.com/kdqed/zaturn
|
8
|
-
Project-URL: Changelog, https://github.com/kdqed/zaturn/releases
|
9
8
|
Project-URL: Issues, https://github.com/kdqed/zaturn/issues
|
10
9
|
Project-URL: CI, https://github.com/kdqed/zaturn/actions
|
11
10
|
Requires-Python: >=3.11
|
@@ -27,7 +26,7 @@ Requires-Dist: tabulate>=0.9.0
|
|
27
26
|
Dynamic: license-file
|
28
27
|
|
29
28
|
<p align="center">
|
30
|
-
<img src="brand/logo.png" width="128" height="128">
|
29
|
+
<img src="https://github.com/kdqed/zaturn/raw/main/brand/logo.png" width="128" height="128">
|
31
30
|
</p>
|
32
31
|
|
33
32
|
# Zaturn: Your Co-Pilot For Data Analytics & BI
|
@@ -69,23 +68,19 @@ Using an MCP like Zaturn will keep your data where it is, and enable AI to draft
|
|
69
68
|
## Installation & Setup
|
70
69
|
1. Install [uv](https://docs.astral.sh/uv/getting-started/installation/#installation-methods)
|
71
70
|
|
72
|
-
2. Install Zaturn with uv:
|
71
|
+
2. Install [Zaturn](https://pypi.org/project/zaturn/) with uv:
|
73
72
|
```bash
|
74
|
-
|
73
|
+
uv tool install zaturn
|
75
74
|
```
|
76
75
|
|
77
76
|
3. Add to MCP config, with data sources:
|
78
77
|
```json
|
79
78
|
"mcpServers": {
|
80
79
|
"zaturn": {
|
81
|
-
"command": "
|
80
|
+
"command": "zaturn_mcp",
|
82
81
|
"args": [
|
83
|
-
"run",
|
84
|
-
"--directory",
|
85
|
-
"/path/to/downloaded/folder",
|
86
|
-
"mcp_server.py",
|
87
|
-
"mysql+pymysql://username:password@host:3306/dbname",
|
88
82
|
"postgresql://username:password@host:port/dbname",
|
83
|
+
"mysql+pymysql://username:password@host:3306/dbname",
|
89
84
|
"sqlite:////full/path/to/sample_dbs/northwind.db",
|
90
85
|
"/full/path/to/sample_dbs/titanic.parquet",
|
91
86
|
"/full/path/to/sample_dbs/ny_aq.csv",
|
@@ -95,10 +90,22 @@ $ uv tool install zaturn
|
|
95
90
|
}
|
96
91
|
```
|
97
92
|
|
98
|
-
|
93
|
+
OR add a `sources.txt` to the Zaturn config directory:
|
94
|
+
```
|
95
|
+
postgresql://username:password@host:port/dbname
|
96
|
+
mysql+pymysql://username:password@host:3306/dbname
|
97
|
+
sqlite:////full/path/to/sample_dbs/northwind.db
|
98
|
+
/full/path/to/sample_dbs/titanic.parquet
|
99
|
+
/full/path/to/sample_dbs/ny_aq.csv
|
100
|
+
/full/path/to/sample_dbs/duckdb_sample.duckdb
|
101
|
+
```
|
102
|
+
|
103
|
+
This file needs to be at `~/.config/zaturn/sources.txt` on Linux/MacOS and at `%APPDATA%\zaturn\sources.txt` on Windows.
|
104
|
+
|
105
|
+
If your MCP client does not support image rendering, add the `--noimg` argument:
|
99
106
|
```json
|
100
107
|
...
|
101
|
-
|
108
|
+
"args": [
|
102
109
|
"--noimg",
|
103
110
|
"mysql+pymysql://username:password@host:3306/dbname",
|
104
111
|
...
|
@@ -114,10 +121,6 @@ You are a helpful data analysis assistant. Use only the tool provided data sourc
|
|
114
121
|
```
|
115
122
|
User: List the top 5 customers by revenue for Northwind
|
116
123
|
AI:
|
117
|
-
[04/08/25 15:16:47] INFO Processing request of type ListToolsRequest server.py:534
|
118
|
-
[04/08/25 15:16:51] INFO Processing request of type CallToolRequest server.py:534
|
119
|
-
[04/08/25 15:16:53] INFO Processing request of type CallToolRequest server.py:534
|
120
|
-
[04/08/25 15:16:55] INFO Processing request of type CallToolRequest server.py:534
|
121
124
|
The top 5 customers by revenue for Northwind are:
|
122
125
|
|
123
126
|
1. B's Beverages with a revenue of $6,154,115.34
|
@@ -151,4 +154,4 @@ If you have any specific requirements please feel free to raise an issue.
|
|
151
154
|
|
152
155
|
## Example Dataset Credits
|
153
156
|
|
154
|
-
|
157
|
+
The [pokemon dataset compiled by Sarah Taha and PokéAPI](https://www.kaggle.com/datasets/sarahtaha/1025-pokemon) has been included under the [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) license for demonstration purposes.
|
@@ -1,12 +1,12 @@
|
|
1
1
|
zaturn/__init__.py,sha256=v4t5fkRuIJFE-SBxCa5pBjZv0EoC0eWK75nU9iaa7Rg,267
|
2
|
-
zaturn/config.py,sha256=
|
2
|
+
zaturn/config.py,sha256=gF5M6Agmixw2A4vpWqIF3ICVnClPeASA51dhp1bkk04,3221
|
3
3
|
zaturn/core.py,sha256=sn2oliWVDqhYSAwSe5VbhNamaKAsnlrT3oc6uzffzs4,3267
|
4
4
|
zaturn/query_utils.py,sha256=zyQjcRnPKGHZdf0XHzQeMxHw9vieZIwXhBbVGP87ml4,2801
|
5
5
|
zaturn/visualizations.py,sha256=Dj08msgZ_DIMEVvJIlybT3cIA3GNkcXVOa9TJsHK2yo,4551
|
6
6
|
zaturn/example_data/all_pokemon_data.csv,sha256=SUlGHHWbehuLg-ch1YUrQ6-xBtqHGw6rIkyn70fAgCk,130893
|
7
|
-
zaturn-0.1.
|
8
|
-
zaturn-0.1.
|
9
|
-
zaturn-0.1.
|
10
|
-
zaturn-0.1.
|
11
|
-
zaturn-0.1.
|
12
|
-
zaturn-0.1.
|
7
|
+
zaturn-0.1.2.dist-info/licenses/LICENSE,sha256=mZSuFlbEBZGl0-8ULRMLdRDbhau5hrWRNQOjytYeaug,1070
|
8
|
+
zaturn-0.1.2.dist-info/METADATA,sha256=fyeW0ljonWfL4krOO9Wfm_4etUXRRcl47JeZ_KphRI4,5731
|
9
|
+
zaturn-0.1.2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
10
|
+
zaturn-0.1.2.dist-info/entry_points.txt,sha256=N1UZC2zvod92_Brs4A2xZiAnt-iGLBNryglXfwhxfj4,43
|
11
|
+
zaturn-0.1.2.dist-info/top_level.txt,sha256=KLUnwQwVZkfd5YCnnqR35MOOs8KLhanPGelvmRo2MVA,7
|
12
|
+
zaturn-0.1.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|