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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded CPython 3.9manylinux: glibc 2.27+ x86-64

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

Uploaded CPython 3.6mmanylinux: glibc 2.27+ x86-64

File details

Details for the file partiql-0.202107.0-cp39-cp39-manylinux_2_27_x86_64.whl.

File metadata

File hashes

Hashes for partiql-0.202107.0-cp39-cp39-manylinux_2_27_x86_64.whl
Algorithm Hash digest
SHA256 bb196e8b656b68834a3c317ce4e6ec0cff5d95af359271fc8220e6bf23df7c8d
MD5 cd22bac406cf4e87350303117c757a7a
BLAKE2b-256 dc23d2e0e4626af27d2302f0c9892fed4e1da36249fd91952919c2ad24c43f52

See more details on using hashes here.

File details

Details for the file partiql-0.202107.0-cp36-cp36m-manylinux_2_27_x86_64.whl.

File metadata

File hashes

Hashes for partiql-0.202107.0-cp36-cp36m-manylinux_2_27_x86_64.whl
Algorithm Hash digest
SHA256 273b1341620bc907c403831d190c5db1377c2f8da93a0a77ae7d679d8efd191d
MD5 db5f2a4b2336f7ceac1f2f2359fe43c8
BLAKE2b-256 81597ff5dfaa14dd4de7b39d7d4182d9c9ac5f0b3205d0bccc16642a11a98bec

See more details on using hashes here.

Supported by

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