mlco2 / codecarbon

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

Feat/rework cli #506

Open LuisBlanche opened 4 months ago

LuisBlanche commented 4 months ago

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

LuisBlanche commented 3 months ago

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

benoit-cty commented 3 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 3 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 3 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 3 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