Releases: lyft/pynamodb-attributes
Releases · lyft/pynamodb-attributes
v0.5.1
What's Changed
- Export UnicodeProtobufEnumAttribute and make prefix optional by @Roytangrb in #53
New Contributors
- @Roytangrb made their first contribution in #53
Full Changelog: v0.5.0...v0.5.1
Add IntegerSetAttribute
Adding IntegerAttribute
– same as NumberAttribute
but whose value is typed as int
(rather than float
)
What's Changed
New Contributors
Full Changelog: v0.4.0...v0.5.0
Add UnicodeProtobufEnumAttribute
UnicodeProtobufEnumAttribute
is like UnicodeEnumAttribute
but serializes into a Protobuf enum.
v0.3.2: Fix Timedelta*Attribute serialization (#41)
In DynamoDB API, number ("N") data type must be serialized as a JSON string.
Add unicode datetime attribute and Python 3.9 compatibility
Add unicode datetime attribute (#33) UnicodeDatetimeAttribute stores datetimes as 8601 ISO strings with offset. The storage representation of this format will look something like: {"key": {"S": "2020-11-22T03:22:33.444444-08:00"}} The attribute by default will add an offset to UTC if not present and make it timezone aware. It also as options for normalizing the date to UTC (for caching purposes) and adds support for custom formatting.
Compatibility with pynamodb 5.0.0
Update compatibility with pynamodb 5.0 and bump 0.3.0 (#27) * Update compatibility with pynamodb 5.0 * bump 0.3.0 and minimum version of pynamodb * Upgrade pynamodb in pre-commit config too Also run pre-commit autoupdate. * Migrate to github actions * github/workflows: fix triggers and install deps Co-authored-by: francisco souza <[email protected]>
Add Timedelta(Ms,Us)Attribute
Adding TimedeltaAttribute
, TimedeltaMsAttribute
and TimedeltaUsAttribute
which serialize timedelta
objects into DynamoDB numbers as truncated integers (in seconds, milliseconds and microseconds respectively).
v0.2.8: typing: Timestamp*Attributes in actions and conditions (#18)
Allow using Timestamp*Attributes in actions and conditions.
Publish a wheel
0.2.7 Publish a wheel (#17)
Allow TimestampAttribute to be nullable
- Allow
TimestampAttribute
to be nullable.