Skip to main content

Thonny black formater plugin

Thonny plugin for source formatting with black (Thonny >= 4.x)

This plugin enables formatting with black tool inside Thonny python editor.

History and rationale

Originally there was this plugin available:

https://pypi.org/project/thonny-black-format/

From Thonny release 4.0.0 the plugin stopped working and has been found in an abandoned project state (dead github project home page link) but still installable from PyPI repository.

This is an adptation built from the sources installes and modified in order to make it work for Thonny release 4.0.0 and - hopefully - subsequent.

Credits

All credits go to the author "Franccisco" of the original plugin.

All information available to me related to the original plugin is in the following two links.

Github repo: https://github.com/Franccisco/thonny-black-code-format [dead link] Docs: https://pypi.org/project/thonny-black-format/

Installation

Credits for this part of the readme go to the original author Franccisco

This can be easily installed via Thonny.

Go to Tools -> Manage plug-ins..., type thonny-black-format and click on Find package from PyPI. Install the plugin and restart Thonny.

Alternatively, you can install via pip with ```pip install --user thonny-black-format````

Usage

Credits for this part of the readme go to the original author Franccisco

There are two ways to run the plugin:

  1. Go to Tools -> Format with Black
  2. Press Ctrl+Alt+c

All changes will be automatically saved.

If you prefer, you can undo them.

Contributing

Contributions are welcome! Feel free to sumbit an issue and/or a pull request.

Metadata

Release files for thonny-black-formatter 0.0.4

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

Source distribution (sdist)

Source distribution for thonny-black-formatter 0.0.4
File Size Uploaded Provenance
thonny-black-formatter-0.0.4.tar.gz 4.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for thonny-black-formatter 0.0.4
File Interpreter ABI Platform
thonny_black_formatter-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 10.2 kB

Release files / thonny-black-formatter-0.0.4.tar.gz

Download URL thonny-black-formatter-0.0.4.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
76c386bec6ff9973ded13f080f35bb27f701c1ac2bf0b77b7f361651f86b0f8c
BLAKE2b-256 checksum
How to use checksums
00d171e4e69ad8e7c52a1b2755828b45e72f0484c0b61a67af0a5b97178d2446
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / thonny_black_formatter-0.0.4-py3-none-any.whl

Download URL thonny_black_formatter-0.0.4-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3f577000149cfd7a07387d5d22f1c44644603042c3c6329054970edfc1f8940
BLAKE2b-256 checksum
How to use checksums
b1cde170d3b302f1f1e94074c35ed3e57e527573d80e255eaaa08bbf3cb7552d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Security for thonny-black-formatter 0.0.4

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.

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