A library for reading and validating SQL notebook files.
Project description
lysqlnb
A library for reading and validating SQL notebook files (.sqlnb).
[!WARNING] This project is a work in progress and is not yet ready for use. The API is unstable and subject to breaking changes.
Installation
pip install lysqlnb
Background
The data models are based on the VS Code NotebookSerializer API.
Usage
>>> from pathlib import Path
>>> from lysqlnb import NotebookData
>>> notebook = NotebookData.from_file(Path("path/to/notebook.sqlnb"))
>>> print(notebook.model_dump_json(indent=2))
{
"cells": [
{
"kind": 1,
"value": "# This is Markdown.",
"language_id": "markdown"
},
{
"kind": 2,
"value": "SELECT * FROM departments;",
"language_id": "oracle-sql"
}
]
}
Requirements
Python 3.14+
Licence
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 lysqlnb-0.1.0.tar.gz.
File metadata
- Download URL: lysqlnb-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
659226ef0cfd290f1970458d7e48da02c4375444c71255e4160d682329e68e4d
|
|
| MD5 |
a978b4ca3fe944290fee8d537a7b3dd6
|
|
| BLAKE2b-256 |
f30266e000d836f547f8abf749172f8f453bc1caf763d19e2082cbf40bbada50
|
Provenance
The following attestation bundles were made for lysqlnb-0.1.0.tar.gz:
Publisher:
publish.yaml on leyts/lysqlnb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lysqlnb-0.1.0.tar.gz -
Subject digest:
659226ef0cfd290f1970458d7e48da02c4375444c71255e4160d682329e68e4d - Sigstore transparency entry: 995802221
- Sigstore integration time:
-
Permalink:
leyts/lysqlnb@185e22fb9a2b958a305f8ab3880539920b68c6a9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/leyts
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@185e22fb9a2b958a305f8ab3880539920b68c6a9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file lysqlnb-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lysqlnb-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3b6dc3b31c94166075427e95f4517861469dcfab8e5e93a025261f61a55c004
|
|
| MD5 |
633fb3ea9dc8a58cc9c354b621004fd5
|
|
| BLAKE2b-256 |
0c326e1e3cf13ac6c47a79424be1c6a8fbfc1db197d74e5300397267e4b0971d
|
Provenance
The following attestation bundles were made for lysqlnb-0.1.0-py3-none-any.whl:
Publisher:
publish.yaml on leyts/lysqlnb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lysqlnb-0.1.0-py3-none-any.whl -
Subject digest:
b3b6dc3b31c94166075427e95f4517861469dcfab8e5e93a025261f61a55c004 - Sigstore transparency entry: 995802226
- Sigstore integration time:
-
Permalink:
leyts/lysqlnb@185e22fb9a2b958a305f8ab3880539920b68c6a9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/leyts
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@185e22fb9a2b958a305f8ab3880539920b68c6a9 -
Trigger Event:
push
-
Statement type: