Skip to main content

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

MIT

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

lysqlnb-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lysqlnb-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

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

Hashes for lysqlnb-0.1.0.tar.gz
Algorithm Hash digest
SHA256 659226ef0cfd290f1970458d7e48da02c4375444c71255e4160d682329e68e4d
MD5 a978b4ca3fe944290fee8d537a7b3dd6
BLAKE2b-256 f30266e000d836f547f8abf749172f8f453bc1caf763d19e2082cbf40bbada50

See more details on using hashes here.

Provenance

The following attestation bundles were made for lysqlnb-0.1.0.tar.gz:

Publisher: publish.yaml on leyts/lysqlnb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for lysqlnb-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3b6dc3b31c94166075427e95f4517861469dcfab8e5e93a025261f61a55c004
MD5 633fb3ea9dc8a58cc9c354b621004fd5
BLAKE2b-256 0c326e1e3cf13ac6c47a79424be1c6a8fbfc1db197d74e5300397267e4b0971d

See more details on using hashes here.

Provenance

The following attestation bundles were made for lysqlnb-0.1.0-py3-none-any.whl:

Publisher: publish.yaml on leyts/lysqlnb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page