codecarbon

v3.3.2 safe
2.8
Low Risk

Track and reduce the CO2 emissions of your computing

📦 Package Quality Overall: Medium (5.2/10)

✦ High Test Suite 9.0

Test suite present — 1 test file(s) found

  • Test runner config found: pyproject.toml
  • 1 test file(s) detected (e.g. test_api_call.py)
◈ Medium Documentation 7.0

Some documentation present

  • Documentation URL: "Documentation" -> https://docs.codecarbon.io/
  • Detailed PyPI description (10362 chars)
○ Low Contributing Guide 4.0

No contributing guide or governance files found

  • Development Status classifier >= Beta
◈ Medium Type Annotations 5.0

Partial type annotation coverage

  • 268 type-annotated function signatures detected in source
○ Low Multiple Contributors 1.0

Could not retrieve contributor data from GitHub

  • GitHub API error: 401

🔬 Heuristic Checks

⚠ Outbound Network Calls score 9.0

Found 6 network call pattern(s)

  • overy document.""" resp = requests.get(AUTH_SERVER_WELL_KNOWN) resp.raise_for_status() retu
  • dpoints() jwks_resp = requests.get(discovery["jwks_uri"]) jwks_resp.raise_for_status()
  • scover_endpoints() resp = requests.post( discovery["token_endpoint"], data={
  • ndpoint.rstrip("/") req = requests.post( f"{api_endpoint}/projects/{project_id}/api-tokens",
  • vider] response = requests.get( params["url"], headers=params["headers"], t
  • ) try: resp = requests.get( URL, params=params, hea
✓ Code Obfuscation

No obfuscation patterns detected

⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • O objects). process = subprocess.Popen(command, text=True) # Wait for completion e
  • False try: res = subprocess.run( ["vcgencmd", "pmic_read_adc"], capture_output=T
  • n"): returncode = subprocess.call( [ self._cli,
  • n"): returncode = subprocess.call( f"'{self._cli}' -duration {self._duration}
  • nterface.""" try: subprocess.check_output(["rocm-smi", "--help"]) return True except (subp
  • nterface.""" try: subprocess.check_output(["nvidia-smi", "--help"]) return True except Exc
✓ Credential Harvesting

No credential harvesting patterns detected

✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

No author email provided

⚠ Suspicious Page Links score 4.0

Found 2 suspicious link(s) on the package page

  • Non-HTTPS external link: http://mila.quebec
  • Non-HTTPS external link: http://dashboard.codecarbon.io/
⚠ Git Repository History score 3.0

GitHub API error: 401

  • GitHub API error: 401
⚠ Maintainer History score 2.0

1 maintainer concern(s) found

  • Author "Mila, DataForGood, BCG GAMMA, Comet.ml, Haverford College" appears to have only 1 package on PyPI (new or inactive account)
✓ Known CVE Vulnerabilities

No known vulnerabilities found in OSV database.

💡 AI App Starter Prompt

Use this prompt to build a project with codecarbon
Build a simple Python application using the codecarbon package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

No discussion yet. Be the first to share your thoughts!