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.
mdpyformat literate programming library
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
Installation of mdpyformat
The mdpyformat library can be installed via pip
pip3 install mdpyformat
Here is the link to pypi
table of content generation script
The mdpyformat package contains a script for the generation of table of contents in the generated markdown files.
To invoke this script run
python3 -m mdpyformat.tocgen MARKDOWN_INPUT_FILE MARKDOWN_OUTPUT_WITH_ADDED_TABLE_OF_CONTENT
The script has beend derived from this gist Thanks!
Metadata
Release files for mdpyformat 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mdpyformat-1.0.3.tar.gz | 6.4 kB | Without provenance | Details for mdpyformat-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mdpyformat-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for mdpyformat-1.0.3-py3-none-any.whl |
Total release size: 12.7 kB
Release files / mdpyformat-1.0.3.tar.gz
| Download URL | mdpyformat-1.0.3.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9dc761b76b0175d6d6cd1d89ef819bb03626ce2dbc57c871c084cf6255e227b
|
|
BLAKE2b-256 checksum How to use checksums |
53f6641728bb80dd741f9db9db60f6c794cc3d5c9e79e65a6cd327880ad04ff1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.6.4 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
|
Release files / mdpyformat-1.0.3-py3-none-any.whl
| Download URL | mdpyformat-1.0.3-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e18941c324edd69483f77e22903fe8cdbd3988042491d000b3e84ce2497bbfe4
|
|
BLAKE2b-256 checksum How to use checksums |
47cba7a580e80ab83a27f0f1d40ec87cda1457d5858e6fda07f30b417c9c53f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.6.4 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
|
Security for mdpyformat 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.