A Python library for reading and validating Oracle SQL notebooks (.sqlnb).
Warning
This package is under development. The API is subject to breaking changes.
pip install lysqlnbThe data models are based on the VS Code NotebookSerializer API.
>>> from pathlib import Path
>>> import lysqlnb as sqlnb
>>> nb = sqlnb.load(Path("path/to/notebook.sqlnb"))
>>> nb.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"
}
]
}Python 3.14+