Skip to main content

dialogify

The Python Standard Library documentation is very helpful for learning Python. So is Solveit! Solveit is jupyter notebook + AI with superpowers. Learning programming is so much fun and productive with AI. Therefore, I wanted to convert these html python documentation pages into solveit dialogues, which comprise small pieces of notes and code messages with appropriate headings, which can be extracted from the pages’ table of contents.

How it works:

  • We first get the html from the python documentation web page.
  • We turn it into (msg_type, element) where msg_type is note or code and element is soup element.
  • Turn elements into appropriate solveit messages for the dialog.

The goal is to use # for the title, ## for subheading, and ### for each function definition from the docs.

Installation

Install latest from the GitHub repository:

$ pip install git+https://github.com/galopyz/dialogify.git

or from pypi

$ pip install dialogify

How to use

To create a solveit dialog from python documentation, we need to pass the url to mk_dialog. Below code creates solveit messages after that message.

from dialogify.core import *

mk_dialog('https://docs.python.org/3.12/library/random.html')

Here is an example dialog on solveit from random python libary. It also works on Built-in Functions.

Metadata

Release files for dialogify 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dialogify 0.1.0
File Size Uploaded
dialogify-0.1.0.tar.gz 10.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dialogify 0.1.0
File Interpreter ABI Platform
dialogify-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.7 kB

Release files / dialogify-0.1.0.tar.gz

Download URL dialogify-0.1.0.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fb15d600dc44597bd4f66016bc1da674a799cba7b27e3a6eb04f7774aff40ba7
BLAKE2b-256 checksum
How to use checksums
8c03e4c45ad602b8bba651e95260fd338a473be15eb68b3c5707b067cb9d3e3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / dialogify-0.1.0-py3-none-any.whl

Download URL dialogify-0.1.0-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22d5a888241dbe615a2435f3dc935ab3bb6b7bded9673ab576dedd31f74e4217
BLAKE2b-256 checksum
How to use checksums
3ae7caa7b078a6de18a5682015c521c95e4504ad23c7ec8c1b539b41f403b2b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page