MCPcopy Create free account
hub / github.com/mlco2/codecarbon / __init__

Method __init__

codecarbon/output_methods/http.py:43–57  ·  view source on GitHub ↗
(
        self,
        endpoint_url: str,
        experiment_id: str,
        api_key: str,
        conf,
    )

Source from the content-addressed store, hash-verified

41 run_id = None
42
43 def __init__(
44 self,
45 endpoint_url: str,
46 experiment_id: str,
47 api_key: str,
48 conf,
49 ):
50 self.endpoint_url: str = endpoint_url
51 self.api = ApiClient(
52 experiment_id=experiment_id,
53 endpoint_url=endpoint_url,
54 api_key=api_key,
55 conf=conf,
56 )
57 self.run_id = self.api.run_id
58
59 def live_out(self, _, delta: EmissionsData):
60 # Called at regular intervals

Callers

nothing calls this directly

Calls 1

ApiClientClass · 0.90

Tested by

no test coverage detected