@argh.arg('<STR_LIT:filename>', help='<STR_LIT>')<EOL>@argh.arg('<STR_LIT>', help='<STR_LIT>', required=True)<EOL>@argh.arg('<STR_LIT>', type=str,<EOL>help='<STR_LIT>',<EOL>default=['<STR_LIT>'])<EOL>@argh.wrap_errors([KeyboardInterrupt])<EOL>def insert_blob(filename, hosts=None, table=None):
conn = connect(hosts)<EOL>container = conn.get_blob_container(table)<EOL>with open(filename, '<STR_LIT:rb>') as f:<EOL><INDENT>digest = container.put(f)<EOL><DEDENT>return '<STR_LIT>'.format(<EOL>server=conn.client.active_servers[<NUM_LIT:0>],<EOL>table=table,<EOL>digest=digest<EOL>)<EOL>
Upload a file into a blob table