Skip to main content

Thonny Bracket and Quote Auto-pairing Plugin

This is an auto-pairing plugin for Thonny 5. Installation varies by operating system.

Features

  • Automatically closes brackets ( [ { and quotes " '.
  • Skips over closing characters when typed.
  • Pressing Backspace inside an empty pair deletes both characters.
  • Pressing Enter inside brackets moves the closing bracket to the next line.
  • Entering a bracket or quote around selected text wraps the selection.
  • Typing """ three times creates a """|""" pair.
  • Enable or disable it under Tools > Options > Auto-pairs.

Repository Layout

Folder Target Installer
thonny-autopairs-windows/ Windows thonny-autopairs-setup.exe from Releases, or install_helper.py
thonny-plugins/ macOS install.command

The canonical package is at thonnycontrib/autopairs.py. The files under the platform folders are legacy convenience distributions and remain available for manual installation.

Package Installation

Install the package through Thonny's package manager or pip:

pip install thonny-autopairs

After installation, restart Thonny. The package provides the thonnycontrib.autopairs plugin and automatically discovers load_plugin().

Windows Installation

  1. Download thonny-autopairs-setup.exe from Releases and double-click it. Because the program is unsigned, Windows protected your PC might appear. Click More info > Run anyway.
  2. When you see the installation complete message, close and reopen Thonny.

If the installer cannot find the Thonny installation folder, it asks you to enter the Thonny folder path. To find it, right-click the Thonny shortcut and select Open file location.

If the EXE cannot run in your environment, open thonny-autopairs-windows/install_helper.py in Thonny and press Run (F5). Otherwise, use manual installation.

macOS Installation

  1. Double-click install.command in the thonny-plugins/ folder. If it is blocked, right-click and select Open, or run bash install.command in Terminal.
  2. Restart Thonny.

Manual Installation

  • Windows: In Thonny, select Tools > Open Thonny data folder..., then copy autopairs.py into plugins\Python3XX\site-packages\thonnycontrib\. Python3XX is the Python version bundled with Thonny (for example, Python313).
  • macOS: Copy autopairs.py into ~/Library/Thonny/plugins/lib/python/site-packages/thonnycontrib/.

Uninstallation

Delete autopairs.py from the installed thonnycontrib folder, then restart Thonny.

License

MIT License. See LICENSE for details.

Metadata

Release files for thonny-autopairs 1.0.0

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-autopairs 1.0.0
File Size Uploaded Provenance Actions
thonny_autopairs-1.0.0.tar.gz 6.3 kB With provenance Details for thonny_autopairs-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for thonny-autopairs 1.0.0
File Interpreter ABI Platform Actions
thonny_autopairs-1.0.0-py3-none-any.whl Python 3 none any Details for thonny_autopairs-1.0.0-py3-none-any.whl

Total release size: 12.8 kB

Release files / thonny_autopairs-1.0.0.tar.gz

Download URL thonny_autopairs-1.0.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c5d06e8c1a9fb76a93efd4589582faf89e7ea62f45af259b03ea94e38c0a33c0
BLAKE2b-256 checksum
How to use checksums
06ac71cf74d940883e76b1e682fa3247d1bae4c090f1088906a8d08ce452f3a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / thonny_autopairs-1.0.0-py3-none-any.whl

Download URL thonny_autopairs-1.0.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c241b8fad20364252c9fad8e0b1af0eebb640057651bfce5234701cdbd25ee2
BLAKE2b-256 checksum
How to use checksums
c6e7e2ee54b493362cab972e8ce7910f8d29b6016b92a8cc422d81dfec68beac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for thonny-autopairs 1.0.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for thonny_autopairs-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

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