sqlshell 0.1.5__py3-none-any.whl → 0.1.8__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.
Potentially problematic release.
This version of sqlshell might be problematic. Click here for more details.
- sqlshell/__init__.py +4 -2
- sqlshell/create_test_data.py +50 -0
- sqlshell/data/create_test_data.py +137 -0
- sqlshell/editor.py +355 -0
- sqlshell/main.py +1510 -180
- sqlshell/resources/__init__.py +1 -0
- sqlshell/resources/create_icon.py +53 -0
- sqlshell/resources/create_splash.py +66 -0
- sqlshell/resources/splash_screen.gif +0 -0
- sqlshell/splash_screen.py +177 -0
- sqlshell/sqlshell/create_test_data.py +4 -23
- sqlshell/sqlshell_demo.png +0 -0
- sqlshell/syntax_highlighter.py +123 -0
- sqlshell-0.1.8.dist-info/METADATA +120 -0
- sqlshell-0.1.8.dist-info/RECORD +21 -0
- {sqlshell-0.1.5.dist-info → sqlshell-0.1.8.dist-info}/WHEEL +1 -1
- sqlshell-0.1.5.dist-info/METADATA +0 -92
- sqlshell-0.1.5.dist-info/RECORD +0 -11
- {sqlshell-0.1.5.dist-info → sqlshell-0.1.8.dist-info}/entry_points.txt +0 -0
- {sqlshell-0.1.5.dist-info → sqlshell-0.1.8.dist-info}/top_level.txt +0 -0
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.2
|
|
2
|
-
Name: sqlshell
|
|
3
|
-
Version: 0.1.5
|
|
4
|
-
Summary: A powerful SQL shell with GUI interface for data analysis
|
|
5
|
-
Home-page: https://github.com/yourusername/sqlshell
|
|
6
|
-
Author: SQLShell Team
|
|
7
|
-
License: MIT
|
|
8
|
-
Project-URL: Homepage, https://github.com/oyvinrog/SQLShell
|
|
9
|
-
Keywords: sql,data analysis,gui,duckdb
|
|
10
|
-
Classifier: Development Status :: 3 - Alpha
|
|
11
|
-
Classifier: Intended Audience :: Developers
|
|
12
|
-
Classifier: Programming Language :: Python :: 3
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
-
Requires-Python: >=3.8
|
|
18
|
-
Description-Content-Type: text/markdown
|
|
19
|
-
Requires-Dist: pandas>=2.0.0
|
|
20
|
-
Requires-Dist: numpy>=1.24.0
|
|
21
|
-
Requires-Dist: PyQt6>=6.4.0
|
|
22
|
-
Requires-Dist: duckdb>=0.9.0
|
|
23
|
-
Requires-Dist: openpyxl>=3.1.0
|
|
24
|
-
Requires-Dist: pyarrow>=14.0.1
|
|
25
|
-
Requires-Dist: fastparquet>=2023.10.1
|
|
26
|
-
Requires-Dist: xlrd>=2.0.1
|
|
27
|
-
Dynamic: home-page
|
|
28
|
-
Dynamic: requires-python
|
|
29
|
-
|
|
30
|
-
# SQL Shell
|
|
31
|
-
|
|
32
|
-
A GUI application that provides a SQL REPL interface for querying Excel and parquet files (more to come!)
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-

|
|
36
|
-
|
|
37
|
-
## Features
|
|
38
|
-
|
|
39
|
-
- SQL query interface with syntax highlighting
|
|
40
|
-
- Support for querying local DuckDB database (pool.db)
|
|
41
|
-
- Import and query Excel files (.xlsx, .xls) and CSV files
|
|
42
|
-
- Results displayed in a clear, tabular format
|
|
43
|
-
- Keyboard shortcuts (Ctrl+Enter to execute queries)
|
|
44
|
-
|
|
45
|
-
## Installation
|
|
46
|
-
|
|
47
|
-
1. Make sure you have Python 3.8 or newer installed
|
|
48
|
-
2. Install the required dependencies:
|
|
49
|
-
```bash
|
|
50
|
-
pip install -r requirements.txt
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
You can also do:
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
pip install sqlshell
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
## Usage
|
|
60
|
-
|
|
61
|
-
1. Run the application:
|
|
62
|
-
```bash
|
|
63
|
-
python sqls.py
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
2. The application will automatically connect to a local DuckDB database named 'pool.db'
|
|
67
|
-
|
|
68
|
-
3. To query Excel files:
|
|
69
|
-
- Click the "Browse Excel" button
|
|
70
|
-
- Select your Excel file
|
|
71
|
-
- The file will be loaded as a table named 'imported_data'
|
|
72
|
-
- Query the data using SQL commands (e.g., `SELECT * FROM imported_data`)
|
|
73
|
-
|
|
74
|
-
4. Enter SQL queries in the top text area
|
|
75
|
-
- Press Ctrl+Enter or click "Execute" to run the query
|
|
76
|
-
- Results will be displayed in the bottom panel
|
|
77
|
-
|
|
78
|
-
## Example Queries
|
|
79
|
-
|
|
80
|
-
```sql
|
|
81
|
-
select * from sample_sales_data cd inner join product_catalog pc on pc.productid = cd.productid limit 3
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
you can also do multiple statements, i.e:
|
|
85
|
-
|
|
86
|
-
```sql
|
|
87
|
-
create or replace temporary view test_v as
|
|
88
|
-
select * from sample_sales_data cd
|
|
89
|
-
inner join product_catalog pc on pc.productid = cd.productid;
|
|
90
|
-
|
|
91
|
-
select distinct productid from test_v ;
|
|
92
|
-
```
|
sqlshell-0.1.5.dist-info/RECORD
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
sqlshell/__init__.py,sha256=uX17oPpPrw-T_yH8mzb84270IT_ejINCBO1q5lohE0Y,129
|
|
2
|
-
sqlshell/main.py,sha256=-1x8_JAT6xAMPQsXU64IBPhh1s1_0T7GcUml8Rj_rvs,21031
|
|
3
|
-
sqlshell/setup.py,sha256=bAIXTpgAHhBRmPdT13Klzq16cjd4w4NOYSbyV_rxjlQ,1245
|
|
4
|
-
sqlshell/sqlshell/__init__.py,sha256=6Wp5nabfTzH5rkC-2jYo_ZjCuw8utmj21Jpy8vBuliI,100
|
|
5
|
-
sqlshell/sqlshell/create_test_data.py,sha256=sUTcf50V8-bVwYV2VNTLK65c-iHiU4wb99By67I10zM,5404
|
|
6
|
-
sqlshell/sqlshell/create_test_databases.py,sha256=oqryFJJahqLFsAjBFM4r9Fe1ea7djDcRpT9U_aBf7PU,3573
|
|
7
|
-
sqlshell-0.1.5.dist-info/METADATA,sha256=kIMqqHqBJIzLyNTLnfh1QEb6cZsHIH5Lo8wvN2jFNqQ,2559
|
|
8
|
-
sqlshell-0.1.5.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
|
9
|
-
sqlshell-0.1.5.dist-info/entry_points.txt,sha256=Kd0fOvyOW7UiTgTVY7abVOmDIH2Y2nawGTp5kVadac4,44
|
|
10
|
-
sqlshell-0.1.5.dist-info/top_level.txt,sha256=ahwsMFhvAqI97ZkT2xvHL5iZCO1p13mNiUOFkdSFwms,9
|
|
11
|
-
sqlshell-0.1.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|