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
↓ 1 callers
Function
exportEmissionsTimeSeriesCsv
( timeSeries: EmissionsTimeSeries, projectName: string, experimentName?: string, )
webapp/src/utils/export.ts:143
↓ 1 callers
Function
exportExperimentsToCsv
( experiments: ExperimentReport[], projectName: string, )
webapp/src/utils/export.ts:58
↓ 1 callers
Function
exportRunsToCsv
( runs: RunReport[], projectName: string, experimentName?: string, )
webapp/src/utils/export.ts:86
↓ 1 callers
Function
exportToJson
(data: ProjectData)
webapp/src/utils/export.ts:45
↓ 1 callers
Function
extends_emissions_units
(data: pd.DataFrame)
codecarbon/viz/units.py:21
↓ 1 callers
Function
extract_text_from_url
(url)
examples/ollama_local_api.py:31
↓ 1 callers
Function
fetchOrganizationReport
()
webapp/src/pages/OrgDashboardPage.tsx:41
↓ 1 callers
Function
fetchProject
()
webapp/src/pages/ProjectSettingsPage.tsx:21
↓ 1 callers
Function
fetchProjectData
()
webapp/src/pages/PublicProjectPage.tsx:103
↓ 1 callers
Function
fetchTokens
()
webapp/src/components/projectTokens/projectTokenTable.tsx:27
↓ 1 callers
Method
fetch_page
Fetch a single page of results.
codecarbon/data/hardware/cpu_dataset_builder/intel_cpu_scrapper.py:33
↓ 1 callers
Function
fromBase64Url
(value: string)
webapp/src/utils/crypto.ts:95
↓ 1 callers
Method
from_lbs_per_mWh
(cls, lbs_per_mWh: float)
codecarbon/core/units.py:40
↓ 1 callers
Method
from_power_and_time
(cls, *, power: "Power", time: "Time")
codecarbon/core/units.py:68
↓ 1 callers
Function
generate_api_key
()
carbonserver/carbonserver/api/infra/api_key_utils.py:9
↓ 1 callers
Function
generate_counter
(metric_doc: MetricDocumentation)
codecarbon/output_methods/metrics/prometheus.py:70
↓ 1 callers
Function
getOrganizationEmissionsByProject
( organizationId: string, dateRange: DateRange | undefined, )
webapp/src/api/organizations.ts:10
↓ 1 callers
Function
getOrganizations
()
webapp/src/api/organizations.ts:28
↓ 1 callers
Function
getProjectTokens
( projectId: string, )
webapp/src/api/projectTokens.ts:4
↓ 1 callers
Function
getProjects
(organizationId: string)
webapp/src/api/projects.ts:27
↓ 1 callers
Function
getRunMetadata
( runId: string, )
webapp/src/api/runs.ts:11
↓ 1 callers
Function
get_api_key_hash
Get the hash of the api key
carbonserver/carbonserver/api/infra/api_key_utils.py:16
↓ 1 callers
Method
get_authorize_url
(self, request, login_url)
carbonserver/carbonserver/api/services/auth_providers/oidc_auth_provider.py:44
↓ 1 callers
Method
get_client_credentials
(self)
carbonserver/carbonserver/api/services/auth_providers/oidc_auth_provider.py:49
↓ 1 callers
Function
get_config
(path: Optional[Path] = None)
codecarbon/cli/cli_utils.py:11
↓ 1 callers
Method
get_data_from_api
(host)
codecarbon/viz/data.py:241
↓ 1 callers
Method
get_emissions_from_run
(self, run_id)
carbonserver/carbonserver/api/services/emissions_service.py:22
↓ 1 callers
Method
get_emissions_tab
()
codecarbon/viz/components.py:410
↓ 1 callers
Function
get_emissions_unit
(data: pd.DataFrame)
codecarbon/viz/units.py:12
↓ 1 callers
Method
get_energy_mix_tab
()
codecarbon/viz/components.py:426
↓ 1 callers
Function
get_existing_exp_id
Return experiment_id resolved from the same hierarchical config strategy used by EmissionsTracker (global file, local file, then CODECARBON_*
codecarbon/cli/cli_utils.py:42
↓ 1 callers
Method
get_experiment_detailed_sums_by_run
Find the runs of an experiment in database between two dates and return a report containing the sum of their emissions :experiment_id
carbonserver/carbonserver/api/infra/repositories/repository_runs.py:119
↓ 1 callers
Method
get_experiments_from_project
(self, project_id)
carbonserver/carbonserver/api/domain/experiments.py:17
↓ 1 callers
Method
get_experiments_from_project
(self, project_id, user: User)
carbonserver/carbonserver/api/services/experiments_service.py:43
↓ 1 callers
Method
get_gpu_details
(self)
tests/test_gpu_amd.py:557
↓ 1 callers
Function
get_list_of_cores_to_test
(nb)
examples/compare_cpu_load_and_RAPL.py:213
↓ 1 callers
Method
get_one_emission
(self, emission_id)
carbonserver/carbonserver/api/domain/emissions.py:14
↓ 1 callers
Method
get_one_emission
(self, emission_id)
carbonserver/carbonserver/api/services/emissions_service.py:18
↓ 1 callers
Method
get_one_experiment
(self, experiment_id: str)
carbonserver/carbonserver/api/domain/experiments.py:13
↓ 1 callers
Method
get_one_experiment
(self, experiment_id, user: Optional[User])
carbonserver/carbonserver/api/services/experiments_service.py:31
↓ 1 callers
Method
get_one_project
(self, project_id)
carbonserver/carbonserver/api/domain/projects.py:12
↓ 1 callers
Method
get_one_project
(self, project_id: str, user: Optional[User])
carbonserver/carbonserver/api/services/project_service.py:56
↓ 1 callers
Method
get_one_run
Find the run in database and return it :run_id: The id of the run to retreive. :returns: An Run in pyDantic BaseModel format.
carbonserver/carbonserver/api/infra/repositories/repository_runs.py:57
↓ 1 callers
Method
get_organization
Get an organization
codecarbon/core/api_client.py:137
↓ 1 callers
Method
get_organization_detailed_sums
Find the emissions of an organization in database between two dates and return a report containing their sum :organization_id: The id
carbonserver/carbonserver/api/infra/repositories/repository_organizations.py:91
↓ 1 callers
Method
get_project
Get a project
codecarbon/core/api_client.py:187
↓ 1 callers
Method
get_project_detailed_sums
Find the experiments of a project in database between two dates and return a report containing the sum of their emissions :project_id
carbonserver/carbonserver/api/infra/repositories/repository_projects.py:104
↓ 1 callers
Method
get_project_detailed_sums_by_experiment
( self, project_id, start_date, end_date )
carbonserver/carbonserver/api/infra/repositories/repository_experiments.py:111
↓ 1 callers
Method
get_project_last_run
Find the last run of a project in database between two dates and return it :project_id: The id of the project to retrieve runs from :
carbonserver/carbonserver/api/infra/repositories/repository_runs.py:178
↓ 1 callers
Method
get_project_token_by_emission_id_and_token
(self, emission_id: str, token: str)
carbonserver/carbonserver/api/infra/repositories/repository_projects_tokens.py:117
↓ 1 callers
Method
get_project_token_by_experiment_id_and_token
( self, experiment_id: str, token: str )
carbonserver/carbonserver/api/infra/repositories/repository_projects_tokens.py:80
↓ 1 callers
Method
get_project_token_by_project_id_and_token
(self, project_id: str, token: str)
carbonserver/carbonserver/api/infra/repositories/repository_projects_tokens.py:67
↓ 1 callers
Method
get_project_token_by_run_id_and_token
(self, run_id: str, token: str)
carbonserver/carbonserver/api/infra/repositories/repository_projects_tokens.py:99
↓ 1 callers
Method
get_projects_from_organization
Find the list of projects from a organization in database and return it :org_id: The id of the organization to retreive projects from.
carbonserver/carbonserver/api/infra/repositories/repository_projects.py:89
↓ 1 callers
Method
get_runs_from_experiment
Find the list of runs from an experiment in database and return it :experiment_id: The id of the experiment to retreive runs from. :r
carbonserver/carbonserver/api/infra/repositories/repository_runs.py:77
↓ 1 callers
Method
get_static_cpu_details
Return CPU details without computing them.
codecarbon/core/cpu.py:854
↓ 1 callers
Method
get_static_details
(self)
codecarbon/core/gpu_device.py:65
↓ 1 callers
Method
get_user_by_id
(self, user_id: int)
carbonserver/carbonserver/api/domain/users.py:13
↓ 1 callers
Method
get_user_info
(self, access_token: str)
carbonserver/carbonserver/api/services/auth_providers/oidc_auth_provider.py:63
↓ 1 callers
Function
handleClose
()
webapp/src/components/createProjectModal.tsx:69
↓ 1 callers
Function
handleCopy
(token: string | undefined)
webapp/src/components/createExperimentModal.tsx:97
↓ 1 callers
Function
handleCopy
(token: string)
webapp/src/components/projectTokens/projectTokenTable.tsx:66
↓ 1 callers
Function
handleCopyExperimentId
(id: string)
webapp/src/components/project-dashboard-base.tsx:100
↓ 1 callers
Function
handleDelete
(projectToken: IProjectToken)
webapp/src/components/projectTokens/custom-row-token.tsx:16
↓ 1 callers
Function
handleDeleteClick
(project: Project)
webapp/src/pages/ProjectsPage.tsx:37
↓ 1 callers
Function
handle_cookie_banner
Attempts to find and click a 'Reject All' button for cookie consent.
codecarbon/data/hardware/cpu_dataset_builder/amd_cpu_scrapper.py:13
↓ 1 callers
Function
heavy_computation
(run_time_secs: float = 3)
tests/test_tracking_inference.py:13
↓ 1 callers
Method
identify_potential_ram_domains
Identify potential RAM-related domains based on name and characteristics Sample Detailed RAPL Domain Information: {
examples/rapl/intel_rapl_show.py:120
↓ 1 callers
Function
inference
(model, data, inference_task_name)
examples/task_inference.py:18
↓ 1 callers
Function
init_container
()
carbonserver/main.py:63
↓ 1 callers
Function
init_db
(container)
carbonserver/main.py:82
↓ 1 callers
Function
init_server
(container)
carbonserver/main.py:89
↓ 1 callers
Method
inspect_rapl_domains
Thoroughly inspect RAPL domains with detailed information
examples/rapl/intel_rapl_show.py:62
↓ 1 callers
Function
installMockFetch
()
webapp/src/api/mock/index.ts:10
↓ 1 callers
Method
isOperationAuthorizedOnOrg
(*args, **kwargs)
carbonserver/tests/api/mocks.py:23
↓ 1 callers
Method
isOperationAuthorizedOnProject
(*args, **kwargs)
carbonserver/tests/api/service/test_project_service.py:84
↓ 1 callers
Method
is_admin_in_organization
(self, organization_id: UUID, user: User)
carbonserver/carbonserver/api/infra/repositories/repository_users.py:112
↓ 1 callers
Function
is_linux_os
()
codecarbon/core/util.py:100
↓ 1 callers
Function
is_mac_os
()
codecarbon/core/util.py:86
↓ 1 callers
Method
is_project_public
(self, project_id)
carbonserver/carbonserver/api/infra/repositories/repository_projects.py:73
↓ 1 callers
Method
is_user_authorized_on_experiment
(self, experiment_id, user_id: UUID)
carbonserver/carbonserver/api/infra/repositories/repository_users.py:132
↓ 1 callers
Function
is_windows_os
()
codecarbon/core/util.py:95
↓ 1 callers
Method
list_organizations
(self)
carbonserver/carbonserver/api/domain/organizations.py:16
↓ 1 callers
Method
list_organizations
(self, user: User = None)
carbonserver/carbonserver/api/services/organization_service.py:64
↓ 1 callers
Method
list_project_tokens
(self, project_id: str)
carbonserver/carbonserver/api/domain/project_tokens.py:16
↓ 1 callers
Method
list_projects
(host)
codecarbon/viz/data.py:262
↓ 1 callers
Method
list_projects_from_organization
List all projects
codecarbon/core/api_client.py:162
↓ 1 callers
Method
list_users
(self)
carbonserver/carbonserver/api/domain/users.py:17
↓ 1 callers
Method
list_users
(self)
carbonserver/carbonserver/api/services/user_service.py:27
↓ 1 callers
Method
list_users
( self, organization_id: UUID | str, user: User = None )
carbonserver/carbonserver/api/services/organization_service.py:67
↓ 1 callers
Method
live_out
(self, total: EmissionsData, _)
codecarbon/output_methods/logger.py:42
↓ 1 callers
Method
live_out
(self, _: EmissionsData, delta: EmissionsData)
codecarbon/output_methods/metrics/logfire.py:78
↓ 1 callers
Method
live_out
No-op: BoAmps reports are final, not incremental.
codecarbon/output_methods/boamps/output.py:163
↓ 1 callers
Function
load_all_cpu
(target_percent, duration)
examples/compare_cpu_load_and_RAPL.py:238
↓ 1 callers
Function
load_client_schemas
()
carbonserver/tests/api/test_schema_compatibility.py:10
↓ 1 callers
Function
main
()
codecarbon/data/hardware/cpu_dataset_builder/amd_cpu_scrapper.py:88
↓ 1 callers
Function
main
Main function to run the scraper.
codecarbon/data/hardware/cpu_dataset_builder/intel_cpu_scrapper.py:212
↓ 1 callers
Function
main
Main entry point for the CodeCarbon CLI application. This function catches any exceptions raised during the execution of the CLI commands
codecarbon/cli/main.py:37
↓ 1 callers
Function
main
()
codecarbon/viz/carbonboard.py:302
↓ 1 callers
Function
main
()
codecarbon/viz/carbonboard_on_api.py:278
← previous
next →
501–600 of 1,889, ranked by callers