Skip to main content

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


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

partiql-0.202107.0-cp39-cp39-manylinux_2_27_x86_64.whl (4.4 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.27+ x86-64

partiql-0.202107.0-cp36-cp36m-manylinux_2_27_x86_64.whl (4.4 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.27+ x86-64

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