Skip to main content

A fast type checker and language server for Python with powerful IDE features

Project description

Pyrefly: A fast type checker and language server for Python with powerful IDE features

pyrefly PyPI VS Code Open VSX Discord License: MIT

Pyrefly is a type checker and language server for Python, which provides lightning-fast type checking along with IDE features such as code navigation, semantic highlighting, and code completion. It is available as a command-line tool and an extension for popular IDEs and editors such as VSCode, Neovim, Zed, and more.

See the Pyrefly website for full documentation and how to add Pyrefly to your editor of choice.

Pyrefly is currently in beta.

Key Features

  • Fast. Pyrefly checks over 1.85 million lines of code per second, type checking projects like PyTorch 15x faster than Mypy and Pyright. In the IDE, rechecks typically complete in under 10 milliseconds after saving a file.
  • Production-proven at scale. Pyrefly is the default type checker for Instagram's 20-million-line Python codebase at Meta, and has been adopted by large open source projects including PyTorch and JAX.
  • Full-featured language server. Code navigation, autocomplete, hover information, inlay hints, semantic highlighting, and more, with consistent results across the CLI and your editor of choice.
  • Understands real-world Python. Built-in support for frameworks like Pydantic and Django, with model validation, field types, and autocomplete that work out of the box.
  • Adoption-ready. Migrate from Mypy or Pyright with pyrefly init, silence existing errors with pyrefly suppress, and generate type annotations with pyrefly infer. Start with one file and expand at your own pace.

Getting Started

Version Policy

Pyrefly releases new minor versions (0.x.0) weekly, with patch fixes (0.x.y) in between as needed. Pyrefly does not follow strict semantic versioning: any version may introduce new type errors and other breaking changes. The pyrefly suppress command can be used to easily silence errors when upgrading to a new version.

Getting Involved

If you have questions or would like to report a bug, please create an issue.

See our contributing guide and architecture overview for information on how to contribute to Pyrefly.

Join our Discord to chat about Pyrefly and types. This is also where we hold biweekly office hours.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrefly-0.64.0.tar.gz (5.7 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyrefly-0.64.0-py3-none-win_arm64.whl (12.5 MB view details)

Uploaded Python 3Windows ARM64

pyrefly-0.64.0-py3-none-win_amd64.whl (13.1 MB view details)

Uploaded Python 3Windows x86-64

pyrefly-0.64.0-py3-none-win32.whl (12.2 MB view details)

Uploaded Python 3Windows x86

pyrefly-0.64.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (42.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

pyrefly-0.64.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (37.9 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

pyrefly-0.64.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl (39.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ i686

pyrefly-0.64.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (37.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

pyrefly-0.64.0-py3-none-macosx_11_0_arm64.whl (12.8 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

pyrefly-0.64.0-py3-none-macosx_10_12_x86_64.whl (13.3 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file pyrefly-0.64.0.tar.gz.

File metadata

  • Download URL: pyrefly-0.64.0.tar.gz
  • Upload date:
  • Size: 5.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyrefly-0.64.0.tar.gz
Algorithm Hash digest
SHA256 fbfcdb0031adadc340b6c64cb41c6094c95349ee952fe3d4c143866add829172
MD5 6e750923842c20c0404af679ab32d094
BLAKE2b-256 8599923622d7b52ef84e83f357b19bd08dff063ccc5f4472b003105e1f308d93

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrefly-0.64.0.tar.gz:

Publisher: publish_to_pypi.yml on facebook/pyrefly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyrefly-0.64.0-py3-none-win_arm64.whl.

File metadata

  • Download URL: pyrefly-0.64.0-py3-none-win_arm64.whl
  • Upload date:
  • Size: 12.5 MB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyrefly-0.64.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 73744bd95e836abda0d08e9cdcf008142090ae0124c8f8ff477c944b60c0343c
MD5 772f99b82925a77672180b74b0441be6
BLAKE2b-256 50bb9ea1c26b511b38a3e1eefc1bd3de7d3f65b2bbfdb59295f3244f61564a81

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrefly-0.64.0-py3-none-win_arm64.whl:

Publisher: publish_to_pypi.yml on facebook/pyrefly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyrefly-0.64.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: pyrefly-0.64.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 13.1 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyrefly-0.64.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e88fc6a83add9b7c2224be0f74df1b0db10b3af856ae30e4e0a90ba3644c712f
MD5 637c9e3d00527ba93b9553bfdbb23107
BLAKE2b-256 0a15653523d99795041a1be6dadf7a73225317cb2aae4b21e6df57edbce807f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrefly-0.64.0-py3-none-win_amd64.whl:

Publisher: publish_to_pypi.yml on facebook/pyrefly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyrefly-0.64.0-py3-none-win32.whl.

File metadata

  • Download URL: pyrefly-0.64.0-py3-none-win32.whl
  • Upload date:
  • Size: 12.2 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyrefly-0.64.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 20317f6dd97e22bc508b8dbc537e59b0ab58e384113ee61920c87ed1a6a12f62
MD5 c8a0c68afa7ace0079d64168ad47251e
BLAKE2b-256 47f74b66934e375dde3e4d75373b1a94eb7e7c0c0c788e94267641a223930180

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrefly-0.64.0-py3-none-win32.whl:

Publisher: publish_to_pypi.yml on facebook/pyrefly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyrefly-0.64.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyrefly-0.64.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2a259925620a84fe87cd30a82643ec524eeef631f0c4ec5af81a21e006c2f5b1
MD5 4402906c8ad4e1f76a01aae5cfecb531
BLAKE2b-256 e51bf5390f8678433708288afab13f043ddd021a55dba3f665360d2c9396ee04

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrefly-0.64.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish_to_pypi.yml on facebook/pyrefly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyrefly-0.64.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for pyrefly-0.64.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 6850b305d45121911fbe25ad56497d2e887b387ea50644ba15a8ad2a8cf855f4
MD5 e64d325d0493d8cb650490924cea1e17
BLAKE2b-256 9a4b0afb4ad02eb67ddb299ff3f7108ceb307e520578b00e900d07f2371423ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrefly-0.64.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl:

Publisher: publish_to_pypi.yml on facebook/pyrefly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyrefly-0.64.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for pyrefly-0.64.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 d062ac1744346efacd7df23c6bbff662ad29ed495923cb59ede656a306355655
MD5 46b1e2928e3ed8b9044eeb0cff2c0197
BLAKE2b-256 73dd0b40175e930a96139a8e9f62a8e1db7f9a5e9df8e6cef08bf280affcb05e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrefly-0.64.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl:

Publisher: publish_to_pypi.yml on facebook/pyrefly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyrefly-0.64.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyrefly-0.64.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c2ae557e1b6a6a5bda844806cae10b212cf84ea786ece10d55083a0321ee1705
MD5 a7f4dac4f47dfa86c9452bbd97df38ee
BLAKE2b-256 d62b3f347b8d97c9065d6ace14a22591c8d91e64610e74e0d4f214b3025ebcf7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrefly-0.64.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: publish_to_pypi.yml on facebook/pyrefly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyrefly-0.64.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyrefly-0.64.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 96913cc4f066a7bd008b9dba8e3951234e92bb8a3a2cb1aea0e274fd2a444c55
MD5 ce3f03ec0c138c8253a2d78e0b94c54a
BLAKE2b-256 89021e6fcd311bd7c24aaccc0afb998d584e1fa6c370e1428b4b091103760efe

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrefly-0.64.0-py3-none-macosx_11_0_arm64.whl:

Publisher: publish_to_pypi.yml on facebook/pyrefly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyrefly-0.64.0-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pyrefly-0.64.0-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 683b317d8d0e815fb2ad75b7e0fa6c15eed5be4bcbc407dc13312984da3a9c47
MD5 d1266d51e78c1188d03d8c425bc598f9
BLAKE2b-256 b81cb001b7e84a811dbb3c85e31bd4bfc3edfa3c94438140cd1d6e8c06b7c1df

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrefly-0.64.0-py3-none-macosx_10_12_x86_64.whl:

Publisher: publish_to_pypi.yml on facebook/pyrefly

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page