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 hashes)
Built Distribution
Close
Hashes for prql_python-0.0.3-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9155ede9d1b60c002748d8a64e2b2a429fdef9f6885fa039595420292b2c215d |
|
MD5 | 44bac4b177704ae599c9b3929be75fb1 |
|
BLAKE2b-256 | f1a212764319f640f3a736676697726398934f4bbcca202012a719013770e9d8 |