Registry / type-stubs / types-pynamodb

types-pynamodb

JSON →
library0.1pypypiunverified

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.

pip install types-pynamodb
INSTALL
IMPORT
SIG · TYPES-PYNAMODB
T
types-pynamodb
type-stubspythonv0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Model
from pynamodb.models import Model
from types_pynamodb import Model
types-pynamodb is a stub package; the actual classes live in pynamodb.

Basic usage of PynamoDB with type hints provided by types-pynamodb.

from pynamodb.models import Model from pynamodb.attributes import UnicodeAttribute class MyModel(Model): class Meta: table_name = 'my-table' host = os.environ.get('DYNAMODB_HOST', 'http://localhost:8000') name = UnicodeAttribute(hash_key=True) model = MyModel('test') print(model.name)
Debug
Known issues
gotchatypes-pynamodb 0.1 is a dummy package; it may not contain complete stubs. Rely on pynamodb's own type hints where possible.
fix
Use pynamodb directly with type checking (mypy, pyright). If stubs are missing, consider generating them with stubgen.
affects: 0.1
deprecatedThis stub package may be deprecated if PynamoDB ships its own type annotations in the future.
fix
Watch for pynamodb 7.x which may include inline type hints.
affects: *
Upgrade
Version history
0.1latest on PyPI · released Jun 8, 2021
Audit
Dependencies

No dependency data recorded yet.

Agent activity
48 hits · last 30 days
node
42
Meta
2
OpenAI (training)
1
Resources
types-pynamodb — pip install types-pynamodb · libregistry