dql.throttle module

Wrapper around the dynamo3 RateLimit class

class dql.throttle.TableLimits[source]

Bases: object

Wrapper around dynamo3.RateLimit

get_limiter(self, table_descriptions)[source]

Construct a RateLimit object from the throttle declarations

load(self, data)[source]

Load the configuration from a save() dict

save(self)[source]

Wrapper around __json__

set_default_limit(self, read='0', write='0')[source]

Set the default table/index limit

set_index_limit(self, tablename, indexname, read='0', write='0')[source]

Set the limit on a global index

set_table_limit(self, tablename, read='0', write='0')[source]

Set the limit on a table

set_total_limit(self, read='0', write='0')[source]

Set the total throughput limit