pyre-extensions
Type system extensions for use with the pyre type checker
Decision gist · record as of 2026-08-14
Yes, if you use Pyre for type checking and need ParameterSpecification or type-safe JSON parsing. The low install friction and permissive license make it a low-risk addition. However, dormant maintenance (630 days since last release) means no active bug fixes or feature development; evaluate whether your use case requires these features and whether safe_json meets your performance and validation needs.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with only two runtime dependencies (typing-inspect and typing-extensions).
- Dormant maintenance status—last release 630 days ago—suggests stability but no active development.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive) imposes no restrictions on use, modification, or redistribution in proprietary or open-source projects.
last release 2024-11-22 (630 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,706,205 downloads/mo, #3,634 on PyPI
Alternatives
Verify before relying
pip install pyre-extensions
from pyre_extensions import safe_json
from typing import List
result = safe_json.loads('[1, 2, 3]', List[int])
print(result) # [1, 2, 3]- Whether ParameterSpecification remains necessary given native ParamSpec support in recent Python versions
- Current compatibility with modern Python versions and Pyre's latest releases
- Whether safe_json validation performance is suitable for large or streaming JSON
What it is and what it does
Pyre Extensions is a companion library to the Pyre type checker that adds three main capabilities to Python's typing system. It defines ParameterSpecification, a special type variable that captures callable parameter specifications (argument names, types, and whether they're required) rather than just types—useful for typing decorators that preserve a function's signature while transforming its return type. It provides none_throws, a utility function that asserts an Optional value is not None and returns it, making assumptions about Optional types explicit in code. It also includes safe_json, a drop-in replacement for the standard json module that validates parsed JSON against a specified type schema (using TypedDict for complex structures) and raises InvalidJson if the data doesn't match.
The package is designed as a lightweight companion to Pyre, with minimal dependencies (only typing-inspect and typing-extensions). It has been dormant for 630 days, suggesting the API is stable but no longer under active development. The library is classified as Alpha and intended for developers using Pyre for static type checking who need these specific typing patterns.
Use it for
- Type decorators that preserve function signatures while changing return types using ParameterSpecification
- Validating JSON API responses against a TypedDict schema before processing
- Making Optional type handling explicit by asserting non-None values with none_throws
- Parsing configuration files with known structure and enforcing type safety at load time
- Catching JSON schema mismatches early in development rather than at runtime
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use Pyre for type checking and need ParameterSpecification or type-safe JSON parsing.
The low install friction and permissive license make it a low-risk addition. However, dormant maintenance (630 days since last release) means no active bug fixes or feature development; evaluate whether your use case requires these features and whether safe_json meets your performance and validation needs.
Install
pyre-extensions on PyPI
Before you install
Low install friction with only two runtime dependencies (typing-inspect and typing-extensions). Dormant maintenance status—last release 630 days ago—suggests stability but no active development.
License in practice
MIT license (permissive) imposes no restrictions on use, modification, or redistribution in proprietary or open-source projects.
Quickstart
pip install pyre-extensions
from pyre_extensions import safe_json
from typing import List
result = safe_json.loads('[1, 2, 3]', List[int])
print(result) # [1, 2, 3]
Verify before relying
- Whether ParameterSpecification remains necessary given native ParamSpec support in recent Python versions
- Current compatibility with modern Python versions and Pyre's latest releases
- Whether safe_json validation performance is suitable for large or streaming JSON
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagestyping-inspecttyping-extensions |
| Maintenance | Dormant 630 days since the last release |
| First released | |
| Downloads | 1,706,205 / month, #3,634 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonTopic :: Software DevelopmentTyping :: Typed |
Evidence: pyre_extensions-0.0.32-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 › “pyre type checker extensions”
- pyre-extensionsProvides typing extensions for the Pyre type checker, including…
- mypy-extensionsProvides type system extensions for Python programs checked with…
- pyreflyPyrefly is a fast type checker and language server for Python that…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also typing-inspect · django-types · result · typing-validation · mypy-extensions · typing-json · pyre-check · strongtyping · dacite · pyrefly