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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gensql_magics-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8ef1c93f07e27554fb9a5acbc2c1521f50fe1b599a4fc80c91c67505e340c22c
MD5 d48a0438a000ead1a875290a004b3282
BLAKE2b-256 3d866ae60c7da6fad5fbb9ba860aabad48896be2887f09430ee033ef8a910680

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gensql_magics-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 234eea004b35378ab55879aaf375de035843e28b0abd18b8d5fc196a51661437
MD5 b576a5d3089662c0b411a15c7b997aca
BLAKE2b-256 f926dbcf17c3efba9ded7dcc275306d69a99cd0b31d60190bba7a00fbd97e4de

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