pyright
Command line wrapper for pyright
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, installs with low friction, uses a permissive MIT license, and solves a real problem—making pyright accessible without a separate Node.js toolchain. It is well-suited for teams that want static type checking without adding Node.js as a system dependency.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Node.js must be available in PATH or will be downloaded at runtime via nodeenv.
- Low install friction with a pure Python wheel; the package automatically downloads Node.js at runtime via nodeenv if not already present, though an optional nodejs extra is available for alternative provisioning.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal restrictions, making it safe for both open-source and commercial projects.
last release 2026-06-25 (50 days) · last repo commit 2026-08-13 · 274 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 42,168,725 downloads/mo, #659 on PyPI
Alternatives
Verify before relying
pip install pyright
pyright --help- Whether the optional nodejs extra provides materially better reliability than the default nodeenv approach.
- Performance characteristics when pyright must download and initialize Node.js on first run.
- Compatibility with air-gapped or restricted network environments where npm package downloads may fail.
What it is and what it does
Pyright for Python wraps Microsoft's pyright static type checker—a TypeScript-based tool normally installed via npm—and makes it installable and runnable as a standard Python package. It eliminates the barrier of requiring Node.js and npm to be pre-installed on a developer's machine by automatically provisioning Node.js at runtime using nodeenv and then downloading and running the pyright npm package through that managed environment.
The package is designed to behave identically to pyright itself: you invoke it via `pyright` command or `python -m pyright`, and it accepts all the same configuration and command-line options as the upstream tool. It supports integration with pre-commit hooks and respects pyright's standard configuration files. The wrapper automatically tracks upstream pyright releases and can be configured via environment variables to pin a specific version, follow the latest release, or sync with a particular Pylance version.
Use it for
- Add static type checking to a Python project without requiring developers to install Node.js separately.
- Integrate pyright into CI/CD pipelines as a pre-commit hook to catch type errors before code review.
- Synchronize type checking with a team's Pylance version by setting PYRIGHT_PYTHON_PYLANCE_VERSION.
- Use pyright's strict type checking on Python 3.7+ codebases that already use type annotations.
- Manage pyright version pinning and automatic updates via standard Python dependency tools.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, installs with low friction, uses a permissive MIT license, and solves a real problem—making pyright accessible without a separate Node.js toolchain. It is well-suited for teams that want static type checking without adding Node.js as a system dependency.
Install
pyright on PyPI
Before you install
Low install friction with a pure Python wheel; the package automatically downloads Node.js at runtime via nodeenv if not already present, though an optional nodejs extra is available for alternative provisioning.
Node.js must be available in PATH or will be downloaded at runtime via nodeenv.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal restrictions, making it safe for both open-source and commercial projects.
Quickstart
pip install pyright
pyright --help
Verify before relying
- Whether the optional nodejs extra provides materially better reliability than the default nodeenv approach.
- Performance characteristics when pyright must download and initialize Node.js on first run.
- Compatibility with air-gapped or restricted network environments where npm package downloads may fail.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesnodeenvtyping-extensions |
| Maintenance | Actively maintained 50 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 42,168,725 / month, #659 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: pyright-1.1.411-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “static type checker python”
- pyrightPyright is a Python command-line wrapper that provides static type…
- basedpyrightBasedpyright is a static type checker for Python that forks and…
- mypyMypy is a static type checker for Python that validates type hints at…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also basedpyright · pyrefly · optype · types-awscrt · pylsp-mypy · nodejs-wheel-binaries · types-pycurl · types-s3transfer · types-appdirs · types-smorest