mlco2 / codecarbon

Track emissions from Compute and recommend ways to reduce their impact on the environment.
https://mlco2.github.io/codecarbon
MIT License
1.18k stars 178 forks source link

Feat/rework cli #506

Closed LuisBlanche closed 3 months ago

LuisBlanche commented 9 months ago

Allows Initiation of project by adding methods to the python client for the API and a user friendly CLI

LuisBlanche commented 8 months ago

I just need to figure out what is wrong with one of the tests before submitting fo review ?

benoit-cty commented 8 months ago

I just need to figure out what is wrong with one of the tests before submitting fo review ?

The return of codecarbon config --init is "1" (see here) so maybe try to add the texte output of the command to find out.

Does it works when you run tox locally ?

LuisBlanche commented 8 months ago

I just need to figure out what is wrong with one of the tests before submitting fo review ?

The return of codecarbon config --init is "1" (see here) so maybe try to add the texte output of the command to find out.

Does it works when you run tox locally ?

It's all good I just had a test that was creating a .codecarbon.config dile that was messing with the other tests. It's good for review now

LuisBlanche commented 8 months ago

I changed the base branch back and forth because the PR had not caught the rebase somehow. It's all good now

LuisBlanche commented 8 months ago

Here is a video made with asciinema of how the CLI works : https://asciinema.org/a/648518

There is probably a way to integrate this video in the docs . There is a special player that you can embed and you can actually copy and paste from the video

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
codecarbon ❌ Failed (Inspect) Aug 8, 2024 5:07pm