{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/5"}],"enrichment":{"capability":"Provides typing extensions for the Pyre type checker, including ParameterSpecification for decorator typing, none_throws for explicit Optional handling, and safe_json for type-safe JSON parsing.","skillfed_tags":["type-checking","pyre-companion","json-validation"],"use_cases":["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"],"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\u2014useful 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.\n\nThe 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.","worth_installing":"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."},"id":"pyre-extensions","links":{"html":"https://skillfed.io/packages/pyre-extensions","md":"https://skillfed.io/packages/pyre-extensions.md","pypi":"https://pypi.org/project/pyre-extensions/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-11-22","license_spdx":null,"license_treatment":"permissive","name":"pyre-extensions","python_support":"unspecified","summary":"Type system extensions for use with the pyre type checker"},"popularity":{"monthly_downloads":1706205,"position":3634,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.0.32"}
