@classmethod<EOL><INDENT>def from_description(cls, description, attrs):<DEDENT>
hash_key = None<EOL>range_key = None<EOL>index_type = description["<STR_LIT>"]["<STR_LIT>"]<EOL>includes = description["<STR_LIT>"].get("<STR_LIT>")<EOL>for data in description["<STR_LIT>"]:<EOL><INDENT>name = data["<STR_LIT>"]<EOL>if name not in attrs:<EOL><INDENT>continue<EOL><DEDENT>key_type = data["<STR_LIT>"]<EOL>if key_type == "<STR_LIT>":<EOL><INDENT>hash_key = TableField(name, attrs[name].data_type, key_type)<EOL><DEDENT>elif key_type == "<STR_LIT>":<EOL><INDENT>range_key = TableField(name, attrs[name].data_type, key_type)<EOL><DEDENT><DEDENT>throughput = description["<STR_LIT>"]<EOL>return cls(<EOL>description["<STR_LIT>"],<EOL>index_type,<EOL>description["<STR_LIT>"],<EOL>hash_key,<EOL>range_key,<EOL>throughput["<STR_LIT>"],<EOL>throughput["<STR_LIT>"],<EOL>description.get("<STR_LIT>", <NUM_LIT:0>),<EOL>includes,<EOL>description,<EOL>)<EOL>
Create an object from a dynamo3 response