pyre-check 0.9.25


pip install pyre-check

  Latest version

Released: Jul 07, 2025

Project Links

Meta
Author: Facebook
Maintainer: Facebook
Requires Python: >=3.8

Classifiers

Development Status
  • 5 - Production/Stable

Environment
  • Console

Intended Audience
  • Developers

License
  • OSI Approved :: MIT License

Operating System
  • MacOS
  • POSIX :: Linux

Programming Language
  • Python
  • Python :: 3
  • Python :: 3.8
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12

Topic
  • Software Development

Typing
  • Typed

tests License: MIT Gitter

[!IMPORTANT]

New Version is Available

Check out Pyrefly, our next-generation Python typechecker and language server.

Pyre is a performant type checker for Python compliant with PEP 484. Pyre can analyze codebases with millions of lines of code incrementally – providing instantaneous feedback to developers as they write code. You can try it out on examples in the Pyre Playground.

Pyre ships with Pysa, a security focused static analysis tool we've built on top of Pyre that reasons about data flows in Python applications. Please refer to our documentation to get started with our security analysis.

Pysa is also available on the GitHub Marketplace as a Github Action

Requirements

To get started, you need Python 3.8 or later and watchman working on your system. On MacOS you can get everything with homebrew:

$ brew install python3 watchman

On Ubuntu, Mint, or Debian; use apt-get and homebrew:

$ sudo apt-get install python3 python3-pip python3-venv
$ brew install watchman

We tested Pyre on Ubuntu 18.04.5 LTS, CentOS 7, as well as OSX 10.11 and later.

Setting up a Project

We start by creating an empty project directory and setting up a virtual environment:

$ mkdir my_project && cd my_project
$ python3 -m venv ~/.venvs/venv
$ source ~/.venvs/venv/bin/activate
(venv) $ pip install pyre-check

Next, we teach Pyre about our new project:

(venv) $ pyre init

This command will set up a configuration for Pyre (.pyre_configuration) as well as watchman (.watchmanconfig) in your project's directory. Accept the defaults for now – you can change them later if necessary.

Running Pyre

We are now ready to run Pyre:

(venv) $ echo "i: int = 'string'" > test.py
(venv) $ pyre
 ƛ Found 1 type error!
test.py:1:0 Incompatible variable type [9]: i is declared to have type `int` but is used as type `str`.

This first invocation will start a daemon listening for filesystem changes – type checking your project incrementally as you make edits to the code. You will notice that subsequent invocations of pyre will be faster than the first one.

For more detailed documentation, see https://pyre-check.org.

Join the Pyre community

See CONTRIBUTING.md for how to help out.

License

Pyre is licensed under the MIT license.

0.9.25 Jul 07, 2025
0.9.23 Oct 29, 2024
0.9.22 Jun 26, 2024
0.9.21 May 10, 2024
0.9.19 Oct 19, 2023
0.9.18 Feb 14, 2023
0.9.17 Nov 08, 2022
0.9.16 Sep 09, 2022
0.9.15 Jun 30, 2022
0.9.14 Jun 27, 2022
0.9.13 Apr 23, 2022
0.9.12 Apr 23, 2022
0.9.11 Apr 21, 2022
0.9.10 Jan 11, 2022
0.9.9 Dec 22, 2021
0.9.8 Oct 29, 2021
0.9.7 Oct 28, 2021
0.9.6 Sep 16, 2021
0.9.4 Aug 31, 2021
0.9.3 May 14, 2021
0.9.2 May 11, 2021
0.9.1 May 04, 2021
0.9.0 Mar 05, 2021
0.0.63 Mar 05, 2021
0.0.62 Mar 04, 2021
0.0.60 Feb 26, 2021
0.0.59 Jan 16, 2021
0.0.58 Nov 12, 2020
0.0.57 Oct 16, 2020
0.0.56 Sep 25, 2020
0.0.55 Sep 18, 2020
0.0.54 Sep 16, 2020
0.0.53 Sep 11, 2020
0.0.52 Aug 03, 2020
0.0.51 Aug 01, 2020
0.0.50 Aug 01, 2020
0.0.49 Jul 31, 2020
0.0.48 Jul 28, 2020
0.0.46 Mar 24, 2020
0.0.45 Mar 23, 2020
0.0.44 Mar 22, 2020
0.0.41 Jan 23, 2020
0.0.40 Jan 23, 2020
0.0.39 Jan 07, 2020
0.0.38 Dec 20, 2019
0.0.37 Dec 18, 2019
0.0.36 Dec 17, 2019
0.0.33 Dec 12, 2019
0.0.32 Oct 03, 2019
0.0.31 Sep 27, 2019
0.0.30 Aug 07, 2019
0.0.29 Jul 10, 2019
0.0.28 Jul 08, 2019
0.0.27 May 18, 2019
0.0.26 May 03, 2019
0.0.25 Apr 30, 2019
0.0.24 Apr 27, 2019
0.0.23 Apr 26, 2019
0.0.22 Apr 04, 2019
0.0.21 Mar 21, 2019
0.0.20 Jan 28, 2019
0.0.19 Jan 26, 2019
0.0.18 Nov 28, 2018
0.0.17 Oct 24, 2018
0.0.16 Oct 11, 2018
0.0.15 Oct 04, 2018
0.0.14 Sep 18, 2018
0.0.12 Sep 13, 2018
0.0.11 Sep 07, 2018
0.0.10 Jul 19, 2018
0.0.9 Jul 09, 2018
0.0.8 Jul 05, 2018
0.0.7 May 23, 2018
0.0.6 May 14, 2018
Extras: None
Dependencies:
click (<8.2.0,>=8.0)
dataclasses-json (==0.5.7)
libcst
psutil
pyre-extensions (>=0.0.29)
tabulate
testslide (>=2.7.0)
typing-extensions
typing-inspect
tomli
tomli-w