Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gensql-0.3.0.tar.gz (52.7 MB view details)

Uploaded Source

Built Distribution

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

gensql-0.3.0-py3-none-any.whl (52.5 MB view details)

Uploaded Python 3

File details

Details for the file gensql-0.3.0.tar.gz.

File metadata

  • Download URL: gensql-0.3.0.tar.gz
  • Upload date:
  • Size: 52.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"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

Hashes for gensql-0.3.0.tar.gz
Algorithm Hash digest
SHA256 05df1887e4c46f76ec02d17d4b33adfcad9c3213722004ee26ae6d48b20516b8
MD5 9c855305c295221e80a2ba5fdf0e89ef
BLAKE2b-256 5d0a1f976641506443d004abeef57c1e420edb3fda46400c7c5c8f735d54b746

See more details on using hashes here.

File details

Details for the file gensql-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: gensql-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 52.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"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

Hashes for gensql-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aba1d7efd14705f5986656ce8ba03bdc5f44c79ebc0658130c604924ad56c1cb
MD5 bbb2ce7b8483609343bc0a8b5f108fa0
BLAKE2b-256 05f6417041b4352429fbed99e4e7c6092e338a04cf7559f5c1bec5fe7c2a389c

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