A implementation of PartiQL
Project description
Document(WIP)
Installation
pip install piqel
poetry add piqel
Usage
import piqel as pq
data = {
"SHELL": "/bin/bash",
"NAME": "my machine name",
"PWD": "/home/fuyutarow/piqel",
"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
Family
content | lang | package |
---|---|---|
pq | CLI (brew, scoop) | |
piqel | Rust (cargo) | https://crates.io/crates/piqel |
piqel-js | JavaScript (npm) | https://www.npmjs.com/package/piqel |
piqel-py | Python (pip) | https://pypi.org/project/piqel |
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 piqel-0.202208.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 487afeb5e85d5abe8fee1b97ca128abdc7ba12393f686e20cd2e7e0db5c28103 |
|
MD5 | 9050ac11e9c6af577de5a0768b51943d |
|
BLAKE2b-256 | aefa2e5acef6150a248f0c466f44b40099503a1deec923b7d747cbc8f883c9b3 |
Close
Hashes for piqel-0.202208.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfdda54d6aad4584be1d97a52ccadefffa8583cb79a7cd0d830e3604d63d04e9 |
|
MD5 | d473fb1eda1ce018273bae23af6085dc |
|
BLAKE2b-256 | 8b32430af5186d4cabccf60c885c31bd66cc3d532d4629dc3c5dead7c0a83138 |