Changelogs » Pynamodb

PyUp Safety actively tracks 382,903 Python packages for vulnerabilities and notifies you when to upgrade.

Pynamodb

5.2.0

This is a backwards compatible, minor release.
  
  Please read the [release notes](https://github.com/pynamodb/PynamoDB/blob/master/docs/release_notes.rst#v520) for a full list of changes.

5.1.0

* Introduce ``DynamicMapAttribute`` to enable partially defining attributes on a ``MapAttribute`` (868)
  * Quality of life improvements: Type annotations, better comment, more resilient test (934, 936, 948)
  * Fix type annotation of ``is_in`` conditional expression (947)
  * Null errors should include full attribute path (915)
  * Fix for serializing and deserializing dates prior to year 1000 (949)

5.0.3


        

5.0.2

It is more efficient not to serialize attributes you don't need, and it also avoids tripping null-checks on unrelated attributes when doing updates or deletes.

5.0.1


        

5.0.0

This is a major release with breaking changes.
  
  Please read the [release notes](https://github.com/pynamodb/PynamoDB/blob/master/docs/release_notes.rst#v500) carefully for a full list of changes.

5.0.0b4

This is a beta release for a major release with breaking changes.
  
  Please read the [release notes](https://github.com/pynamodb/PynamoDB/blob/master/docs/release_notes.rst#v500b4) carefully and report any bugs encountered.

5.0.0b3

This is a beta release for a major release with breaking changes.
  
  Please read the [release notes](https://github.com/pynamodb/PynamoDB/blob/master/docs/release_notes.rst#v500b3) carefully and report any bugs encountered.

5.0.0b2

This is a beta release for a major release with breaking changes.
  
  Please read the [release notes](https://github.com/pynamodb/PynamoDB/blob/master/docs/release_notes.rst#v500b2) carefully and report any bugs encountered.

5.0.0b1

This is a beta release for a major release with breaking changes. Please read the release notes carefully and report any bugs encountered.

4.3.3

This is a backwards compatible, minor release.
  
  Please read the [release notes](https://github.com/pynamodb/PynamoDB/blob/master/docs/release_notes.rst#v433) for a full list of changes.

4.3.2

This is a backwards compatible, minor release.
  
  Please read the [release notes](https://github.com/pynamodb/PynamoDB/blob/master/docs/release_notes.rst#v432) for a full list of changes.

4.3.1

This is a backwards compatible, minor release.
  
  Please read the [release notes](https://github.com/pynamodb/PynamoDB/blob/master/docs/release_notes.rst#v431) for a full list of changes.

4.3.0

This is a backwards compatible, minor release.
  
  Please read the [release notes](https://github.com/pynamodb/PynamoDB/blob/master/docs/release_notes.rst#v430) for a full list of changes.

4.2.0

This is a backwards compatible, minor release.
  
  Please read the [release notes](https://github.com/pynamodb/PynamoDB/blob/master/docs/release_notes.rst#v420) for a full list of changes.

4.1.0

This is a backwards compatible, minor release.
  
  * In the Model's Meta, you may now provide an AWS session token, which is mostly useful for assumed roles (700):
  python
  sts_client = boto3.client("sts")
  role_object = sts_client.assume_role(RoleArn=role_arn, RoleSessionName="role_name", DurationSeconds=BOTO3_CLIENT_DURATION)
  role_credentials = role_object["Credentials"]
  
  class MyModel(Model):
  class Meta:
  table_name = "table_name"
  aws_access_key_id = role_credentials["AccessKeyId"]
  aws_secret_access_key = role_credentials["SecretAccessKey"]
  aws_session_token = role_credentials["SessionToken"]
  
  hash = UnicodeAttribute(hash_key=True)
  range = UnicodeAttribute(range_key=True)
  
  * Fix warning about inspect.getargspec (701)
  * Fix provisioning GSIs when using pay-per-request billing (690)
  * Suppress Python 3 exception chaining when "re-raising" botocore errors as PynamoDB model exceptions (705)

4.0.0

This is a major release with breaking changes.
  
  Please read the [release notes](https://github.com/pynamodb/PynamoDB/blob/master/docs/release_notes.rst#v400) carefully for a full list of changes.

4.0.0b3

This is a beta release for a major release with breaking changes. Please read the release notes carefully and report any bugs encountered.

4.0.0b2

This is a beta release for a major release with breaking changes. Please read the release notes carefully and report any bugs encountered.

4.0.0b1

This is a beta release for a major release with breaking changes. Please read the release notes carefully and report any bugs encountered.

4.0.0a1

This is an alpha release for a major release with breaking changes. Please read the release notes carefully and report any bugs encountered.

3.4.1


        

3.4.0

This is a backwards compatible minor release introducing TTL support.
  
  Check out the [release notes](https://github.com/pynamodb/PynamoDB/blob/3.4.0/docs/release_notes.rst#v340) for a full list of changes.

3.3.3

This is a backwards compatible, minor bug fix release.
  
  Check out the [release notes](https://github.com/pynamodb/PynamoDB/blob/master/docs/release_notes.rst#v333) for a full list of changes.

3.3.2

This is a backwards compatible, minor bug fix release.
  
  Check out the [release notes](https://github.com/pynamodb/PynamoDB/blob/master/docs/release_notes.rst#v332) for a full list of changes.

3.3.1

This is a backwards compatible, minor bug fix release.
  
  Check out the [release notes](https://github.com/pynamodb/PynamoDB/blob/master/docs/release_notes.rst#v331) for a full list of changes.

3.3.0

This is a backwards compatible, major bug fix release.
  
  Check out the [release notes](https://github.com/pynamodb/PynamoDB/blob/master/docs/release_notes.rst#v330) for a full list of changes.

3.2.1

- Removes experimental Throttle api.
  - Supports pagination in high-level api query and scan methods.
  - Fixes deserialization in Model.refresh() and Model.loads().
  - Fixes bypassing serialization of NULL nested attributes.
  - Fixes legacy update item subset removal using DELETE operator.
  - Handles attributes that cannot be retrieved by getattr.

2.2.0

Prepare users to upgrade to v3.0.1+ (see issue 377 for details).

1.5.4

Prepare users to upgrade to v1.6.0+ (see issue 377 for details).