pynamodb-attributes-0.5.0


توضیحات

Common attributes for PynamoDB
ویژگی مقدار
سیستم عامل -
نام فایل pynamodb-attributes-0.5.0
نام pynamodb-attributes
نسخه کتابخانه 0.5.0
نگهدارنده ['Lyft']
ایمیل نگهدارنده ['ikonstantinov@lyft.com']
نویسنده -
ایمیل نویسنده -
آدرس صفحه اصلی https://www.github.com/lyft/pynamodb-attributes
آدرس اینترنتی https://pypi.org/project/pynamodb-attributes/
مجوز -
This Python 3 library contains compound and high-level PynamoDB attributes: - `FloatAttribute` – same as `NumberAttribute` but whose value is typed as `float` - `IntegerAttribute` – same as `NumberAttribute` but whose value is typed as `int` (rather than `float`) - `IntegerSetAttribute` – same as `NumberSetAttribute` 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 - `UnicodeProtobufEnumAttribute` - serializes a Protobuf enum into a Unicode (`S`-typed) attribute - `IntegerEnumAttribute` - serializes a int-valued `Enum` into a number (`N`-typed) attribute - `TimedeltaAttribute`, `TimedeltaMsAttribute`, `TimedeltaUsAttribute` – serializes `timedelta`s as integer seconds, milliseconds (ms) or microseconds (µs) - `TimestampAttribute`, `TimestampMsAttribute`, `TimestampUsAttribute` – serializes `datetime`s 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'`) - `UnicodeDatetimeAttribute` - ISO8601 datetime strings with offset information ## Testing The tests in this repository use an in-memory implementation of [`dynamodb`](https://aws.amazon.com/dynamodb). To run the tests locally, make sure [DynamoDB Local](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html) is running. It is available as a standalone binary, through package managers (e.g. [Homebrew](https://formulae.brew.sh/cask/dynamodb-local)) or as a Docker container: ```shell docker run -d -p 8000:8000 amazon/dynamodb-local ``` Afterwards, run tests as usual: ```shell pytest tests ```


نیازمندی

مقدار نام
=5.0. pynamodb


زبان مورد نیاز

مقدار نام
>=3 Python


نحوه نصب


نصب پکیج whl pynamodb-attributes-0.5.0:

    pip install pynamodb-attributes-0.5.0.whl


نصب پکیج tar.gz pynamodb-attributes-0.5.0:

    pip install pynamodb-attributes-0.5.0.tar.gz