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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sqlshell-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 8f4abd9213256f58f0fbfe37265e1a98523de008903342053bef31b72d20a86a
MD5 682caea402c47910a3b2472636c137a3
BLAKE2b-256 f4c322ef5a3a2bb651fbc01ed0d7d190f19fe7554d5bcbcf463e77e72cd1f597

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sqlshell-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 639a655d16c421620d5c671d4bdde2a628a5b09cb1019c0b27edd3213497af14
MD5 35f8534275bbacd9c947aa8a82a56e14
BLAKE2b-256 8d90f2ba5052195561f2a8d48d11ff59ea1dc1b8849a1479b469218db58e9880

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