Skip to main content Switch to mobile version ecologits 0.12.0 EcoLogits tracks and estimates the energy consumption and environmental impacts of using generative AI models through APIs.
pip install ecologits==0.12.0 Copy PIP instructions
🌱 EcoLogits tracks the energy consumption and environmental impacts of using generative AI models through APIs.
Read the full documentation on ecologits.ai.
EcoLogits is part of the Code Carbon non-profit — built by volunteers and supported by sponsors. Chat with us on Discord.
Local compute? Use CodeCarbon. Also see the other ecologits projects: Calculator, EcoLogits API, and EcoLogits.js. When to use which →
pip install ecologits For integration with a specific provider, use pip install ecologits[openai]. We are currently supporting the following providers: anthropic, cohere, google-genai, huggingface-hub, mistralai and openai. See the full list of providers.
from ecologits import EcoLogits from openai import OpenAI # Initialize EcoLogits EcoLogits.init(providers=["openai"]) client = OpenAI(api_key=" ") response = client.chat.completions.create( model="gpt-4o-mini", messages=[ {"role": "user", "content": "Tell me a funny joke!"} ] ) # Get estimated environmental impacts of the inference print(f"Energy consumption: {response.impacts.energy.value.mean} kWh") print(f"GHG emissions: {response.impacts.gwp.value.mean} kgCO2eq") See package documentation on EcoLogits
Community integrations built on EcoLogits (independent projects):
ecologits-statusline — Claude Code status line (Vincent Duarte)
ecologits-vscode — VS Code status bar (marmelab)
To get started with setting up a development environment and making a contribution to EcoLogits, see Contributing to EcoLogits.
This project is licensed under the terms of the Mozilla Public License Version 2.0 (MPL-2.0).
Author: Samuel Rincé, Adrien Banse
MPL-2.0 View SPDX License List
anthropic cohere google-genai huggingface-hub litellm mistralai openai opentelemetry
Intended Audience Developers
License OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
Programming Language Python :: 3
Scientific/Engineering :: Artificial Intelligence
Software Development :: Libraries :: Python Modules
Release files for ecologits 0.12.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 1.2 MB
Release files / ecologits-0.12.0.tar.gz
Release files / ecologits-0.12.0-py3-none-any.whl
Security for ecologits 0.12.0
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 26, 2026 2 release files No provenance
Oct 14, 2026 2 release files No provenance
Sep 29, 2026 2 release files No provenance
Jul 7, 2026 2 release files No provenance
Jun 17, 2026 2 release files No provenance
Jun 4, 2026 2 release files No provenance
Apr 9, 2026 2 release files No provenance
Mar 18, 2026 2 release files No provenance
Feb 25, 2026 2 release files No provenance
Jan 24, 2026 2 release files No provenance
Nov 13, 2025 2 release files No provenance
Aug 16, 2025 2 release files No provenance
Aug 11, 2025 2 release files No provenance
Aug 1, 2025 2 release files No provenance
Jul 15, 2025 2 release files No provenance
Jul 8, 2025 2 release files No provenance
Jun 2, 2025 2 release files No provenance
May 19, 2025 2 release files No provenance
Apr 4, 2025 2 release files No provenance
Mar 10, 2025 2 release files No provenance
Feb 28, 2025 2 release files No provenance
Nov 29, 2024 2 release files No provenance
Oct 28, 2024 2 release files No provenance
Sep 23, 2024 2 release files No provenance
Aug 29, 2024 2 release files No provenance
Aug 21, 2024 2 release files No provenance
Jul 18, 2024 2 release files No provenance
Jul 17, 2024 2 release files No provenance
Jul 2, 2024 2 release files No provenance
Jun 19, 2024 2 release files No provenance
May 21, 2024 2 release files No provenance
May 2, 2024 2 release files No provenance
Apr 30, 2024 2 release files No provenance
Apr 18, 2024 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




