Module Expr Str Import alias Import alias ImportFrom alias Assign NameStore Str FunctionDef arguments args defaults body With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num If UnaryOpNot NameLoad body Break Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Str attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword AttributeLoad NameLoad attr Print Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr Print Call AttributeLoad Str attr keyword NameLoad With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
Utility script for maintainer use to upload current version of the answer key
spreadsheet to S3.
 N/A hashlib N/A boto N/A answer_key N/A BUCKET_NAME zipline-test-data main N/A N/A N/A N/A N/A N/A open N/A answer_key ANSWER_KEY_PATH r f N/A N/A md5 N/A N/A hashlib md5 N/A True N/A N/A buf N/A N/A f read 1024 N/A N/A buf N/A N/A N/A N/A N/A md5 update buf N/A local_hash N/A N/A md5 hexdigest N/A s3_conn N/A N/A boto connect_s3 N/A bucket N/A N/A s3_conn get_bucket BUCKET_NAME N/A key N/A N/A N/A N/A boto s3 key Key bucket N/A N/A key key N/A N/A risk/{local_hash}/risk-answer-key.xlsx format local_hash local_hash N/A N/A N/A key set_contents_from_filename N/A answer_key ANSWER_KEY_PATH N/A N/A N/A key set_acl public-read N/A download_link N/A N/A http://s3.amazonaws.com/{bucket_name}/{key} format bucket_name BUCKET_NAME key N/A key key N/A N/A N/A Uploaded to key: {key} format key N/A key key N/A N/A N/A Download link: {download_link} format download_link download_link N/A N/A open N/A answer_key ANSWER_KEY_CHECKSUMS_PATH a checksum_file N/A N/A N/A N/A checksum_file write local_hash N/A N/A N/A checksum_file write N/A N/A N/A __name__ __main__ N/A N/A N/A main