Metadata-Version: 2.3
Name: gensql-magics
Version: 0.0.4
Summary: Add your description here
Author: Leif Andersen
Author-email: Leif Andersen <leif@leifandersen.pl>
Requires-Dist: ipykernel>=6.30.1
Requires-Dist: pandas>=2.3.2
Requires-Python: >=3.9
Description-Content-Type: text/markdown

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
```