Skip to content

Releases: lyft/pynamodb-attributes

v0.5.1

17 May 15:09
af4b50f
Compare
Choose a tag to compare

What's Changed

  • Export UnicodeProtobufEnumAttribute and make prefix optional by @Roytangrb in #53

New Contributors

Full Changelog: v0.5.0...v0.5.1

Add IntegerSetAttribute

12 Mar 21:51
1a74dea
Compare
Choose a tag to compare

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

26 Aug 18:38
fe416dd
Compare
Choose a tag to compare

UnicodeProtobufEnumAttribute is like UnicodeEnumAttribute but serializes into a Protobuf enum.

v0.3.2: Fix Timedelta*Attribute serialization (#41)

12 Apr 21:07
c9c8493
Compare
Choose a tag to compare
In DynamoDB API, number ("N") data type must be serialized as a JSON string.

Add unicode datetime attribute and Python 3.9 compatibility

19 Jul 18:22
7a8ea99
Compare
Choose a tag to compare
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

28 Jan 16:24
270400d
Compare
Choose a tag to compare
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

22 Jul 14:39
289f2df
Compare
Choose a tag to compare

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)

06 Jul 16:19
15e9b28
Compare
Choose a tag to compare
Allow using Timestamp*Attributes in actions and conditions.

Publish a wheel

13 Apr 16:40
aaed8d6
Compare
Choose a tag to compare
0.2.7

Publish a wheel (#17)

Allow TimestampAttribute to be nullable

18 Dec 22:07
Compare
Choose a tag to compare
  • Allow TimestampAttribute to be nullable.