No project description provided
Project description
prql-python
prql-python
exposes the prql-compiler rust package via the python method to_sql(query:str)->str
Installation
pip install prql-python
Usage
import prql_python as prql
prql_query = '''
from employees
join salaries [emp_no]
aggregate by:[emp_no, gender] [
emp_salary: average salary
]
join departments [dept_no]
'''
sql = prql.to_sql(prql_query)
Relies on pyo3 for all the magic.
#[pyfunction]
pub fn to_sql(query: &str) -> PyResult<String> {}
fn prql_python(_py: Python, m: &PyModule) -> PyResult<()> {}
Project details
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
prql_python-0.0.3.tar.gz
(63.3 kB
view details)
Built Distribution
File details
Details for the file prql_python-0.0.3.tar.gz
.
File metadata
- Download URL: prql_python-0.0.3.tar.gz
- Upload date:
- Size: 63.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ad7e72bb41cec3e25ca09c710b1c3e5ee094653b34b1187f23d8ad607fa06fd |
|
MD5 | f6087da55abe88c12920c19c536e22b2 |
|
BLAKE2b-256 | c779688d2583d2f64821ff25fcd9d2ad49d336fbb24b7c12fceef2f5c529b3fd |
File details
Details for the file prql_python-0.0.3-cp39-cp39-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: prql_python-0.0.3-cp39-cp39-macosx_10_7_x86_64.whl
- Upload date:
- Size: 653.8 kB
- Tags: CPython 3.9, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9155ede9d1b60c002748d8a64e2b2a429fdef9f6885fa039595420292b2c215d |
|
MD5 | 44bac4b177704ae599c9b3929be75fb1 |
|
BLAKE2b-256 | f1a212764319f640f3a736676697726398934f4bbcca202012a719013770e9d8 |