Python Bindings for GenSQL
Project description
GenSQL for Python
This package provides bindings for GenSQL.
This package requires Java (>= 17) to be installed, either in $JAVA_HOME, or in your $PATH.
Usage:
First, you'll need a database file. You can find an example one here or create one using your own data set with this pipeline
Then, in your python file, you can load and query your database like so:
import gensql
db = gensql.DB("db.edn")
db.query("SELECT * FROM data LIMIT 5")
Optionally you can pick between the strict and permissive variants of gensql with the mode flag (defaults to permissive):
db.query("SELECT * FROM data LIMIT 5", mode="permissive")
You can also pass the results directly into DataFrame from pandas:
import gensql
import pandas as pd
db = gensql.DB("db.edn")
df = pd.DataFrame(db.query("SELECT * FROM data LIMIT 5"))
Known Limitations
For the moment, only one Python process can use GenSQL at a time. Starting up a second one will hang until the first one finishes.
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gensql-0.2.3.tar.gz.
File metadata
- Download URL: gensql-0.2.3.tar.gz
- Upload date:
- Size: 52.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Bluefin","version":"42","id":"Deinonychus","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecb7dcb0397e0588381f97ca03d4d8d71e92409ab930e72c585060f8e1742f29
|
|
| MD5 |
58938ce7d44e80a09103ada554cfb212
|
|
| BLAKE2b-256 |
734b4268f35dec69773df6c3ddd9670a96a3337536fdbdf660ed49c881a5efb1
|
File details
Details for the file gensql-0.2.3-py3-none-any.whl.
File metadata
- Download URL: gensql-0.2.3-py3-none-any.whl
- Upload date:
- Size: 52.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Bluefin","version":"42","id":"Deinonychus","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a36006832c8658b34cb1eb2e0725ff3801cd38a6a613cb9c954ed37aa97ebc9
|
|
| MD5 |
ec490352839231b3f11729c5674c45b0
|
|
| BLAKE2b-256 |
c7232686f1bcac7f147133a093c1eb36ac9d3c4ccffa1b88b53860c1fd775060
|