Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1 KB

README.md

File metadata and controls

30 lines (23 loc) · 1 KB

EN | JA

License Language Test


AWS Chains

AWS Chains is a wrapper for writing boto3 as method chain.

DynamoChain

How to Use

  1. Query to DynamoDB
    result = (
        Query(table)
        .partition_key_exp(Key("ForumName").eq("Amazon S3"))
        .sort_key_exp(Key("Subject").gte("S3 Thread 2"))
        .filter_exp(Attr("LastPostedBy").eq("User A"))
        .filter_exp(Attr("Views").eq(1))
        .projection_exp("ForumName, Subject, Message")
        .projection_exp("LastPostedBy, LastPostedDateTime, Views")
        .desc()
        .run()
    )