{"id":27495,"library":"types-pynamodb","title":"types-pynamodb","description":"A dummy package (version 0.1) providing type stubs for PynamoDB. The actual type hints are under development; this stub package is not yet stable and has limited functionality. Release cadence is unknown.","status":"active","version":"0.1","language":"python","source_language":"en","source_url":"https://github.com/pynamodb/types-pynamodb","tags":["pynamodb","stubs","type-hints"],"install":[{"cmd":"pip install types-pynamodb","lang":"bash","label":"latest"}],"dependencies":[],"imports":[{"note":"types-pynamodb is a stub package; the actual classes live in pynamodb.","wrong":"from types_pynamodb import Model","symbol":"Model","correct":"from pynamodb.models import Model"}],"quickstart":{"code":"from pynamodb.models import Model\nfrom pynamodb.attributes import UnicodeAttribute\n\nclass MyModel(Model):\n    class Meta:\n        table_name = 'my-table'\n        host = os.environ.get('DYNAMODB_HOST', 'http://localhost:8000')\n    name = UnicodeAttribute(hash_key=True)\n\nmodel = MyModel('test')\nprint(model.name)","lang":"python","description":"Basic usage of PynamoDB with type hints provided by types-pynamodb."},"warnings":[{"fix":"Use pynamodb directly with type checking (mypy, pyright). If stubs are missing, consider generating them with stubgen.","message":"types-pynamodb 0.1 is a dummy package; it may not contain complete stubs. Rely on pynamodb's own type hints where possible.","severity":"gotcha","affected_versions":"0.1"},{"fix":"Watch for pynamodb 7.x which may include inline type hints.","message":"This stub package may be deprecated if PynamoDB ships its own type annotations in the future.","severity":"deprecated","affected_versions":"*"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'from pynamodb.models import Model' instead.","cause":"Importing from the stub package instead of the actual library.","error":"Cannot find reference 'Model' in 'types_pynamodb'"},{"fix":"Run 'pip install types-pynamodb' in the correct environment.","cause":"Package not installed or wrong Python environment.","error":"ImportError: No module named 'types_pynamodb'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}