MCPcopy Create free account
hub / github.com/psf/cachecontrol / run

Function run

examples/benchmark.py:52–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50
51
52def run():
53 parser = argparse.ArgumentParser()
54 parser.add_argument(
55 "-n",
56 "--no-cache",
57 default=False,
58 action="store_true",
59 help="Do not use cachecontrol",
60 )
61 args = parser.parse_args()
62
63 sess = requests.Session()
64 if not args.no_cache:
65 sess = CacheControl(sess)
66
67 run_benchmark(sess)
68
69
70if __name__ == "__main__":

Callers 1

benchmark.pyFile · 0.85

Calls 2

CacheControlFunction · 0.90
run_benchmarkFunction · 0.85

Tested by

no test coverage detected