Skip to main content

A library for reading and validating Oracle SQL notebooks.

Project description

lysqlnb

PyPI - Version PyPI - Python Version Pydantic v2 PyPI - License

A Python library for reading and validating Oracle SQL notebooks (.sqlnb).

[!WARNING] This package is under development. The API is 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.4.0.tar.gz (3.6 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.4.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lysqlnb-0.4.0.tar.gz
Algorithm Hash digest
SHA256 7d6db387872a82726457546ee922ab21d5f8a967de0c88ab169bd3ec1a8c6ac4
MD5 e37aeeddceb6388febff9623f9a9f490
BLAKE2b-256 77c29741c7d1b02fd7cb360cc0a01022a0045b11c471a4f1d4910a546a8af338

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: lysqlnb-0.4.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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8bff161033757c79e48a970b7296e5265c8a4a845f9b0892a77da615e4cf7acd
MD5 2b422669b83c69f1a2a47b039a021857
BLAKE2b-256 0c6642381b6bc7220b9649098187b87f4671f9e3744355c597b2c1e6a79a3857

See more details on using hashes here.

Provenance

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