Skip to main content

Add your description here

Project description

This package provides magics for using GenSQL inside of a jupyter notebook. Queries are wrapped into a Pandas dataframe.

Requires 24 or later installed an in PATH. (Java 17 might work).

Usage:

First load the package and the extension:

import gensql_magics
%load_ext gensql_magics

Then you can use it in its own cells:

%%gensql -d db.edn
SELECT * FROM data LIMIT 10

Valid options are:

  • -d The model database, defaults to db.edn.
  • -o Jupyter variable to bind output to.
  • -l Query language, permissive or strict, defaults to permissive.

Building

Make sure you have the git repo checked out recursively (including submodules). Then, make sure to run the prebuild.sh script before building with uv.

git clone --recursive https://github.com/LeifAndersen/GenSQL.magics/
./prebuild.sh
uv build

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_magics-0.0.3.tar.gz (74.1 MB view details)

Uploaded Source

Built Distribution

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

gensql_magics-0.0.3-py3-none-any.whl (74.1 MB view details)

Uploaded Python 3

File details

Details for the file gensql_magics-0.0.3.tar.gz.

File metadata

  • Download URL: gensql_magics-0.0.3.tar.gz
  • Upload date:
  • Size: 74.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for gensql_magics-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0de86344d848b7d20c5107f990bd2999776ffb7387f33751db14ca7bdf0271fd
MD5 6379f28500f8e453592558023291fba1
BLAKE2b-256 022106f6dff81e9715bd116c6f644e0d60d18b44cadb8799a1d6ee4f7ac96a52

See more details on using hashes here.

File details

Details for the file gensql_magics-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for gensql_magics-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f536133c9e8c071686b44b5912241f0ea7a874151e700e325ca68aa3473bf1e0
MD5 4435e6828a419774d7b2cdd77a66bd9d
BLAKE2b-256 b2ae377acb4f56f6d59aac7a0b8d3f11051a8d71fcc692d42b7d0400b5696bba

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