Skip to content

🌱 Real-time carbon footprint tracker for Python code. Measure your code's environmental impact and optimize for sustainability.

License

Notifications You must be signed in to change notification settings

sochishvindula/EcoCode-Python-Carbon-Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌱 EcoCode: Real-Time Carbon Footprint Tracker for Python Code

Python 3.8+ License: MIT

Measure your Python code's environmental impact in real-time!

EcoCode helps you write more sustainable code by tracking energy consumption, calculating CO2 emissions, and suggesting optimizations. Perfect for climate-conscious developers.

🎯 Why I Built This

As a robotics engineer in Berlin, I noticed we optimize code for speed and memory, but never for environmental impact. EcoCode bridges this gap by making sustainability measurable.

⚑ Quick Start

from ecocode import eco_monitor

@eco_monitor def your_function():

Your code here

return "Hello, green world!"

your_function()

πŸ“Š What You Get

  • Real-time energy monitoring during code execution
  • CO2 emissions calculation based on regional grid
  • Tree-hours needed to offset your code's impact
  • Easy decorator for any function

πŸ”§ Installation

pip install psutil

python ecocode.py

About

🌱 Real-time carbon footprint tracker for Python code. Measure your code's environmental impact and optimize for sustainability.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages