Skip to main content

A implementation of PartiQL

Project description

An implementation of PartiQL written in Rust

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


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

piqel-0.202208.0-cp310-cp310-macosx_11_0_arm64.whl (2.9 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

piqel-0.202208.0-cp39-cp39-macosx_11_0_arm64.whl (2.9 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page