Skip to main content

Python TUI database client that supports prql

Project description

PyPrql

Project Status: Active – The project has reached a stable, usable state and is being actively developed. PyPI - License PyPI PyPI - Python Version

Documentation Status Discord GitHub contributors GitHub Repo stars

CI/CD codecov

Codestyle: Black Imports: isort

Python TUI for CSV files and database connections. See prql-python for just bindings.

For docs, Check out the PyPRQL Docs, and the PRQL Book.

This project is maintained by @charlie-sanders and @rbpatt2019

Installation

pip install pyprql

Try it out

CSV file

curl https://people.sc.fsu.edu/~jburkardt/data/csv/zillow.csv
pyprql zillow.csv

Database

pyprql "sqlite:///your_database.db"
PRQL> show tables

The pyprql tool

  • pyprql can connect to any database that SQLAlchemy supports, execute pyprql without arguments for docs on how to install drivers.
  • pyprql can connect to CSV files, replace the connection string with the file path and it will load the CSV into a temporary SQLite database.
  • pyprql can save the results with a | to csv ${filename} transform at the end of the query
  • pyprql has auto-completion on table names and table aliases with tab, and history-completion with alt-f

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

pyprql-0.5.4.tar.gz (20.6 kB view hashes)

Uploaded Source

Built Distribution

pyprql-0.5.4-py3-none-any.whl (22.7 kB view hashes)

Uploaded Python 3

Supported by

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