Skip to main content

Literate package development with Jupyter

Project description

Literary logo with an orange cursive uppercase L inside black square brackets

Literary

pypi-badge binder-badge wiki-badge gitter-badge nbviewer

TL;DR

Literary is a Python tool to make Jupyter (IPython) notebooks behave like pure-Python packages. This allows pure-Python packages to be generated from notebooks, and notebooks to be imported at runtime. Literary now bootstraps itself; it is developed with Literary 🤯.

This package is an exploration of the literate programming idea pioneered by Donald Knuth and implemented in the nbdev package. Although nbdev looks to be a very mature and comprehensive tool, it resembles a significant departure from conventional package development. Literary is an exploration of what a smaller nbdev might look like.

Philosophy 📖

  1. Low mental overhead
    Realistically, most Python programmers that wish to write packages need to have some familiarity with the Python package development model, including the conventional structure of a package. For this reason, I feel that it is important to design literary such that these skills translate directly to designing libraries with notebooks
  2. Minimal downstream impact
    Users of literary packages should not realise that they are consuming notebook-generated code at runtime. This means that a pure-Python package needs to be generated from the notebooks, and it must use the conventional import model. For this reason, literary should only exist as a development dependency of the package.

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

literary-4.0.0a1.tar.gz (753.5 kB view details)

Uploaded Source

Built Distribution

literary-4.0.0a1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file literary-4.0.0a1.tar.gz.

File metadata

  • Download URL: literary-4.0.0a1.tar.gz
  • Upload date:
  • Size: 753.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for literary-4.0.0a1.tar.gz
Algorithm Hash digest
SHA256 a22939e833348ed3c1b5c2d619bb9be4f7e80819c9284b2fbca132551737b695
MD5 3b4c73b4268e2c76fa1a39d2dbc8187d
BLAKE2b-256 153cf310eac52516c20788e2d08e9ee66bdcf6e9130b3fc09ca69064d9dc058e

See more details on using hashes here.

File details

Details for the file literary-4.0.0a1-py3-none-any.whl.

File metadata

  • Download URL: literary-4.0.0a1-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for literary-4.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 f740531c6d5625c337a8e158288e98f4c7e374a183035bc1842b6e4c3199cb54
MD5 656c4ee4075c6937289f05f672191997
BLAKE2b-256 3a7360ee74cdc1bfd1eca4f11cf50ea36d152479020eb02d8fac84788da7889f

See more details on using hashes here.

Supported by

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