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 Notebook
>>> notebook = Notebook.from_file(Path("path/to/notebook.sqlnb"))
>>> 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.2.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.2.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file lysqlnb-0.2.0.tar.gz.

File metadata

  • Download URL: lysqlnb-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 a4cb337646952917c3aa8533cd55640e6a6f6f4dec3fd320017bfc25976f658f
MD5 afd09ab3801edbeee949d91674452bec
BLAKE2b-256 1ff34d1996ae0128b97162260de3d8b17fa3bc743bedce7fff38944214a4eb41

See more details on using hashes here.

Provenance

The following attestation bundles were made for lysqlnb-0.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: lysqlnb-0.2.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e46692e897077dc2d48e139b6cbbf36688e4b8fcc9e6e929ccc3dc14e37fc3d8
MD5 c65d6d54a7cfa7a67754ae6b1d18c114
BLAKE2b-256 ff9cf43e699d87f10aae88a9d2b226c8e7aabaaf58bfaa4d947691a26b16c681

See more details on using hashes here.

Provenance

The following attestation bundles were made for lysqlnb-0.2.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