Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mlco2/codecarbon
/ functions
Functions
1,889 in github.com/mlco2/codecarbon
⨍
Functions
1,889
◇
Types & classes
328
↳
Endpoints
162
Method
on_epoch_end
(self, epoch, logs=None)
examples/mnist_callback.py:16
Function
organization_add_user
( input: UserEmailInput, organization_id: str, auth_user: UserWithAuthDependency = Depends(Mandato
carbonserver/carbonserver/api/routers/organizations.py:154
Method
out
(self, total: EmissionsData, _: EmissionsData)
codecarbon/output_methods/http.py:22
Method
out
(self, total: EmissionsData, delta: EmissionsData)
codecarbon/output_methods/base_output.py:44
Method
patch_organization
(self, organization_id, organization)
carbonserver/carbonserver/api/infra/repositories/repository_organizations.py:166
Function
patch_project
( project_id: str, project: ProjectPatch, auth_user: UserWithAuthDependency = Depends(MandatoryUse
carbonserver/carbonserver/api/routers/projects.py:66
Method
patch_project
(self, project_id, project)
carbonserver/carbonserver/api/infra/repositories/repository_projects.py:175
Function
postprocess_gcp_cloud_metadata
(cloud_metadata: Dict[str, Any])
codecarbon/core/cloud.py:8
Method
process_memory_GB
Property to compute the process's total memory usage in bytes. Returns: float: RAM usage (GB)
codecarbon/external/ram.py:288
Method
raiseException
(handle)
tests/test_gpu_nvidia.py:197
Method
raise_exception
(handle)
tests/test_gpu_nvidia.py:218
Method
raise_exception
(*args, **kwargs)
tests/test_emissions_tracker.py:189
Function
raise_key_error
()
tests/cli/test_cli_utils.py:41
Method
raise_timeout_exception
(*args, **kwargs)
tests/test_emissions_tracker.py:163
Function
read_emission
( emission_id: str, emission_service: EmissionService = Depends( Provide[ServerContainer.emiss
carbonserver/carbonserver/api/routers/emissions.py:66
Function
read_experiment
( experiment_id: str, auth_user: UserWithAuthDependency = Depends(OptionalUserWithAuthDependency),
carbonserver/carbonserver/api/routers/experiments.py:51
Function
read_experiment_detailed_sums_by_run
( experiment_id: str, start_date: Optional[datetime] = None, end_date: Optional[datetime] = None,
carbonserver/carbonserver/api/routers/runs.py:95
Function
read_organization
( organization_id: str, auth_user: UserWithAuthDependency = Depends(MandatoryUserWithAuthDependency),
carbonserver/carbonserver/api/routers/organizations.py:75
Function
read_organization_detailed_sums
( organization_id: str, start_date: Optional[datetime] = None, end_date: Optional[datetime] = None
carbonserver/carbonserver/api/routers/organizations.py:107
Function
read_project
( project_id: str, auth_user: UserWithAuthDependency = Depends(OptionalUserWithAuthDependency), pr
carbonserver/carbonserver/api/routers/projects.py:77
Function
read_project_detailed_sums
( project_id: str, start_date: Optional[datetime] = None, end_date: Optional[datetime] = None,
carbonserver/carbonserver/api/routers/projects.py:91
Function
read_project_detailed_sums_by_experiment
( project_id: str, auth_user: UserWithAuthDependency = Depends(OptionalUserWithAuthDependency), st
carbonserver/carbonserver/api/routers/experiments.py:86
Function
read_project_experiments
( project_id: str, auth_user: UserWithAuthDependency = Depends(OptionalUserWithAuthDependency), ex
carbonserver/carbonserver/api/routers/experiments.py:68
Function
read_project_last_run
( project_id: str, start_date: Optional[datetime] = None, end_date: Optional[datetime] = None,
carbonserver/carbonserver/api/routers/runs.py:121
Function
read_run
( run_id: str, run_service: RunService = Depends(Provide[ServerContainer.run_service]), )
carbonserver/carbonserver/api/routers/runs.py:56
Function
read_runs_from_experiment
( experiment_id: str, run_service: RunService = Depends(Provide[ServerContainer.run_service]), )
carbonserver/carbonserver/api/routers/runs.py:82
Function
refreshOrgList
()
webapp/src/components/navbar.tsx:132
Method
remove_user_from_organization
( self, user_id: str, organization_id: str )
carbonserver/carbonserver/api/domain/memberships.py:14
Function
resetTokenCreation
()
webapp/src/components/projectTokens/projectTokenTable.tsx:85
Method
run_trial
(self, trial, *args, **kwargs)
examples/mnist_random_search.py:8
Method
service_shutdown
(self, signum, frame)
codecarbon/emissions_tracker.py:655
Method
setUp
(self)
tests/test_emissions_tracker_constant.py:27
Method
setUp
(self)
tests/test_lock.py:9
Method
setUp
(self)
tests/test_tracking_inference.py:36
Method
setUp
(self)
tests/test_config.py:24
Method
setUp
(self)
tests/test_emissions_tracker.py:66
Method
setUp
(self)
tests/test_boamps_output.py:285
Method
setUp
(self)
tests/test_boamps_output.py:525
Method
setUp
(self)
tests/test_boamps_output.py:677
Method
setUp
(self)
tests/test_boamps_output.py:777
Method
setUp
(self)
tests/test_boamps_output.py:1067
Method
setUp
(self)
tests/test_geography.py:75
Method
setUp
(self)
tests/test_electricitymaps_api.py:12
Method
setUp
(self)
tests/test_cpu.py:308
Method
setUp
(self)
tests/test_logging_output.py:25
Method
setUp
(self)
tests/test_custom_handler.py:26
Method
setUp
(self)
tests/test_offline_emissions_tracker.py:25
Method
setUp
(self)
tests/test_emissions_tracker_flush.py:24
Method
setUp
(self)
tests/test_energy.py:10
Method
setUp
Set up test fixtures.
tests/test_utilization_tracking.py:21
Method
setUp
(self)
tests/test_logger.py:12
Method
setUp
(self)
tests/test_unsupported_gpu.py:13
Method
setUp
(self)
tests/test_emissions.py:12
Method
setUp
(self)
tests/cli/test_cli.py:16
Method
setUp
(self)
tests/cli/test_cli_auth.py:16
Method
setUp
(self)
tests/output_methods/test_http.py:9
Method
setUp
(self)
tests/output_methods/test_http.py:82
Method
setUp
(self)
tests/output_methods/test_logger.py:10
Method
setUp
(self)
tests/output_methods/test_logger.py:71
Method
setUp
(self)
tests/output_methods/test_file.py:14
Method
setUp
(self)
tests/output_methods/metrics/test_prometheus.py:46
Method
setUp
(self)
tests/output_methods/metrics/test_logfire.py:12
Method
set_access_token
(self, token)
tests/cli/test_cli_main.py:16
Function
setup
()
deploy/deploy.py:355
Method
setup_method
(self)
tests/test_gpu_nvidia.py:33
Method
setup_method
(self)
tests/test_gpu_nvidia.py:371
Method
setup_method
(self)
tests/test_gpu.py:196
Function
shell
(db)
carbonserver/initial_data.py:37
Method
side_effect_wrapper
Side effect wrapper to simulate the first call to path.exists to avoid picking up global config
tests/cli/test_cli.py:78
Function
signal_handler
(signum, frame)
codecarbon/cli/main.py:388
Method
simple_work_function
()
tests/test_unsupported_gpu.py:67
Method
slurm_memory_GB
Property to compute the SLURM-available RAM in GigaBytes. Returns: float: Memory allocated to the job (GB)
codecarbon/external/ram.py:263
Function
start
( traefik: Annotated[bool, typer.Option()] = False, fief: Annotated[bool, typer.Option()] = False,
deploy/deploy.py:265
Method
start
(self)
codecarbon/core/gpu_device.py:34
Method
start
(self)
codecarbon/core/gpu.py:79
Method
start
Placeholder method for starting the Intel Power Gadget monitoring.
codecarbon/core/cpu.py:386
Method
start
Starts monitoring CPU energy consumption.
codecarbon/core/cpu.py:860
Method
start
(self)
codecarbon/core/powermetrics.py:198
Method
start
(self)
codecarbon/external/hardware.py:52
Method
start
(self)
codecarbon/external/hardware.py:397
Method
start
(self)
codecarbon/external/hardware.py:509
Method
start
(self)
tests/cli/test_cli_main.py:286
Method
stop
(self)
tests/cli/test_cli_main.py:289
Method
subscribe_user_to_org
( self, user: User, organization_id: UUID, )
carbonserver/carbonserver/api/infra/repositories/repository_users.py:73
Function
suppress
(*exceptions)
codecarbon/core/util.py:23
Method
task_out
(self, data: List[TaskEmissionsData], experiment_name: str)
codecarbon/output_methods/base_output.py:50
Method
tearDown
(self)
tests/test_emissions_tracker_constant.py:37
Method
tearDown
(self)
tests/test_tracking_inference.py:41
Method
tearDown
(self)
tests/test_config.py:37
Method
tearDown
(self)
tests/test_emissions_tracker.py:82
Method
tearDown
(self)
tests/test_boamps_output.py:530
Method
tearDown
(self)
tests/test_boamps_output.py:781
Method
tearDown
(self)
tests/test_boamps_output.py:1071
Method
tearDown
(self)
tests/test_logging_output.py:40
Method
tearDown
(self)
tests/test_offline_emissions_tracker.py:40
Method
tearDown
(self)
tests/test_emissions_tracker_flush.py:34
Method
tearDown
Clean up test fixtures.
tests/test_utilization_tracking.py:36
Method
tearDown
(self)
tests/test_logger.py:15
Method
tearDown
(self)
tests/test_unsupported_gpu.py:18
Method
tearDown
(self)
tests/output_methods/test_file.py:53
← previous
next →
1,101–1,200 of 1,889, ranked by callers