Skip to main content

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

  1. Make sure you have Python 3.8 or newer installed
  2. Install the required dependencies:
    pip install -r requirements.txt
    

Usage

  1. Run the application:

    python sqls.py
    
  2. The application will automatically connect to a local DuckDB database named 'pool.db'

  3. 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)
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlshell-0.1.1.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sqlshell-0.1.1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file sqlshell-0.1.1.tar.gz.

File metadata

  • Download URL: sqlshell-0.1.1.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

Hashes for sqlshell-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f82034c9b7e7ffbc779635742b952daaeabd9fa645861e3e793573a0764bdd76
MD5 258ff386c1d673aeb30bf92976362b7a
BLAKE2b-256 2610204d03a576a616d825a6edff34f49c5f1f21cc12c6de8b61523b813eb63b

See more details on using hashes here.

File details

Details for the file sqlshell-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sqlshell-0.1.1-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

Hashes for sqlshell-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a6a7a31cbf188dd80f4ba4da21fef2ed1dfd95b15c2d9e41a6c7dd4aac7e1a99
MD5 2b15d0c584332bd87a86d1b7d7f6dfaf
BLAKE2b-256 cf5c619d963c486d37afd1c4263460bbfecae4f9dc8d5168f4516939893bead7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page