MCPcopy
hub / github.com/fluentpython/example-code-2e / main

Function main

20-executors/getflags/flags2_common.py:147–155  ·  view source on GitHub ↗
(download_many, default_concur_req, max_concur_req)

Source from the content-addressed store, hash-verified

145
146
147def main(download_many, default_concur_req, max_concur_req):
148 args, cc_list = process_args(default_concur_req)
149 actual_req = min(args.max_req, max_concur_req, len(cc_list))
150 initial_report(cc_list, actual_req, args.server)
151 base_url = SERVERS[args.server]
152 DEST_DIR.mkdir(exist_ok=True)
153 t0 = time.perf_counter()
154 counter = download_many(cc_list, base_url, args.verbose, actual_req)
155 final_report(cc_list, counter, t0)

Callers 5

flags2_asyncio.pyFile · 0.90
flags3_asyncio.pyFile · 0.90

Calls 4

process_argsFunction · 0.85
initial_reportFunction · 0.85
final_reportFunction · 0.85
download_manyFunction · 0.70

Tested by

no test coverage detected