Skip to main content

Python Bindings for GenSQL

Project description

GenSQL for Python

This package provides bindings for GenSQL.

This package requires Java (>= 24) 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")

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.2.1.tar.gz (52.5 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.2.1-py3-none-any.whl (52.3 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gensql-0.2.1.tar.gz
  • Upload date:
  • Size: 52.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for gensql-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1b72226ba60f15a52f97f2721f7eddd46e0c69e7d6c8f495d2f79a37f8f75568
MD5 22133e1cc0f942f167b9ea02a139af5d
BLAKE2b-256 4926d78d191d74d1b9f8398217e5d698de3b4b4722f86991d0212a6ded9393a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gensql-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 52.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for gensql-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bfd1b3529923c10df62e9b490a5ad185943baa4179fe93df1fa7c421728e7cd1
MD5 30619977be94e04fbe97e1d54524a80c
BLAKE2b-256 6008a39b2a3f0b9f5c874202f83eb9635ec0ccd544a9a086d5af6b8b1e296be6

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