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:
-dThe model database, defaults todb.edn.-oJupyter variable to bind output to.-lQuery language,permissiveorstrict, defaults topermissive.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ef1c93f07e27554fb9a5acbc2c1521f50fe1b599a4fc80c91c67505e340c22c
|
|
| MD5 |
d48a0438a000ead1a875290a004b3282
|
|
| BLAKE2b-256 |
3d866ae60c7da6fad5fbb9ba860aabad48896be2887f09430ee033ef8a910680
|
File details
Details for the file gensql_magics-0.0.2-py3-none-any.whl.
File metadata
- Download URL: gensql_magics-0.0.2-py3-none-any.whl
- Upload date:
- Size: 74.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
234eea004b35378ab55879aaf375de035843e28b0abd18b8d5fc196a51661437
|
|
| MD5 |
b576a5d3089662c0b411a15c7b997aca
|
|
| BLAKE2b-256 |
f926dbcf17c3efba9ded7dcc275306d69a99cd0b31d60190bba7a00fbd97e4de
|