Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Str With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Dict Str Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad orelse Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad keyword Call NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Print Call AttributeLoad Str attr NameLoad Call NameLoad NameLoad For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Print Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore CompareEq SubscriptLoad NameLoad Index Str Str Assign NameStore SubscriptLoad NameLoad Index Str Print Call AttributeLoad Str attr NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str NameLoad Expr Call NameLoad NameLoad NameLoad Call NameLoad If NameLoad body Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad If CompareEq AttributeLoad NameLoad attr Num body With Call NameLoad NameLoad Str NameStore body For NameStore Call AttributeLoad NameLoad attr BinOpMult Num Num body Expr Call AttributeLoad NameLoad attr NameLoad orelse Print Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr body Print Call AttributeLoad Str attr NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr
N/A N/A 
Use the AppVeyor API to download Windows artifacts.

Taken from: https://bitbucket.org/ned/coveragepy/src/tip/ci/download_appveyor.py
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
 __future__ unicode_literals N/A argparse N/A os N/A requests N/A zipfile make_auth_headers N/A N/A N/A N/A N/A Make the authentication headers needed to use the Appveyor API. N/A path N/A N/A N/A os path expanduser ~/.appveyor.token N/A N/A N/A N/A N/A os path exists path N/A N/A N/A RuntimeError Please create a file named `.appveyor.token` in your home directory. You can get the token from https://ci.appveyor.com/api-token N/A N/A open path f N/A N/A token N/A N/A N/A N/A f read strip N/A headers N/A Authorization N/A N/A Bearer {} format token N/A headers N/A download_latest_artifacts N/A N/A account_project build_id N/A N/A N/A Download all the artifacts from the latest build. N/A N/A build_id None N/A N/A url N/A N/A https://ci.appveyor.com/api/projects/{} format account_project N/A N/A url N/A N/A https://ci.appveyor.com/api/projects/{}/build/{} format account_project build_id N/A build N/A N/A N/A N/A requests get url headers N/A make_auth_headers json N/A jobs N/A N/A build N/A build N/A jobs N/A N/A N/A Build {0[build][version]}, {1} jobs: {0[build][message]} format build N/A len jobs N/A job jobs N/A N/A name N/A job N/A name N/A N/A N/A   {0}: {1[status]}, {1[artifactsCount]} artifacts format name job N/A url N/A N/A https://ci.appveyor.com/api/buildjobs/{}/artifacts format N/A job N/A jobId N/A response N/A N/A requests get url headers N/A make_auth_headers N/A artifacts N/A N/A response json N/A artifact artifacts N/A N/A is_zip N/A N/A artifact N/A type Zip N/A filename N/A artifact N/A fileName N/A N/A N/A     {0}, {1} bytes format filename N/A artifact N/A size N/A url N/A N/A https://ci.appveyor.com/api/buildjobs/{}/artifacts/{} format N/A job N/A jobId filename N/A N/A download_url url filename N/A make_auth_headers N/A is_zip N/A N/A N/A unpack_zipfile filename N/A N/A N/A os remove filename N/A ensure_dirs N/A N/A filename N/A N/A N/A Make sure the directories exist for `filename`. N/A N/A dirname _ N/A N/A N/A os path split filename N/A N/A dirname N/A N/A N/A N/A os path exists dirname N/A N/A N/A N/A os makedirs dirname N/A download_url N/A N/A url filename headers N/A N/A N/A Download a file from `url` to `filename`. N/A N/A ensure_dirs filename N/A response N/A N/A requests get url headers headers stream True N/A N/A N/A response status_code 200 N/A N/A N/A open filename wb f N/A N/A chunk N/A N/A response iter_content N/A 16 1024 N/A N/A N/A N/A f write chunk N/A N/A N/A N/A     Error downloading {}: {} format url response N/A unpack_zipfile N/A N/A filename N/A N/A N/A Unpack a zipfile, using the names in the zip. N/A N/A open filename rb fzip N/A N/A z N/A N/A zipfile ZipFile fzip N/A name N/A N/A z namelist N/A N/A N/A N/A       extracting {} format name N/A N/A ensure_dirs name N/A N/A N/A z extract name N/A N/A parser N/A N/A argparse ArgumentParser description Download artifacts from AppVeyor. N/A N/A N/A parser add_argument --id metavar PROJECT_ID default ionelmc/python-nameless help Project ID in AppVeyor. N/A N/A N/A parser add_argument build nargs ? metavar BUILD_ID help Build ID in AppVeyor. Eg: master-123 N/A N/A __name__ __main__ N/A N/A args N/A N/A parser parse_args N/A N/A download_latest_artifacts N/A args id N/A args build