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.

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
    

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.4.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.4-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sqlshell-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 44c18606111f960eb67c345734fa7201936311a3b76a891b9ec6d750228170fe
MD5 64ea9ffece368f9972a124ef17717be0
BLAKE2b-256 20b13d72ec75a51d6f4b9480a5c55bfbee8f55328f8057b1f02bc47ed90b9ea5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sqlshell-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4a9fadc0cfcdf30d0e592cb59562cc1b8f204cd9bbc5f40e793651b89d076b11
MD5 47cce624a8c41df8306e935d38ebdb65
BLAKE2b-256 276f4e900f291050cf2010e6d6b2736a2a1de0e9f4d1ab36f9710530d25e7fa0

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