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 Excel and parquet files (more to come!)

SQLShell Interface

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
    

You can also do:

pip install sqlshell

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.5.tar.gz (11.1 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.5-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sqlshell-0.1.5.tar.gz
  • Upload date:
  • Size: 11.1 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.5.tar.gz
Algorithm Hash digest
SHA256 9e309a0cca66d8815bb783b9b1f2a076f6517e61fad4ec32dd34aa0da975d2df
MD5 5af712d7a8739881c6547a305a2c4b08
BLAKE2b-256 f4744f236888802a6365f917eff120874d1a3ffae8f9f5d5c1e25122f95e01ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sqlshell-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 11.8 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ed999d584a40fb2879be76142447c54179404a0dde0e569fbb0261897cd09e8d
MD5 550e37640cd790779fa3948954e03880
BLAKE2b-256 7c7c0eb273bbaf666b57e99b02ac4d0808568f7b9f00f2e6b27ff33e97bd2db1

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