{"library":"phantom-types","type":"library","category":null,"description":"phantom-types is a Python library that enables the creation of 'phantom types' to enforce type safety at compile time without incurring runtime overhead. It leverages Python's `__instancecheck__` protocol and boolean predicates to allow developers to define stricter type constraints, helping to make 'illegal states unrepresentable' and mitigate 'shotgun parsing'. The library is currently at version 3.0.2 and follows semantic versioning after its 1.0 release, with new versions released periodically to add features, fix bugs, and maintain compatibility.","language":"python","status":"active","version":"3.0.2","tags":["type-checking","phantom-types","static-analysis","python3"],"install":[{"cmd":"pip install phantom-types","imports":["from phantom import Phantom","from phantom.predicates.collection import contained","from phantom.datetime import TZAware"]},{"cmd":"pip install phantom-types[all]","imports":[]}],"homepage":null,"github":"https://github.com/antonagestam/phantom-types","docs":"https://phantom-types.readthedocs.io/en/stable/","changelog":null,"pypi":"https://pypi.org/project/phantom-types/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":4.5,"avg_import_s":0.76,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/phantom-types/compatibility"},"provenance":{"verified_status":"passing","verified_at":"Sun Jun 28","last_verified":"Sun Jun 28","next_check":"Tue Jul 28","install_tag":null}}