Skip to content

Pyre

Pyre is a fast, integrated type-checker for Python 3, enhancing code quality and security with static analysis.

Freemium · Python 3

Pyre in short

Pyre offers performant static type checking for large Python codebases, but it's likely overkill for small projects.
stork0:00 / 0:04
Ava, one of 89 voices. Press play.
A voiceover costs 5 cents a minute.
Type up to 20,000 characters, get an MP3. 89 voices, 38 languages. Three free a day, a minute each.
Make a voiceover

What is Pyre?

Pyre is a static type checker tool developed by Meta (formerly Facebook and Instagram) that enables developers to enhance code quality and security with static analysis. It supports gradual typing and delivers responsive incremental checks on large codebases. Designed for Python 3, Pyre performs static analysis to identify type-related bugs before runtime, improving code readability and maintainability. A key differentiator is its integration with Pysa, a security-focused static analysis tool that reasons about data flows in Python applications at scale to detect potential vulnerabilities. Pyre is built for performance on extensive codebases, including those with millions of lines of Python code, providing quick feedback through incremental checks. Meta is currently transitioning development efforts to Pyrefly, a Rust-based successor aiming for enhanced type inference and performance, with an early preview playground made available in March 2025.

Key Features of Pyre

Pyre offers a robust set of features designed to improve Python code quality, security, and developer efficiency through static analysis:

  • Performant static type checking for Python 3 codebases.
  • Support for gradual typing, allowing incremental annotation of existing untyped code.
  • Responsive incremental checks, optimized for large codebases with millions of lines of code.
  • Interactive flagging of type errors directly in the terminal or within integrated development environments (IDEs) via editor extensions.
  • Integration with Pysa, a security-focused static analysis tool, for deep data flow analysis.
  • Identification of potential security issues and reasoning about data flows within Python applications.
  • Enhances overall code quality and accelerates development speed by catching errors early.
  • Supports the Language Server Protocol (LSP) for broad IDE compatibility.
  • Provides a dedicated VSCode extension for an integrated user experience.

Who Should Use Pyre?

Pyre is primarily targeted at developers and organizations seeking to enhance the reliability, maintainability, and security of their Python 3 applications. Its design caters to specific development needs:

  • Developers: For early bug detection, improving code quality, and ensuring type consistency in Python projects during the development phase.
  • Organizations with large Python codebases: To leverage performant incremental type checking, maintain code health, and manage complexity across extensive projects.
  • Teams focused on application security: To utilize Pysa's capabilities for identifying data flow vulnerabilities and potential security issues within their Python applications.
  • Developers migrating untyped codebases: To gradually introduce type annotations and transition to fully typed code without disrupting existing functionality.

Pyre Pricing & Plans

Pyre is an open-source tool and is available for free. There are no direct pricing plans, subscription costs, or paid tiers associated with its use. It can be installed via pip, the Python package installer, without any licensing fees. Meta, its developer, maintains Pyre as a community-driven project, making its advanced static analysis and security features accessible to all Python developers.

  • No paid tiers available.

Pyre vs Competitors

Pyre operates within a competitive landscape of Python static type checkers, each with distinct strengths and development philosophies:

Pyre

Freemium · Python 3

From the Stork blog

Enjoying this? Get one like it in your inbox each morning.

one email a day · unsubscribe in two clicks · no third-party tracking