MCPcopy 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
26def fetch_from_to(start, end) -> list:
27 return httpx.get(f"{BASE_URL}/{start}/{end}", timeout=10).json()["data"]
28
29
30if __name__ == "__main__":

Callers 1

co2_emission.pyFile · 0.85

Calls 2

jsonMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected