Metadata-Version: 2.1
Name: basedpy2right
Version: 1.39.9.24
Summary: Static type checking and language server for Python 2.7 — an unofficial py2 fork of basedpyright (the tool runs on Python 3.8+; it type-checks and provides IDE features for Python 2 code).
Keywords: python2,python 2.7,static analysis,type checker,language server,lsp,pyright,basedpyright,legacy
Author: nev3rfail
License: MIT
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Project-URL: Homepage, https://github.com/nev3rfail/basedpy2right
Project-URL: Issues, https://github.com/nev3rfail/basedpy2right/issues
Requires-Python: >=3.8
Requires-Dist: nodejs-wheel-binaries>=20.13.1
Description-Content-Type: text/markdown

# basedpy2right

Static type checking and a Language Server (LSP) for **Python 2.7** — an
unofficial "necromancy" fork of [basedpyright](https://github.com/detachhead/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](https://github.com/detachhead/basedpyright) by
detachhead, which is based on [pyright](https://github.com/microsoft/pyright) by
Microsoft. Distributed under the MIT License; upstream copyright and license are
preserved in `LICENSE.txt`.
