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
get_emissions_from_run
Find the emissions from an run in database and return it :run_id: The id of the run to retreive emissions from. :returns: An Emission
carbonserver/carbonserver/api/infra/repositories/repository_emissions.py:73
Method
get_experiment
(self, experiment_id)
tests/cli/test_cli_main.py:235
Method
get_experiments_from_project
Find the experiment from an emission in database and return it :project_id: The id of the project to retreive experiment from. :retur
carbonserver/carbonserver/api/infra/repositories/repository_experiments.py:59
Method
get_gpu_details
(self)
codecarbon/core/gpu_device.py:82
Function
get_id_token
Return the stored OIDC id_token.
codecarbon/cli/auth.py:229
Method
get_list_organizations
(self)
tests/cli/test_cli_main.py:19
Function
get_login
login and redirect to frontend app with token
carbonserver/carbonserver/api/routers/authenticate.py:71
Method
get_model
(self)
codecarbon/external/hardware.py:512
Method
get_one_emission
Find the emission in database and return it :emission_id: The id of the emission to retreive. :returns: An Emission in pyDantic BaseM
carbonserver/carbonserver/api/infra/repositories/repository_emissions.py:54
Method
get_one_experiment
Find the experiment in database and return it :experiment_id: The id of the experiment to retreive. :returns: An Experiment in pyDant
carbonserver/carbonserver/api/infra/repositories/repository_experiments.py:40
Method
get_one_organization
Find the organization in database and return it :organization_id: The id of the organization to retreive. :returns: An Organization i
carbonserver/carbonserver/api/infra/repositories/repository_organizations.py:50
Method
get_one_project
(self, project_id)
carbonserver/carbonserver/api/infra/repositories/repository_projects.py:50
Method
get_organization
(self, organization_id)
tests/cli/test_cli_main.py:229
Method
get_project
(self, project_id)
tests/cli/test_cli_main.py:232
Method
get_project_global_sums_by_experiment
(self, project_id)
carbonserver/carbonserver/api/infra/repositories/repository_experiments.py:78
Method
get_static_details
(self)
tests/test_gpu_amd.py:554
Function
get_token
(project_id: str)
codecarbon/cli/main.py:151
Method
get_user_by_email
Find an user in database and retrieves it :email: The email of the user to retrieve. :returns: An User in pyDantic BaseModel format.
carbonserver/carbonserver/api/infra/repositories/repository_users.py:50
Function
get_user_by_id
( user_id: str, user_service: UserService = Depends(Provide[ServerContainer.user_service]), )
carbonserver/carbonserver/api/routers/users.py:20
Method
get_user_by_id
Find an user in database and retrieves it :user_id: The id of the user to retrieve. :returns: An User in pyDantic BaseModel format.
carbonserver/carbonserver/api/infra/repositories/repository_users.py:37
Function
global_energy_mix_data
()
tests/test_viz_data.py:19
Method
global_energy_mix_data_path
(self)
codecarbon/input.py:121
Function
handleApply
()
webapp/src/components/date-range-picker.tsx:33
Function
handleCancel
()
webapp/src/components/delete-project-modal.tsx:51
Function
handleCellKeyDown
(e: React.KeyboardEvent)
webapp/src/components/custom-row.tsx:35
Function
handleClick
()
webapp/src/pages/ProjectsPage.tsx:28
Function
handleClickOutside
(event: React.MouseEvent<HTMLDivElement>)
webapp/src/components/ui/modal.tsx:47
Function
handleClose
()
webapp/src/components/createOrganizationModal.tsx:74
Function
handleClose
()
webapp/src/components/createExperimentModal.tsx:68
Function
handleCreateExperimentClick
()
webapp/src/components/project-dashboard-base.tsx:84
Function
handleCreateToken
()
webapp/src/components/projectTokens/projectTokenTable.tsx:41
Function
handleDelete
()
webapp/src/components/delete-project-modal.tsx:36
Function
handleDeleteConfirm
(projectId: string)
webapp/src/pages/ProjectsPage.tsx:42
Function
handleDownload
()
webapp/src/components/export-csv-button.tsx:29
Function
handleJsonExport
()
webapp/src/components/project-dashboard.tsx:59
Function
handleNewOrgClick
()
webapp/src/components/navbar.tsx:127
Function
handleOpenChange
(newOpen: boolean)
webapp/src/components/date-range-picker.tsx:25
Function
handleRefresh
()
webapp/src/components/project-dashboard.tsx:50
Function
handleSave
()
webapp/src/components/createProjectModal.tsx:42
Function
handleSave
()
webapp/src/components/project-settings-modal.tsx:47
Function
handleSave
()
webapp/src/components/createOrganizationModal.tsx:42
Function
handleSave
()
webapp/src/components/createExperimentModal.tsx:73
Function
handleSave
()
webapp/src/components/ui/modal.tsx:41
Function
handleSelectExperiment
(value: string)
webapp/src/components/project-dashboard-base.tsx:96
Function
handleSettingsClick
()
webapp/src/pages/ProjectDashboardPage.tsx:106
Function
handleSubmit
(e: React.FormEvent<HTMLFormElement>)
webapp/src/pages/ProjectSettingsPage.tsx:34
Method
handle_endtag
(self, tag)
carbonserver/tests/api/integration/test_auth_cookie_flow.py:44
Method
handle_starttag
(self, tag, attrs)
carbonserver/tests/api/integration/test_auth_cookie_flow.py:34
Method
hours
(self)
codecarbon/core/units.py:20
Method
isOperationAuthorizedOnOrg
()
carbonserver/tests/api/container_test.py:16
Method
isOperationAuthorizedOnProject
()
carbonserver/tests/api/container_test.py:20
Method
isOperationAuthorizedOnProject
(*args, **kwargs)
carbonserver/tests/api/mocks.py:27
Method
is_on_private_infra
(self)
codecarbon/external/geography.py:22
Function
list_organization_users
( organization_id: str, auth_user: UserWithAuthDependency = Depends(MandatoryUserWithAuthDependency),
carbonserver/carbonserver/api/routers/organizations.py:132
Function
list_organizations
( auth_user: UserWithAuthDependency = Depends(MandatoryUserWithAuthDependency), organization_service:
carbonserver/carbonserver/api/routers/organizations.py:92
Method
list_organizations
(self, user: User)
carbonserver/carbonserver/api/infra/repositories/repository_organizations.py:69
Method
list_project_tokens
(self, project_id: str)
carbonserver/carbonserver/api/infra/repositories/repository_projects_tokens.py:55
Function
list_projects
( organization: str, auth_user: UserWithAuthDependency = Depends(MandatoryUserWithAuthDependency),
carbonserver/carbonserver/api/routers/projects.py:133
Function
list_projects_nested
( organization_id: str, auth_user: UserWithAuthDependency = Depends(MandatoryUserWithAuthDependency),
carbonserver/carbonserver/api/routers/projects.py:117
Function
list_runs
( run_service: RunService = Depends(Provide[ServerContainer.run_service]), )
carbonserver/carbonserver/api/routers/runs.py:70
Method
list_runs
(self)
carbonserver/carbonserver/api/infra/repositories/repository_runs.py:70
Method
list_users
(self)
carbonserver/carbonserver/api/infra/repositories/repository_users.py:63
Method
list_users
(self, organization_id: UUID)
carbonserver/carbonserver/api/infra/repositories/repository_organizations.py:81
Method
live_out
(self, total: EmissionsData, delta: EmissionsData)
codecarbon/output_methods/base_output.py:47
Method
live_out
(self, total: EmissionsData, delta: EmissionsData)
codecarbon/output_methods/metrics/prometheus.py:116
Method
live_out
(self, delta: EmissionsData, total: EmissionsData)
tests/test_custom_handler.py:21
Function
load_one_cpu
Generate CPU load at specified percentage.
examples/compare_cpu_load_and_RAPL.py:221
Method
log_message
(self, format, *args)
codecarbon/cli/auth.py:70
Function
login
()
codecarbon/cli/main.py:125
Function
loginMock
()
webapp/src/api/mock/index.ts:95
Function
logout
Logout user by clearing session and removing cookie
carbonserver/carbonserver/api/routers/authenticate.py:124
Method
machine_memory_GB
Property to compute the machine's total memory in bytes. Returns: float: Total RAM (GB)
codecarbon/external/ram.py:301
Method
measure_power_and_energy
Base implementation: we get the power from the hardware and convert it to energy.
codecarbon/external/hardware.py:41
Function
measurement_thread
(core_count, load_type)
examples/compare_cpu_load_and_RAPL.py:278
Method
mock_nvmlDeviceGetTotalEnergyConsumption
(handle)
tests/test_gpu_nvidia.py:247
Function
mock_oidc_client
Create a mock OIDC client with load_server_metadata and _get_oauth_client.
carbonserver/tests/api/routers/test_authenticate.py:69
Function
mock_session_factory
()
carbonserver/tests/api/integration/test_project_cascade_delete.py:377
Function
mocked_open
()
tests/testutils.py:24
Function
monitor
Monitor your machine's carbon emissions.
codecarbon/cli/main.py:322
Function
no_load_task
(number)
examples/full_cpu.py:7
Function
nvmlDeviceGetComputeMode
(handle)
tests/fake_modules/pynvml/__init__.py:75
Function
nvmlDeviceGetComputeRunningProcesses
(handle)
tests/fake_modules/pynvml/__init__.py:79
Function
nvmlDeviceGetCount
()
tests/fake_modules/pynvml/__init__.py:38
Function
nvmlDeviceGetEnforcedPowerLimit
(handle)
tests/fake_modules/pynvml/__init__.py:67
Function
nvmlDeviceGetGraphicsRunningProcesses
(handle)
tests/fake_modules/pynvml/__init__.py:83
Function
nvmlDeviceGetHandleByIndex
(index)
tests/fake_modules/pynvml/__init__.py:42
Function
nvmlDeviceGetMemoryInfo
(handle)
tests/fake_modules/pynvml/__init__.py:54
Function
nvmlDeviceGetName
(handle)
tests/fake_modules/pynvml/__init__.py:46
Function
nvmlDeviceGetPowerUsage
(handle)
tests/fake_modules/pynvml/__init__.py:63
Function
nvmlDeviceGetTemperature
(handle, sensorType)
tests/fake_modules/pynvml/__init__.py:58
Function
nvmlDeviceGetTotalEnergyConsumption
(handle)
tests/fake_modules/pynvml/__init__.py:87
Function
nvmlDeviceGetUUID
(handle)
tests/fake_modules/pynvml/__init__.py:50
Function
nvmlDeviceGetUtilizationRates
(handle)
tests/fake_modules/pynvml/__init__.py:71
Function
nvmlInit
()
tests/fake_modules/pynvml/__init__.py:34
Method
nvml_init
()
tests/test_gpu.py:91
Method
observe
()
webapp/tests/components/radial-chart.test.tsx:5
Method
observe
()
webapp/tests/components/experiment-bar-chart.test.tsx:7
Method
observe
()
webapp/tests/components/project-dashboard-base.test.tsx:6
Method
observe
()
webapp/tests/components/runs-scatter-chart.test.tsx:5
Function
oidc_provider
Create an OIDCAuthProvider with a mocked client.
carbonserver/tests/api/routers/test_authenticate.py:78
← previous
next →
1,001–1,100 of 1,889, ranked by callers