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"))

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.1.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.1-py3-none-any.whl (52.5 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gensql-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 2e256d86d00f5000721f5ae8e3b300079daa7f3b5aedac5a056826cd84b13fd4
MD5 94b27da5eda6c5847ebf9d059c6f2d7d
BLAKE2b-256 e8d143cf0f509af57ab159a06382e9b9411f6601d38a0b7193cfc88838ae419c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gensql-0.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2306e2a9282d9dddd2edd22c05f1333aace806ca1babe0aebe47a0ff289fcafb
MD5 648c2bfc3e77c329d54541ef22757397
BLAKE2b-256 d030e3a4e7cbc8a4b107e6034220fd141aecccb5039d17b0e08334d0edb960c3

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