Skip to main content

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

Metadata

Release files for gensql-magics 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gensql-magics 0.0.4
File Size Uploaded Provenance
gensql_magics-0.0.4.tar.gz 74.1 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for gensql-magics 0.0.4
File Interpreter ABI Platform
gensql_magics-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 148.1 MB

Release files / gensql_magics-0.0.4.tar.gz

Download URL gensql_magics-0.0.4.tar.gz
Size 74.1 MB
Tags Source
SHA-256 checksum
How to use checksums
ad4dad7b8c793657576aeaf7ea21616872ef5856a2587116430a1ac82590d925
BLAKE2b-256 checksum
How to use checksums
54b587dd306b1ab24e940ba891c0b1d34dca88eb1373a563ab5c1a9a559c0d60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.17

Release files / gensql_magics-0.0.4-py3-none-any.whl

Download URL gensql_magics-0.0.4-py3-none-any.whl
Size 74.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
4a49dcc7a305b123c31e03f6a82d0ec3e5615d433217ecf57f4eeddaabcf74ba
BLAKE2b-256 checksum
How to use checksums
1c67bc6a91a778a07f54896f40d0429f8f2ebf49f0c8c6247f3f7824cee9cc57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.17

Security for gensql-magics 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page