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.2.2.tar.gz (52.9 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.2-py3-none-any.whl (52.6 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gensql-0.2.2.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

Hashes for gensql-0.2.2.tar.gz
Algorithm Hash digest
SHA256 c6f405892efaaf33b2a9cb93cfeded39f20d0465d71a931278f0ad5927e56569
MD5 c810b3644e105ca1791ca88935820b4d
BLAKE2b-256 631053ce32ea9983065a01cd9e314bc2b209e50e144240dcf533425e215571c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gensql-0.2.2-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

Hashes for gensql-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3f66156f0288a005eccb9f30c75a5dcf136782761d71bd15b8f885e2bb546cf9
MD5 24403e9c36243485264df70d63f76d71
BLAKE2b-256 ed7a8e7c8cc36c92ddcbdca18a8a86348011c8d83381e809e422c6f7d93c6504

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