semvec/pypi-packages huggingface dataset:
partiql-rs 0.202106.8
A implementation of PartiQL
License: MIT
Keywords: partiql

<div align="center">
  <h1><code>partiql-py</code></h1>
  <strong>An implementation of PartiQL written in Rust</strong>

  <h3>
    <a href="https://partiql.vercel.app">Document</a>
  </h3>
</div>

## Installation
```sh:$
pip install partiql
```
```sh:$
poetry add partiql
```

## Usage
```py:test_partiql.py
import partiql as pq

data = json.loads(
    """
{
  "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()
dl = dl.load(data)
dl = dl.query("SELECT NAME, LOGNAME")
output = dl.dumps("json")
expected = """[{"NAME":"my machine name","LOGNAME":"fuyutarow"}]"""
assert output == expected
```

## Test

```sh:$
makers test:py
```


# Familiy

| content | lang | package |
| --- | --- | --- |
| [pq](https://github.com/fuyutarow/partiql-rs/blob/alpha/src/bin/pq.rs) | CLI (brew, scoop) | |
| [partiql-rs](https://github.com/fuyutarow/partiql-rs) | Rust (cargo) | https://crates.io/crates/partiql-rs |
| [partiql-js](https://github.com/fuyutarow/partiql-rs/tree/alpha/partiql-js) | JavaScript (npm) | https://www.npmjs.com/package/partiql-js |
| [partiql-py](https://github.com/fuyutarow/partiql-rs/tree/alpha/partiql-py) | Python (pip) | https://pypi.org/project/partiql |