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
↓ 3 callers
Function
is_rocm_system
Returns True if the system has an rocm-smi interface.
codecarbon/core/gpu_amd.py:9
↓ 3 callers
Method
is_user_in_organization
( self, organization_id: UUID, user: User, *, is_admin: bool | None = None )
carbonserver/carbonserver/api/infra/repositories/repository_users.py:97
↓ 3 callers
Method
list_power_domains
List available RAPL power domains (including intel-rapl and intel-rapl-mmio) :param deduplicate: If True, avoid duplicate domains wi
examples/rapl/intel_rapl_show.py:187
↓ 3 callers
Method
list_projects_from_organization
(self, organization_id: str, user: User)
carbonserver/carbonserver/api/services/project_service.py:67
↓ 3 callers
Function
makeEmissionSeries
(args: { runId: string; samples: number; startedAt: Date; })
webapp/src/api/mock/data.ts:179
↓ 3 callers
Function
makeExperiment
(args: { id: string; projectId: string; name: string; description: string; timestamp: stri
webapp/src/api/mock/data.ts:112
↓ 3 callers
Function
makeRunMetadata
(args: { runId: string; experimentId: string; timestamp: string; })
webapp/src/api/mock/data.ts:155
↓ 3 callers
Function
makeRunRow
(args: { runId: string; experimentId: string; timestamp: string; emissions: number; energy
webapp/src/api/mock/data.ts:227
↓ 3 callers
Method
map_sql_to_schema
Convert a models.ProjectToken to a schemas.ProjectToken :project: An ProjectToken in SQLAlchemy format. :returns: An ProjectToken in
carbonserver/carbonserver/api/infra/repositories/repository_projects_tokens.py:169
↓ 3 callers
Method
map_sql_to_schema
Convert a models.Experiment to a schemas.Experiment :experiment: An Experiment in SQLAlchemy format. :returns: An Experiment in pyDan
carbonserver/carbonserver/api/infra/repositories/repository_experiments.py:183
↓ 3 callers
Function
notFound
(msg = "Not found")
webapp/src/api/mock/handlers.ts:15
↓ 3 callers
Method
out
(self, total: EmissionsData, _)
codecarbon/output_methods/logger.py:19
↓ 3 callers
Method
out
(self, total: EmissionsData, _)
codecarbon/output_methods/logger.py:35
↓ 3 callers
Method
out
(self, total: EmissionsData, delta: EmissionsData)
codecarbon/output_methods/metrics/prometheus.py:110
↓ 3 callers
Function
parse_gpu_ids
Transforms the potential gpu_ids into a list of string id values. Args: gpu_ids: The config file or environment variable value for
codecarbon/core/config.py:47
↓ 3 callers
Function
pickTimeFormat
(spanMs: number)
webapp/src/helpers/time-axis.ts:8
↓ 3 callers
Method
predict
(self, input_data)
tests/test_tracking_inference.py:31
↓ 3 callers
Function
redirectToLogin
()
webapp/src/api/auth.ts:30
↓ 3 callers
Function
set_logger_level
(level: Optional[str] = None)
codecarbon/external/logger.py:25
↓ 3 callers
Method
stop
Stop the scheduler.
codecarbon/external/scheduler.py:44
↓ 3 callers
Method
subscribe_user_to_org
( self, user: User, organization_id: UUID, )
carbonserver/carbonserver/api/services/signup_service.py:46
↓ 3 callers
Method
verify_logging_output
(self, file_path: str, expected_lines=1)
tests/test_logging_output.py:96
↓ 3 callers
Method
verify_output_file
(self, file_path: str)
tests/test_emissions_tracker_constant.py:136
↓ 3 callers
Method
verify_output_file
(self, file_path: str, expected_lines=3)
tests/test_emissions_tracker_flush.py:99
↓ 2 callers
Method
__init__
(self, handle, gpu_index)
tests/test_gpu_amd.py:497
↓ 2 callers
Method
__init__
(self, command, text=True)
tests/cli/test_monitor.py:35
↓ 2 callers
Function
_api_base_url
()
carbonserver/tests/api/integration/test_auth_cookie_flow.py:64
↓ 2 callers
Method
_calculate_power_from_cpu_load
(tdp, cpu_load, model)
codecarbon/external/hardware.py:235
↓ 2 callers
Method
_check_output_is_not_empty
(self, logfire_output)
tests/output_methods/metrics/test_logfire.py:63
↓ 2 callers
Function
_contract_schema
(schema)
carbonserver/tests/api/test_telemetry_schema_drift.py:23
↓ 2 callers
Method
_decode_token
(self, token: str)
carbonserver/carbonserver/api/services/auth_providers/oidc_auth_provider.py:52
↓ 2 callers
Function
_decorate
(fn: Callable)
codecarbon/emissions_tracker.py:1543
↓ 2 callers
Method
_emit_selection_warning_for_gpu_id
(self, gpu_id: int)
codecarbon/external/hardware.py:166
↓ 2 callers
Function
_extract_overrides
Extract known camelCase keys from a dict, returning them as snake_case.
codecarbon/output_methods/boamps/output.py:24
↓ 2 callers
Method
_get_children_memories
Compute the used RAM by the process's children Returns: list(int): The list of RAM values
codecarbon/external/ram.py:195
↓ 2 callers
Method
_get_compute_mode
Returns the compute mode of the GPU
codecarbon/core/gpu_amd.py:246
↓ 2 callers
Method
_get_gpu_utilization
Returns the % of utilization of the kernels during the last sample
codecarbon/core/gpu_amd.py:239
↓ 2 callers
Method
_get_install_instructions
Get CPU tracking installation instructions for the current OS.
codecarbon/core/resource_tracker.py:104
↓ 2 callers
Method
_get_power_from_cpus
Get CPU power :return: power in kW
codecarbon/external/hardware.py:337
↓ 2 callers
Method
_get_uuid
Returns the globally unique GPU device UUID
codecarbon/core/gpu_amd.py:160
↓ 2 callers
Method
_get_windows_exec_backup
Find the windows executable for the current version of intel power gadget. Example: "C:\\Program Files\\Intel\\Power Gadget 3.5\\Powe
codecarbon/core/cpu.py:305
↓ 2 callers
Method
_is_dual_gcd_power_limited_model
(self, gpu_name: str)
codecarbon/core/gpu_amd.py:46
↓ 2 callers
Method
_is_supported_nordic_region
(geo: GeoMetadata)
codecarbon/core/emissions.py:224
↓ 2 callers
Function
_load_credentials
Load OAuth tokens from the local credentials file.
codecarbon/cli/auth.py:93
↓ 2 callers
Method
_make_handler
(self, path)
tests/cli/test_cli_auth.py:21
↓ 2 callers
Method
_persist_data
( self, total_emissions: EmissionsData, delta_emissions: EmissionsData, experi
codecarbon/emissions_tracker.py:909
↓ 2 callers
Method
_read_report
(self)
tests/test_boamps_output.py:1074
↓ 2 callers
Function
_save_credentials
Save OAuth tokens to the local credentials file.
codecarbon/cli/auth.py:87
↓ 2 callers
Function
_scan_base_for_rapl
Scan a single base directory for RAPL entries.
codecarbon/core/cpu.py:140
↓ 2 callers
Function
_scan_direct_entries
Scan for direct intel-rapl:$i entries in base directory.
codecarbon/core/cpu.py:120
↓ 2 callers
Function
_scan_domain_directories
Scan domain directories under a RAPL provider.
codecarbon/core/cpu.py:102
↓ 2 callers
Function
_setup
(settings: Settings)
deploy/deploy.py:57
↓ 2 callers
Method
_setup_powermetrics
Set up CPU and GPU tracking using PowerMetrics (Apple Silicon).
codecarbon/core/resource_tracker.py:84
↓ 2 callers
Function
_to_boamps_datetime
Normalize a timestamp to BoAmps format (YYYY-MM-DD HH:MM:SS).
codecarbon/output_methods/boamps/mapper.py:27
↓ 2 callers
Method
_validate_telemetry
(telemetry: Union[TelemetryCreate, dict])
codecarbon/core/telemetry_client.py:50
↓ 2 callers
Method
add_experiment
Create an experiment, used by the CLI, not the package. ::experiment:: The experiment to create.
codecarbon/core/api_client.py:318
↓ 2 callers
Method
add_organization
(self, user: User, organisation_id: str)
carbonserver/carbonserver/api/services/user_service.py:31
↓ 2 callers
Method
add_project
(self, project: ProjectCreate, user: User)
carbonserver/carbonserver/api/services/project_service.py:21
↓ 2 callers
Method
check_auth
Check API access to user account
codecarbon/core/api_client.py:82
↓ 2 callers
Method
check_organization_exists
Check if an organization exists
codecarbon/core/api_client.py:106
↓ 2 callers
Method
compute_delta_emission
(self, previous_emission)
codecarbon/output_methods/emissions_data.py:55
↓ 2 callers
Method
compute_detailed_sum
( self, organization_id: str, start_date, end_date )
carbonserver/carbonserver/api/usecases/organization/organization_sum.py:11
↓ 2 callers
Function
create_new_config_file
()
codecarbon/cli/cli_utils.py:83
↓ 2 callers
Method
create_organization
Create an organization
codecarbon/core/api_client.py:118
↓ 2 callers
Method
create_redirect_response
RedirectResponse doesn't work with clevercloud, so we return a HTML page with a script to redirect the user Ideally we should be able to do `
carbonserver/carbonserver/api/services/auth_providers/oidc_auth_provider.py:103
↓ 2 callers
Function
deriveAesKey
(secret: string)
webapp/src/utils/crypto.ts:79
↓ 2 callers
Method
do_GET
(self)
codecarbon/cli/auth.py:47
↓ 2 callers
Function
fetchApiVoid
( endpoint: string, options?: RequestInit, )
webapp/src/api/client.ts:48
↓ 2 callers
Method
from_litres
(cls, litres: float)
codecarbon/core/units.py:175
↓ 2 callers
Function
getEmissionsTimeSeries
( runId: string, )
webapp/src/api/runs.ts:58
↓ 2 callers
Function
getEquivalentCarKm
(emissionKg: number)
webapp/src/helpers/constants.ts:29
↓ 2 callers
Function
getEquivalentCitizenPercentage
(emissionKg: number)
webapp/src/helpers/constants.ts:14
↓ 2 callers
Function
getEquivalentTvTime
(energyKwh: number)
webapp/src/helpers/constants.ts:45
↓ 2 callers
Function
getExperiments
(projectId: string)
webapp/src/api/experiments.ts:20
↓ 2 callers
Function
getProjectEmissionsByExperiment
( projectId: string, dateRange: DateRange, )
webapp/src/api/experiments.ts:32
↓ 2 callers
Function
getRunEmissionsByExperiment
( experimentId: string, startDate: string, endDate: string, )
webapp/src/api/runs.ts:22
↓ 2 callers
Function
getSecret
()
webapp/src/utils/crypto.ts:25
↓ 2 callers
Function
get_api_key
(project_id: str)
codecarbon/cli/main.py:134
↓ 2 callers
Method
get_car_miles
8.89 × 10-3 metric tons CO2/gallon gasoline × 1/22.0 miles per gallon car/truck average × 1 CO2, CH4, and N2O/0.988 CO2
codecarbon/viz/data.py:54
↓ 2 callers
Method
get_cloud_country_iso_code
Returns the Country ISO Code where the cloud region is located
codecarbon/core/emissions.py:113
↓ 2 callers
Method
get_cloud_country_name
Returns the Country Name where the cloud region is located
codecarbon/core/emissions.py:98
↓ 2 callers
Method
get_cloud_emissions_barchart_data
( self, net_energy_consumed: float, on_cloud: str, cloud_provider: str,
codecarbon/viz/data.py:202
↓ 2 callers
Method
get_cloud_emissions_barchart_figure
( self, cloud_emissions_barchart_data: pd.DataFrame )
codecarbon/viz/components.py:332
↓ 2 callers
Method
get_cloud_emissions_comparison
()
codecarbon/viz/components.py:303
↓ 2 callers
Method
get_cloud_geo_region
Returns the State/City where the cloud region is located
codecarbon/core/emissions.py:128
↓ 2 callers
Method
get_cloud_recommendation
( self, on_cloud: str, cloud_provider_name: str, cloud_emissions_barchart_data
codecarbon/viz/components.py:355
↓ 2 callers
Method
get_country_choropleth_data
( country_energy_mix: Dict, country_name: str, country_iso_code: str, country_
codecarbon/viz/data.py:130
↓ 2 callers
Function
get_cpu_cores
Get the number of CPU cores
examples/compare_cpu_load_and_RAPL.py:206
↓ 2 callers
Method
get_delta
Get difference since last time this function was called >>> get_delta() [ { "name": "Tesla V100-SXM2-16GB"
codecarbon/core/gpu.py:140
↓ 2 callers
Method
get_detected_hardware
Get the detected hardware. :return: A dictionary containing hardware data.
codecarbon/emissions_tracker.py:639
↓ 2 callers
Method
get_detected_hardware
(self)
tests/cli/test_cli_main.py:77
↓ 2 callers
Method
get_emissions_from_run
(self, run_id)
carbonserver/carbonserver/api/domain/emissions.py:18
↓ 2 callers
Method
get_exemplary_equivalents
()
codecarbon/viz/components.py:176
↓ 2 callers
Method
get_experiment
Get an experiment by id
codecarbon/core/api_client.py:332
↓ 2 callers
Method
get_global_comparison
(self)
codecarbon/viz/components.py:461
↓ 2 callers
Method
get_global_emissions_choropleth_figure
(self, choropleth_data)
codecarbon/viz/components.py:484
↓ 2 callers
Method
get_global_energy_mix_choropleth_figure
(self, energy_type, choropleth_data)
codecarbon/viz/components.py:515
↓ 2 callers
Method
get_header
()
codecarbon/viz/components.py:37
↓ 2 callers
Method
get_hidden_project_data
()
codecarbon/viz/components.py:701
↓ 2 callers
Method
get_hidden_project_summary
()
codecarbon/viz/components.py:705
← previous
next →
201–300 of 1,889, ranked by callers