pynamodb-attributes icon indicating copy to clipboard operation
pynamodb-attributes copied to clipboard

Common attributes for PynamoDB

Results 7 pynamodb-attributes issues
Sort by recently updated
recently updated
newest added

The table: ```py class EventTypeIndex(GlobalSecondaryIndex): class Meta: index_name = "EventTypeIndex" projection = AllProjection() event_type = UnicodeEnumAttribute( LogEventTypeEnum, hash_key=True, unknown_value=LogEventTypeEnum.GENERIC, default_for_new=LogEventTypeEnum.GENERIC, ) class Logs(Model): class Meta: table_name = "Logs" region =...

[Arrow](https://github.com/arrow-py/arrow) is often used to handle dates & times in Python. I suggest making "ArrowAttribute" and if it's okay, I will work some. ex. deserialize: int(dynamodb 'N' type) -> arrow...

when you have a tuple where a type of the field is `Optional[*]` it becomes a `Union` type and breaks when trying to deserialize `None` to whatever value it expects....

Currently `pynamodb-attributes` is bundling its test suite into `site-packages`, which causes problems with build tooling such as Bazel where it's treating `tests` as a third party import and conflicting with...

Using a MapAttribute as a raw container that has Enum values does not work. eg ```python class MyModel(Model): # this does not work as expected - errors on serialization my_enum_mapping...

This adds a new field, NaturalUnicodeDelimitedTupleAttribute that extends UnicodeDelimitedTupleAttribute with datetime object handling and also implements zero padding of integers and floats. The motivation was the need for natural sort...

The deserialization of the UnicodeDelimitedTupleAttribute does not support `datetime` objects and results in the error: "TypeError: 'str' object cannot be interpreted as an integer" It would be useful for this...