mdformat is a literate programming framework for python.
Project description
Advanced course on Python3
This course covers several topics
- Python decorators
- The python object system / meta classes
- Iterators, generators and asyncio
- Also see my text on Python import system
Each lesson is a python program, the output of that program is the rendered markdown text that makes up the lesson. This approach gives me some confidence about the quality of the material.
I am using a kind of literate programming tool developed for this course. The tool is right here in this repository, in the mdpyformat package
The main function of the mdpyformat package is eval_and_quote(string_arg)
. This function does the following steps:
- Renders the argument string as a code snippet
- Evaluates the string argument as a python script, with the global variable context of the calling module
- Renders the result of evaluating the code (both standard output and standard error)
There is also print_md(*args)
- this shows the outut as a markdown regular text section
header_md(line, nesting=1)
- this renders the line as a header
print_quoted(*args)
- shows the aguments as markdown quoted text
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mdpyformat-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b53c4b93ba6994faf37ca26b8a7e454f4c14a552204353bbe7f022677c7bce91 |
|
MD5 | 95bdf1c7f167c5da0e70c7b98bf29438 |
|
BLAKE2b-256 | 7399959ddfa8f42a1724beeadf89fac7a2b4ceb242ead4a02a34d2ccfcf17f9b |