A Thonny plugin that generates inline pseudocode explaining the Python source code line-by-line.
Project description
thonny-pseudocode
A Thonny plug-in that generates inline pseudocode on-demand, explaining the Python source code line-by-line, powered by the PyToPseu project.
The plug-in currently supports generating pseudocode in English and French (depending on the UI language set by the user in Thonny's settings).
Table of contents:
Installation
User Guide
Limitations
Installation
Inside Thonny, click on Tools > Manage plug-ins... to open the plug-ins dialog.
Search for the "thonny-pseudocode" package and install it.
Make sure your installed version is at least 0.1.3.
Once installed, restart Thonny to load the plug-in.
User Guide
You can generate pseudocode with the plug-in's "Explain with pseudocode" command. There are 3 ways to trigger the command:
- From the menu:
- From the toolbar:
- Using the Ctrl+E/Cmd+E hotkey:
Once generated, the command may be used again to erase the generated pseudocode:
Note: When the plug-in erases generated pseudocode, it will systematically remove all trailing whitespaces on all lines.
Since the generated pseudocode is actually appended to the source code in the form of comments (preserving the developer's own comments), the developer may continue to edit the code afterwards. Using the command again on edited code will immediately regenerate pseudocode for the new code. As soon as the command is used a second time on a particular piece of code, the plug-in will erase the generated pseudocode.
Limitations
The plug-in currently has the following limitations:
- It cannot generate pseudocode for code with the slightest syntax error
- It may insert new-lines in the source code to have enough space for the pseudocode, but will not remove those new-lines when it erases the generated pseudocode
- Generated pseudocode goes into (and "pollutes") the editing history, which means that erasing pseudocode then undoing the last change will bring back the pseudocode
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file thonny_pseudocode-0.1.6.tar.gz.
File metadata
- Download URL: thonny_pseudocode-0.1.6.tar.gz
- Upload date:
- Size: 23.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cc90049cab537a2659e3dd6afda8d51437ffb10622e9e6127351220301bbd7c
|
|
| MD5 |
d30ba2f2f0d0f04f609827112470ead3
|
|
| BLAKE2b-256 |
68d55b61468ef046c3d4d82415110b590a4f9c2b468c845c324abfe21adf374c
|
Provenance
The following attestation bundles were made for thonny_pseudocode-0.1.6.tar.gz:
Publisher:
publish.yml on raja-s/thonny-pseudocode
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
thonny_pseudocode-0.1.6.tar.gz -
Subject digest:
2cc90049cab537a2659e3dd6afda8d51437ffb10622e9e6127351220301bbd7c - Sigstore transparency entry: 1059748217
- Sigstore integration time:
-
Permalink:
raja-s/thonny-pseudocode@f51497f184b03a2b711f707db522fa59395d33f4 -
Branch / Tag:
refs/tags/v0.1.6 - Owner: https://github.com/raja-s
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f51497f184b03a2b711f707db522fa59395d33f4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file thonny_pseudocode-0.1.6-py3-none-any.whl.
File metadata
- Download URL: thonny_pseudocode-0.1.6-py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f207749bccb58159ef9dd19160a2aa0b3d7e8ad4f4e3134a03b41ead43eaf18e
|
|
| MD5 |
cc88873024d641fed93314f81a64430d
|
|
| BLAKE2b-256 |
f25820aa36b4bfbd5dc94cc6bf68915d9141f70b2077102a061b39f782e9e303
|
Provenance
The following attestation bundles were made for thonny_pseudocode-0.1.6-py3-none-any.whl:
Publisher:
publish.yml on raja-s/thonny-pseudocode
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
thonny_pseudocode-0.1.6-py3-none-any.whl -
Subject digest:
f207749bccb58159ef9dd19160a2aa0b3d7e8ad4f4e3134a03b41ead43eaf18e - Sigstore transparency entry: 1059748219
- Sigstore integration time:
-
Permalink:
raja-s/thonny-pseudocode@f51497f184b03a2b711f707db522fa59395d33f4 -
Branch / Tag:
refs/tags/v0.1.6 - Owner: https://github.com/raja-s
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f51497f184b03a2b711f707db522fa59395d33f4 -
Trigger Event:
push
-
Statement type: