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.1.tar.gz
(51.9 kB
view hashes)
Built Distributions
Close
Hashes for prql_python-0.0.1-cp37-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aeab3a4e8f093c9f165dabdab2dfdf617c18fe9750f868b2601b861b88187450 |
|
MD5 | 2242cd5d89c9c7fa374e39b6966fc902 |
|
BLAKE2b-256 | 66de39df10ec5d8e42dc42ccf3022d9b057a931a54812dfef88bf5c9043e0a1f |
Close
Hashes for prql_python-0.0.1-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae4af869de194891711dcf2885dbc910fd63b65eedcb6b241f682ff67ada0e28 |
|
MD5 | 9ebb6b17004e43291331055d66a0305f |
|
BLAKE2b-256 | 5e37e7f4a82e6c171d82f97cd7106a8ef0dac925ab35f66524b8daaa39416a63 |
Close
Hashes for prql_python-0.0.1-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3ae7cb29dd9ae1a675e9e684cdf4cffd0ded6ccc1de0c34566b65226c9fd8d0 |
|
MD5 | fc1b5a5dbbe0afa801afeb991c6cb79a |
|
BLAKE2b-256 | 5b3dce9a7b7c28c4d1a284b63d341fbe83bf428382050deb29d900bd54b00fc0 |