aws_tools package¶
Submodules¶
aws_tools.dynamodb_handler module¶
-
class
aws_tools.dynamodb_handler.
DynamoDBHandler
(table_name, aws_access_key_id=None, aws_secret_access_key=None, aws_region_name=u'us-west-2')[source]¶ Bases:
object
-
get_item_count
()[source]¶ get number of items in table - one caveat is that this value may be off since AWS only updates it every 6 hours :return:
-
query_items
(query=None, only_fields_with_values=True, query_chunk_limit=-1)[source]¶ gets items from database (this actually does scan, not query. See query_raw() for true query) :param query: :param only_fields_with_values: :param query_chunk_limit: not an absolute count, but a threshold where we stop fetching more chunks
(if negative then no limit, but will read all chunks)Returns:
-
aws_tools.s3_handler module¶
-
class
aws_tools.s3_handler.
S3Handler
(bucket_name=None, aws_access_key_id=None, aws_secret_access_key=None, aws_region_name=u'us-west-2')[source]¶ Bases:
object
-
download_file
(key, local_file)[source]¶ Download file from S3 bucket. Similar to s3.download_file except that does not play nicely with moto, this however, does. :param string key: object to download :param string local_file: file to download to
-