MCPcopy Create free account
hub / github.com/requests-cache/requests-cache / main

Function main

examples/pygithub.py:102–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100
101
102def main():
103 # Send initial requests
104 start = time()
105 get_user_info()
106 print(f'Elapsed: {time() - start:.2f} seconds')
107
108 # Repeat the same requests and verify that your rate limit usage is unchanged
109 start = time()
110 get_user_info()
111 print(f'Elapsed: {time() - start:.2f} seconds')
112
113 test_non_github_requests()
114 check_cache()
115
116
117if __name__ == '__main__':

Callers 1

pygithub.pyFile · 0.70

Calls 3

get_user_infoFunction · 0.85
test_non_github_requestsFunction · 0.85
check_cacheFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…