A powerful SQL shell with GUI interface for data analysis
Project description
SQL Shell
A GUI application that provides a SQL REPL interface for querying DuckDB databases and Excel files.
Features
- SQL query interface with syntax highlighting
- Support for querying local DuckDB database (pool.db)
- Import and query Excel files (.xlsx, .xls) and CSV files
- Results displayed in a clear, tabular format
- Keyboard shortcuts (Ctrl+Enter to execute queries)
Installation
- Make sure you have Python 3.8 or newer installed
- Install the required dependencies:
pip install -r requirements.txt
Usage
-
Run the application:
python sqls.py -
The application will automatically connect to a local DuckDB database named 'pool.db'
-
To query Excel files:
- Click the "Browse Excel" button
- Select your Excel file
- The file will be loaded as a table named 'imported_data'
- Query the data using SQL commands (e.g.,
SELECT * FROM imported_data)
-
Enter SQL queries in the top text area
- Press Ctrl+Enter or click "Execute" to run the query
- Results will be displayed in the bottom panel
Example Queries
select * from sample_sales_data cd inner join product_catalog pc on pc.productid = cd.productid limit 3
you can also do multiple statements, i.e:
create or replace temporary view test_v as
select * from sample_sales_data cd
inner join product_catalog pc on pc.productid = cd.productid;
select distinct productid from test_v ;
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sqlshell-0.1.3.tar.gz.
File metadata
- Download URL: sqlshell-0.1.3.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1b7f5e5cc68b2e3f0d5066c5a1a33ca94f4e248aae7345a2618f5e3aa98a2ce
|
|
| MD5 |
a7959aca705b9bd30d8c2fab11666066
|
|
| BLAKE2b-256 |
e33bf4f45a059e791e0cd69cc9c74fc43f73ecf2a3c4a14eed7900dcfc3b1617
|
File details
Details for the file sqlshell-0.1.3-py3-none-any.whl.
File metadata
- Download URL: sqlshell-0.1.3-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
beec7c20a9fc6e17b56c9630e45f354d4cc456dc135562c4ace37a355078524f
|
|
| MD5 |
73eb1583653d4ec0a4d5d985115d6fbc
|
|
| BLAKE2b-256 |
2c9dcd1af5956d3f34ef914a55d917a2eecbe5f1e57c312df76d35f079db52ad
|