Skip to content
Common attributes for PynamoDB
Python Makefile
Branch: master
Clone or download
NazarioJL Add UUID attribute type (#6)
* Adds UUIDAttribute to pynamodb_attributes
  * Custom attribute is backed by unicode 'S' type in DynamoDB type
* Adds docs and bumps number
* Adds tests
Latest commit 446b922 Jul 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
pynamodb_attributes Add UUID attribute type (#6) Jul 16, 2019
tests Add UUID attribute type (#6) Jul 16, 2019
.gitignore Add UUID attribute type (#6) Jul 16, 2019
.pre-commit-config.yaml Bump pre-commit hook versions (#10) Jun 25, 2019
.travis.yml Encrypt credentials for travis-ci.com Dec 19, 2018
CODE_OF_CONDUCT.md
LICENSE Initial commit Dec 19, 2018
Makefile Initial commit Dec 19, 2018
NOTICE Initial commit Dec 19, 2018
README.md Add UUID attribute type (#6) Jul 16, 2019
requirements.txt Bump requirements (mypy, pytest etc.) (#9) Jun 24, 2019
setup.cfg Bump requirements (mypy, pytest etc.) (#9) Jun 24, 2019
setup.py

README.md

Table of Contents generated with DocToc

pynamodb-attributes

This Python 3 library contains compound and high-level PynamoDB attributes:

  • IntegerAttribute – same as NumberAttribute but whose value is typed as int (rather than float)
  • UnicodeDelimitedTupleAttribute - a delimiter-separated value, useful for storing composite keys
  • UnicodeEnumAttribute - serializes a string-valued Enum into a Unicode (S-typed) attribute
  • TimestampAttribute, TimestampMsAttribute, TimestampUsAttribute – serializes datetimes as Unix epoch seconds, milliseconds (ms) or microseconds (µs)
  • IntegerDateAttribute - serializes date as an integer representing the Gregorian date (e.g. 20181231)
  • UUIDAttribute - serializes a UUID Python object as a S type attribute (e.g. 'a8098c1a-f86e-11da-bd1a-00112444be1e')
You can’t perform that action at this time.