{"library":"named","title":"named","description":"A Python library providing named types (newtypes) with runtime validation and type-checking support. Current version 1.4.2, requires Python ≥3.8, follows semantic versioning with regular releases.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install named"],"cli":null},"imports":["import named"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import named\n\n# Define a named type for UserId\nclass UserId(named.Named):\n    pass\n\n# Create an instance with validation\nuid = UserId(42)\nprint(uid)  # UserId(42)\n\n# Access the underlying value\nprint(uid.value)  # 42","lang":"python","description":"Define a named type by subclassing `Named`. The subclass provides runtime type checking and can be used with type hints.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}