Skip to main content

basedpy2right

Static type checking and a Language Server (LSP) for Python 2.7 — an unofficial "necromancy" fork of basedpyright that teaches the analyzer Python 2's grammar (print statements, old-style classes, StringIO/ConfigParser/… stdlib) and ships a bundled Python-2.7 typeshed so a 2.7 codebase gets modern editor tooling today.

The distribution is named basedpy2right, but the console scripts are deliberately left as basedpyright / basedpyright-langserver so the stock basedpyright VS Code extension drives this fork with no extra configuration.

Install

pip install basedpy2right

This pulls nodejs-wheel-binaries (the tool runs a bundled JS analyzer under a managed Node runtime — no global Node install is added to your PATH).

Quick usage

Command line (point it at your Python 2.7 interpreter):

basedpyright --pythonversion 2.7 your_module.py
# or, to resolve installed 2.7 site-packages too:
basedpyright --pythonpath /path/to/python2.7 your_project/

The bundled Python-2.7 typeshed is auto-selected when you analyze at pythonVersion 2.7 — no typeshedPath configuration required.

VS Code: install the basedpyright extension and select your Python 2.7 interpreter; the language server provides hover, go-to-definition, reveal_type, and diagnostics for 2.7 code.

Disclaimer / attribution

This is an unofficial Python-2.7 fork. It is not affiliated with, endorsed by, or supported by basedpyright / detachhead, or pyright / Microsoft.

Based on basedpyright by detachhead, which is based on pyright by Microsoft. Distributed under the MIT License; upstream copyright and license are preserved in LICENSE.txt.

Metadata

Release files for basedpy2right 1.39.9.24

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

Built distribution (wheel)

Table of built distributions (wheels) for basedpy2right 1.39.9.24
File Interpreter ABI Platform Actions
basedpy2right-1.39.9.24-py3-none-any.whl Python 3 none any Details for basedpy2right-1.39.9.24-py3-none-any.whl

Release files / basedpy2right-1.39.9.24-py3-none-any.whl

Download URL basedpy2right-1.39.9.24-py3-none-any.whl
Size 13.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
406537f31a6292f434e4bc4b0eb6771221cb71cdbc671e012bd07ad9fb86522a
BLAKE2b-256 checksum
How to use checksums
69c629c303e47b866b594aa164b9d8a7ed8a89d935dbd75bfc5b9fe8407d556b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Security for basedpy2right 1.39.9.24

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.

Release history Release notifications | RSS feed

This release

1.39.9.24 This release

1 release file No 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