pyprql 0.5.9
pip install pyprql==0.5.9
Newer version available (0.13.0)
Released:
Python TUI database client that supports prql
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (Apache-2.0)
- Author: qorrect
- Requires: Python >=3.8, <4.0
Classifiers
- License
- Programming Language
- Typing
Project description
PyPrql
PyPRQL contains these tools:
- pyprql.pandas_accessor - Pandas integration for PRQL
- pyprql.magic - IPython magic for connecting to databases using
%%prql
- pyprql.cli - TUI for databases using PRQL
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 out the Pandas integration
import pandas as pd
import pyprql.pandas_accessor
df = (...)
results_df = df.prql.query('select [age,name,occupation] | filter age > 21')
Try out the Jupyter Magic
In [1]: %load_ext pyprql.magic
In [2]: %prql postgresql://user:password@localhost:5432/database
In [3]: %%prql
...: from p
...: group categoryID (
...: aggregate [average unitPrice]
...: )
In [4]: %%prql results <<
...: from p
...: aggregate [min unitsInStock, max unitsInStock]
Try out the TUI
With a CSV file:
curl https://people.sc.fsu.edu/~jburkardt/data/csv/zillow.csv
pyprql zillow.csv
With a Database:
pyprql 'postgresql://user:password@localhost:5432/database'
PRQL> show tables
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (Apache-2.0)
- Author: qorrect
- Requires: Python >=3.8, <4.0
Classifiers
- License
- Programming Language
- Typing
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyprql-0.5.9.tar.gz
.
File metadata
- Download URL: pyprql-0.5.9.tar.gz
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.2 readme-renderer/37.3 requests/2.28.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/5.1.0 keyring/23.11.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f7a40ce0a9a4e68fa88b90dc64b4b295261e24b50c53f6ea911f3999b59d91f |
|
MD5 | 9f69f77e5aa3bc77dfee80a2a85d33c3 |
|
BLAKE2b-256 | 661e008b1cdd9d88fb0317dbd8fd23855095596c3a1ba789824383051353cbc1 |
File details
Details for the file pyprql-0.5.9-py3-none-any.whl
.
File metadata
- Download URL: pyprql-0.5.9-py3-none-any.whl
- Upload date:
- Size: 23.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.2 readme-renderer/37.3 requests/2.28.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/5.1.0 keyring/23.11.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8057b29d71a8d670cc7d75a7a1a5491aa614557ac3a3b97060d36cf5648d36ab |
|
MD5 | 01695e39c8c8bac82a8bee0c1f323eda |
|
BLAKE2b-256 | f37a530206a90b6cc3511187f436ca407bdb32540c093d9d063f62449ed80ab2 |