Common attributes for PynamoDB
Project description
This Python 3 library contains compound and high-level PynamoDB attributes:
FloatAttribute– same asNumberAttributebut whose value is typed asfloatIntegerAttribute– same asNumberAttributebut whose value is typed asint(rather thanfloat)IntegerSetAttribute– same asNumberSetAttributebut whose value is typed asint(rather thanfloat)UnicodeDelimitedTupleAttribute- a delimiter-separated value, useful for storing composite keysUnicodeEnumAttribute- serializes a string-valuedEnuminto a Unicode (S-typed) attributeUnicodeProtobufEnumAttribute- serializes a Protobuf enum into a Unicode (S-typed) attributeIntegerEnumAttribute- serializes a int-valuedEnuminto a number (N-typed) attributeTimedeltaAttribute,TimedeltaMsAttribute,TimedeltaUsAttribute– serializestimedeltas as integer seconds, milliseconds (ms) or microseconds (µs)TimestampAttribute,TimestampMsAttribute,TimestampUsAttribute– serializesdatetimes as Unix epoch seconds, milliseconds (ms) or microseconds (µs)IntegerDateAttribute- serializesdateas an integer representing the Gregorian date (e.g.20181231)UUIDAttribute- serializes aUUIDPython object as aStype attribute (e.g.'a8098c1a-f86e-11da-bd1a-00112444be1e')UnicodeDatetimeAttribute- ISO8601 datetime strings with offset information
Testing
The tests in this repository use an in-memory implementation of dynamodb. To run the tests locally, make sure DynamoDB Local is running. It is available as a standalone binary, through package managers (e.g. Homebrew) or as a Docker container:
docker run -d -p 8000:8000 amazon/dynamodb-local
Afterwards, run tests as usual:
pytest tests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pynamodb-attributes-0.5.0.tar.gz.
File metadata
- Download URL: pynamodb-attributes-0.5.0.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b3205d03c4c2c1beb1da7a910262bddd18489bc6fb9b72a8bfb710a10dff4d0
|
|
| MD5 |
fe46a277b48bd27427de9faf7ef84095
|
|
| BLAKE2b-256 |
4d2450d05a16e929582a8bc2bea6c1dc950686ab60f4cddec677b01aa92ead7e
|
File details
Details for the file pynamodb_attributes-0.5.0-py2.py3-none-any.whl.
File metadata
- Download URL: pynamodb_attributes-0.5.0-py2.py3-none-any.whl
- Upload date:
- Size: 27.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b625eb979a4c5ee94f9813f16b270742be6af68333c9ba5a2c60c92501ccf533
|
|
| MD5 |
b34154f155530ca4f6172c5e0b4c1909
|
|
| BLAKE2b-256 |
955b90d93a063dbc58564498f4349f7b7251df3a38ccc42198458ffeeca2918d
|