Skip to main content

A Thonny plugin that generates inline pseudocode explaining the Python source code line-by-line.

Project description

thonny-pseudocode

Publish to PyPI

A Thonny plugin that generates inline pseudocode on-demand, explaining the Python source code line-by-line, powered by the PyToPseu project.

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:

  1. From the menu:

Generating the pseudocode from the menu

  1. From the toolbar:

Generating the pseudocode from the toolbar

  1. Using the Ctrl+E/Cmd+E hotkey:

Generating the pseudocode using the hotkey

Once generated, the command may be used again to erase the generated pseudocode:

Note: When the plugin erases generated pseudocode, it will systematically remove all trailing whitespaces on all lines.

Erasing the pseudocode

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.

Erasing the pseudocode

Limitations

The plugin currently has the following limitations:

  • It cannot generate pseudocode for code with the slightest syntax error
  • Generated pseudocode goes into the editing history and "pollutes" it, 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

thonny_pseudocode-0.1.5.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thonny_pseudocode-0.1.5-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

Details for the file thonny_pseudocode-0.1.5.tar.gz.

File metadata

  • Download URL: thonny_pseudocode-0.1.5.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for thonny_pseudocode-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f576a46005f6e4115f3579d810fa4b22a646e9cc87008c7df185c148a44b534a
MD5 94d708cdc8eb6b149db8609487d722cb
BLAKE2b-256 27415971c360b5e5f92d121c775f68572e16e90bf250a42b909e0bc474cb9380

See more details on using hashes here.

Provenance

The following attestation bundles were made for thonny_pseudocode-0.1.5.tar.gz:

Publisher: publish.yml on raja-s/thonny-pseudocode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file thonny_pseudocode-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for thonny_pseudocode-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a68525d0eee0f1ff632c20108781f9f2d328d9622ba9fee2662f1e9cede5038b
MD5 bb60654b7a0c56089bc40abd5cd96355
BLAKE2b-256 dc5f92e6970192a6bd78aeb13cff7133a46d9a6349bbab8374b4f17d43f49d09

See more details on using hashes here.

Provenance

The following attestation bundles were made for thonny_pseudocode-0.1.5-py3-none-any.whl:

Publisher: publish.yml on raja-s/thonny-pseudocode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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