A implementation of PartiQL
Project description
partiql-py
An implementation of PartiQL written in Rust
Document
Installation
pip install partiql
poetry add partiql
Usage
import partiql
def test_evaluate():
input = """
{
"SHELL": "/bin/bash",
"NAME": "my machine name",
"PWD": "/home/fuyutarow/partiql-rs",
"LOGNAME": "fuyutarow",
"HOME": "/home/fuyutarow",
"LANG": "C.UTF-8",
"USER": "fuyutarow",
"HOSTTYPE": "x86_64",
"_": "/usr/bin/env"
}
"""
expected = """[{"NAME":"my machine name","LOGNAME":"fuyutarow"}]"""
assert (
partiql.evaluate(
input,
sql,
"SELECT NAME, LOGNAME",
"json",
"json",
)
== expected
)
Test
makers test:py
Familiy
content | lang | package |
---|---|---|
pq | CLI (brew, scoop) | |
partiql-rs | Rust (cargo) | https://crates.io/crates/partiql-rs |
partiql-js | JavaScript (npm) | https://www.npmjs.com/package/partiql-js |
partiql-py | Python (pip) | https://pypi.org/project/partiql |
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for partiql-0.202106.5-cp39-cp39-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b015a563d65a11f8e9d196ec457ab30c132f6506dfe38e39c7e24fbbc57864a9 |
|
MD5 | 0c5f600b56c14a3e376fb5794434c24d |
|
BLAKE2b-256 | 5964e582cadc7aec812347170ef9443937e1f05379e914df2981856cfb458d36 |
Close
Hashes for partiql-0.202106.5-cp36-cp36m-manylinux_2_24_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 012be4c7867433e4179717e94c4b97b58848a582b6316f6cdadb8f89650754c6 |
|
MD5 | 7fdc706630a556ec8ea725de609df09e |
|
BLAKE2b-256 | 325938c6e65838a3dddb1b12acd4f9b46910388ba91f304e245ab490423dd248 |