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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gensql_magics-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 ad4dad7b8c793657576aeaf7ea21616872ef5856a2587116430a1ac82590d925
MD5 44b153eb97881dfb6ae157e2a9650b43
BLAKE2b-256 54b587dd306b1ab24e940ba891c0b1d34dca88eb1373a563ab5c1a9a559c0d60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gensql_magics-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4a49dcc7a305b123c31e03f6a82d0ec3e5615d433217ecf57f4eeddaabcf74ba
MD5 113d6004721ae4ee3e301832809bb644
BLAKE2b-256 1c67bc6a91a778a07f54896f40d0429f8f2ebf49f0c8c6247f3f7824cee9cc57

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