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 as pq
data = {
"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",
}
dl = pq.DataLake(data)
dl = dl.query("SELECT NAME, LOGNAME")
output = dl.to("json")
expected = """[{"NAME":"my machine name","LOGNAME":"fuyutarow"}]"""
assert output == 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.202107.0-cp39-cp39-manylinux_2_27_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb196e8b656b68834a3c317ce4e6ec0cff5d95af359271fc8220e6bf23df7c8d |
|
MD5 | cd22bac406cf4e87350303117c757a7a |
|
BLAKE2b-256 | dc23d2e0e4626af27d2302f0c9892fed4e1da36249fd91952919c2ad24c43f52 |
Close
Hashes for partiql-0.202107.0-cp36-cp36m-manylinux_2_27_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 273b1341620bc907c403831d190c5db1377c2f8da93a0a77ae7d679d8efd191d |
|
MD5 | db5f2a4b2336f7ceac1f2f2359fe43c8 |
|
BLAKE2b-256 | 81597ff5dfaa14dd4de7b39d7d4182d9c9ac5f0b3205d0bccc16642a11a98bec |