MCPcopy
hub / github.com/psycopg/psycopg / fetch_user

Function fetch_user

tools/update_backer.py:16–23  ·  view source on GitHub ↗
(username)

Source from the content-addressed store, hash-verified

14
15
16def fetch_user(username):
17 logger.info("fetching %s", username)
18 resp = requests.get(
19 f"https://api.github.com/users/{username}",
20 headers={"Accept": "application/vnd.github.v3+json"},
21 )
22 resp.raise_for_status()
23 return resp.json()
24
25
26def get_user_data(data):

Callers 2

add_entryFunction · 0.85
update_entryFunction · 0.85

Calls 2

infoMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected