useful-types is a Python library offering a collection of common type aliases and protocols to reduce boilerplate in projects. It aims to provide frequently used type definitions, such as JSON-related types. The library's types are not specially handled by type checkers, and users are encouraged to vendor them if they wish to avoid a direct dependency. It is currently at version 0.2.1 and maintains an active development cadence with occasional updates to type definitions.
pip install useful-typesVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates the use of `JSONDict` and `JSONType` to define and process data conforming to JSON structures. It shows how to type-hint complex nested JSON data and perform basic operations while maintaining type safety.
Consider whether you want to include 'useful-types' as a dependency or copy the specific type definitions you need directly into your codebase, as recommended by the library author. Either approach is supported.
Ensure your project's type checker (mypy or pyright) meets or exceeds the stated minimum versions. If using another type checker, verify compatibility by running your type checks against the library's types.
No dependency data recorded yet.