Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/TheAlgorithms/Python
/ fetch_from_to
Function
fetch_from_to
web_programming/co2_emission.py:26–27 ·
view source on GitHub ↗
(start, end)
Source
from the content-addressed store, hash-verified
24
25
# Emissions in a specific date range
26
def
fetch_from_to(start, end) -> list:
27
return
httpx.get(f
"{BASE_URL}/{start}/{end}"
, timeout=10).json()[
"data"
]
28
29
30
if
__name__ ==
"__main__"
:
Callers
1
co2_emission.py
File · 0.85
Calls
2
json
Method · 0.80
get
Method · 0.45
Tested by
no test coverage detected