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
>>> 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"
    }
  ]
}

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.3.0.tar.gz (3.5 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.3.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lysqlnb-0.3.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lysqlnb-0.3.0.tar.gz
Algorithm Hash digest
SHA256 208c692ee0ece90ae43d996bb9867b8ecfa466d623176cce6837ed84a8abb4ec
MD5 e436b54a235239edf2aa476a2b4d0129
BLAKE2b-256 b22917fe1bb58eaf9af36f71540b458c2a03b0e0c2a5fb94425f66da9dcfd5ff

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lysqlnb-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0e55a7e44991eb7f89678f0096952e5e65da44453caf312347ffc7f310d3348
MD5 3ca8214fd1c83b6d40962c5a102186d5
BLAKE2b-256 a2725eb1e2692924be81dd65e96c405914713928cedc063dcbc32f862dbb857e

See more details on using hashes here.

Provenance

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