{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database/4"}],"enrichment":{"capability":"Provides typed attribute classes for PynamoDB that extend DynamoDB's native types with Python-native serialization for enums, timestamps, UUIDs, timedeltas, and composite keys.","skillfed_tags":["dynamodb","orm-extension","type-serialization"],"use_cases":["Store and retrieve Python UUID objects directly in DynamoDB without manual string conversion.","Serialize Python Enum values into DynamoDB attributes while preserving type safety.","Record event timestamps at millisecond or microsecond precision as Unix epoch integers.","Build composite keys using delimited tuples for complex partition or sort key patterns.","Store timedelta durations as integer seconds, milliseconds, or microseconds for duration fields."],"what_it_does":"pynamodb-attributes is a library of pre-built attribute classes that wrap PynamoDB's base types to provide native Python serialization for common data structures. It lets you store Python enums, UUIDs, timedeltas, and timestamps directly in DynamoDB without manual conversion, and adds support for composite keys via delimited tuples. The library is maintained by Lyft and sits on top of pynamodb, the popular DynamoDB ORM for Python.\n\nYou use it by importing the attribute class you need and adding it to your PynamoDB model definition. For example, instead of storing a UUID as a string and converting it yourself, you declare a UUIDAttribute and the library handles serialization to and from DynamoDB's native format. It covers a range of common types\u2014integers, floats, enums (both Python and Protobuf), timestamps at multiple resolutions, and date objects\u2014making model definitions cleaner and reducing boilerplate.","worth_installing":"Yes, if you are already using PynamoDB and need typed attribute support for common Python types. The library is stable, has no known vulnerabilities, and low install friction. However, verify the license status before committing to production use, and be aware that maintenance is aging\u2014last release was March 2024 with no activity since then."},"id":"pynamodb-attributes","links":{"html":"https://skillfed.io/packages/pynamodb-attributes","md":"https://skillfed.io/packages/pynamodb-attributes.md","pypi":"https://pypi.org/project/pynamodb-attributes/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2024-03-12","license_spdx":null,"license_treatment":"unclear","name":"pynamodb-attributes","python_support":"supports_current","summary":"Common attributes for PynamoDB"},"popularity":{"monthly_downloads":175110,"position":10271,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.5.0"}
