MCPcopy Create free account

hub / github.com/mlco2/codecarbon / functions

Functions1,889 in github.com/mlco2/codecarbon

Methodget_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
Methodget_experiment
(self, experiment_id)
tests/cli/test_cli_main.py:235
Methodget_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
Methodget_gpu_details
(self)
codecarbon/core/gpu_device.py:82
Functionget_id_token
Return the stored OIDC id_token.
codecarbon/cli/auth.py:229
Methodget_list_organizations
(self)
tests/cli/test_cli_main.py:19
Functionget_login
login and redirect to frontend app with token
carbonserver/carbonserver/api/routers/authenticate.py:71
Methodget_model
(self)
codecarbon/external/hardware.py:512
Methodget_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
Methodget_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
Methodget_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
Methodget_one_project
(self, project_id)
carbonserver/carbonserver/api/infra/repositories/repository_projects.py:50
Methodget_organization
(self, organization_id)
tests/cli/test_cli_main.py:229
Methodget_project
(self, project_id)
tests/cli/test_cli_main.py:232
Methodget_project_global_sums_by_experiment
(self, project_id)
carbonserver/carbonserver/api/infra/repositories/repository_experiments.py:78
Methodget_static_details
(self)
tests/test_gpu_amd.py:554
Functionget_token
(project_id: str)
codecarbon/cli/main.py:151
Methodget_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
Functionget_user_by_id
( user_id: str, user_service: UserService = Depends(Provide[ServerContainer.user_service]), )
carbonserver/carbonserver/api/routers/users.py:20
Methodget_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
Functionglobal_energy_mix_data
()
tests/test_viz_data.py:19
Methodglobal_energy_mix_data_path
(self)
codecarbon/input.py:121
FunctionhandleApply
()
webapp/src/components/date-range-picker.tsx:33
FunctionhandleCancel
()
webapp/src/components/delete-project-modal.tsx:51
FunctionhandleCellKeyDown
(e: React.KeyboardEvent)
webapp/src/components/custom-row.tsx:35
FunctionhandleClick
()
webapp/src/pages/ProjectsPage.tsx:28
FunctionhandleClickOutside
(event: React.MouseEvent<HTMLDivElement>)
webapp/src/components/ui/modal.tsx:47
FunctionhandleClose
()
webapp/src/components/createOrganizationModal.tsx:74
FunctionhandleClose
()
webapp/src/components/createExperimentModal.tsx:68
FunctionhandleCreateExperimentClick
()
webapp/src/components/project-dashboard-base.tsx:84
FunctionhandleCreateToken
()
webapp/src/components/projectTokens/projectTokenTable.tsx:41
FunctionhandleDelete
()
webapp/src/components/delete-project-modal.tsx:36
FunctionhandleDeleteConfirm
(projectId: string)
webapp/src/pages/ProjectsPage.tsx:42
FunctionhandleDownload
()
webapp/src/components/export-csv-button.tsx:29
FunctionhandleJsonExport
()
webapp/src/components/project-dashboard.tsx:59
FunctionhandleNewOrgClick
()
webapp/src/components/navbar.tsx:127
FunctionhandleOpenChange
(newOpen: boolean)
webapp/src/components/date-range-picker.tsx:25
FunctionhandleRefresh
()
webapp/src/components/project-dashboard.tsx:50
FunctionhandleSave
()
webapp/src/components/createProjectModal.tsx:42
FunctionhandleSave
()
webapp/src/components/project-settings-modal.tsx:47
FunctionhandleSave
()
webapp/src/components/createOrganizationModal.tsx:42
FunctionhandleSave
()
webapp/src/components/createExperimentModal.tsx:73
FunctionhandleSave
()
webapp/src/components/ui/modal.tsx:41
FunctionhandleSelectExperiment
(value: string)
webapp/src/components/project-dashboard-base.tsx:96
FunctionhandleSettingsClick
()
webapp/src/pages/ProjectDashboardPage.tsx:106
FunctionhandleSubmit
(e: React.FormEvent<HTMLFormElement>)
webapp/src/pages/ProjectSettingsPage.tsx:34
Methodhandle_endtag
(self, tag)
carbonserver/tests/api/integration/test_auth_cookie_flow.py:44
Methodhandle_starttag
(self, tag, attrs)
carbonserver/tests/api/integration/test_auth_cookie_flow.py:34
Methodhours
(self)
codecarbon/core/units.py:20
MethodisOperationAuthorizedOnOrg
()
carbonserver/tests/api/container_test.py:16
MethodisOperationAuthorizedOnProject
()
carbonserver/tests/api/container_test.py:20
MethodisOperationAuthorizedOnProject
(*args, **kwargs)
carbonserver/tests/api/mocks.py:27
Methodis_on_private_infra
(self)
codecarbon/external/geography.py:22
Functionlist_organization_users
( organization_id: str, auth_user: UserWithAuthDependency = Depends(MandatoryUserWithAuthDependency),
carbonserver/carbonserver/api/routers/organizations.py:132
Functionlist_organizations
( auth_user: UserWithAuthDependency = Depends(MandatoryUserWithAuthDependency), organization_service:
carbonserver/carbonserver/api/routers/organizations.py:92
Methodlist_organizations
(self, user: User)
carbonserver/carbonserver/api/infra/repositories/repository_organizations.py:69
Methodlist_project_tokens
(self, project_id: str)
carbonserver/carbonserver/api/infra/repositories/repository_projects_tokens.py:55
Functionlist_projects
( organization: str, auth_user: UserWithAuthDependency = Depends(MandatoryUserWithAuthDependency),
carbonserver/carbonserver/api/routers/projects.py:133
Functionlist_projects_nested
( organization_id: str, auth_user: UserWithAuthDependency = Depends(MandatoryUserWithAuthDependency),
carbonserver/carbonserver/api/routers/projects.py:117
Functionlist_runs
( run_service: RunService = Depends(Provide[ServerContainer.run_service]), )
carbonserver/carbonserver/api/routers/runs.py:70
Methodlist_runs
(self)
carbonserver/carbonserver/api/infra/repositories/repository_runs.py:70
Methodlist_users
(self)
carbonserver/carbonserver/api/infra/repositories/repository_users.py:63
Methodlist_users
(self, organization_id: UUID)
carbonserver/carbonserver/api/infra/repositories/repository_organizations.py:81
Methodlive_out
(self, total: EmissionsData, delta: EmissionsData)
codecarbon/output_methods/base_output.py:47
Methodlive_out
(self, total: EmissionsData, delta: EmissionsData)
codecarbon/output_methods/metrics/prometheus.py:116
Methodlive_out
(self, delta: EmissionsData, total: EmissionsData)
tests/test_custom_handler.py:21
Functionload_one_cpu
Generate CPU load at specified percentage.
examples/compare_cpu_load_and_RAPL.py:221
Methodlog_message
(self, format, *args)
codecarbon/cli/auth.py:70
Functionlogin
()
codecarbon/cli/main.py:125
FunctionloginMock
()
webapp/src/api/mock/index.ts:95
Functionlogout
Logout user by clearing session and removing cookie
carbonserver/carbonserver/api/routers/authenticate.py:124
Methodmachine_memory_GB
Property to compute the machine's total memory in bytes. Returns: float: Total RAM (GB)
codecarbon/external/ram.py:301
Methodmeasure_power_and_energy
Base implementation: we get the power from the hardware and convert it to energy.
codecarbon/external/hardware.py:41
Functionmeasurement_thread
(core_count, load_type)
examples/compare_cpu_load_and_RAPL.py:278
Methodmock_nvmlDeviceGetTotalEnergyConsumption
(handle)
tests/test_gpu_nvidia.py:247
Functionmock_oidc_client
Create a mock OIDC client with load_server_metadata and _get_oauth_client.
carbonserver/tests/api/routers/test_authenticate.py:69
Functionmock_session_factory
()
carbonserver/tests/api/integration/test_project_cascade_delete.py:377
Functionmocked_open
()
tests/testutils.py:24
Functionmonitor
Monitor your machine's carbon emissions.
codecarbon/cli/main.py:322
Functionno_load_task
(number)
examples/full_cpu.py:7
FunctionnvmlDeviceGetComputeMode
(handle)
tests/fake_modules/pynvml/__init__.py:75
FunctionnvmlDeviceGetComputeRunningProcesses
(handle)
tests/fake_modules/pynvml/__init__.py:79
FunctionnvmlDeviceGetCount
()
tests/fake_modules/pynvml/__init__.py:38
FunctionnvmlDeviceGetEnforcedPowerLimit
(handle)
tests/fake_modules/pynvml/__init__.py:67
FunctionnvmlDeviceGetGraphicsRunningProcesses
(handle)
tests/fake_modules/pynvml/__init__.py:83
FunctionnvmlDeviceGetHandleByIndex
(index)
tests/fake_modules/pynvml/__init__.py:42
FunctionnvmlDeviceGetMemoryInfo
(handle)
tests/fake_modules/pynvml/__init__.py:54
FunctionnvmlDeviceGetName
(handle)
tests/fake_modules/pynvml/__init__.py:46
FunctionnvmlDeviceGetPowerUsage
(handle)
tests/fake_modules/pynvml/__init__.py:63
FunctionnvmlDeviceGetTemperature
(handle, sensorType)
tests/fake_modules/pynvml/__init__.py:58
FunctionnvmlDeviceGetTotalEnergyConsumption
(handle)
tests/fake_modules/pynvml/__init__.py:87
FunctionnvmlDeviceGetUUID
(handle)
tests/fake_modules/pynvml/__init__.py:50
FunctionnvmlDeviceGetUtilizationRates
(handle)
tests/fake_modules/pynvml/__init__.py:71
FunctionnvmlInit
()
tests/fake_modules/pynvml/__init__.py:34
Methodnvml_init
()
tests/test_gpu.py:91
Methodobserve
()
webapp/tests/components/radial-chart.test.tsx:5
Methodobserve
()
webapp/tests/components/experiment-bar-chart.test.tsx:7
Methodobserve
()
webapp/tests/components/project-dashboard-base.test.tsx:6
Methodobserve
()
webapp/tests/components/runs-scatter-chart.test.tsx:5
Functionoidc_provider
Create an OIDCAuthProvider with a mocked client.
carbonserver/tests/api/routers/test_authenticate.py:78
← previousnext →1,001–1,100 of 1,889, ranked by callers