Sign inSign up

hexanyn/42-scale

By hexanyn

•Updated over 5 years ago

Image
1

819

hexanyn/42-scale repository overview

⁠42 corrections scale

⁠Presentation

You can fetch corrections scale with this script

⁠Mandatory part

Make sure you have this 2 env values before launching

API42_CLIENT='...'
API42_SECRET='...'

To have these credentials, you must create an application here https://profile.intra.42.fr/oauth/applications/new⁠
And you can add them in your ~/.zshrc file via export command (export API42_CLIENT="CLIENT_TOKEN")

⁠Standalone

You can start this script directly on your computer, to do that you must have requests & inquirer pip3 packages
Installation is done via this command

pip3 install -r requirements.txt

Launching via

python3 scale.py

OR

./scale.py

⁠Docker

You simply need to launch a docker command

docker run -it --rm -e "API42_CLIENT=$API42_CLIENT" -e "API42_SECRET=$API42_SECRET" hexanyn/42-scale

Tag summary

Content type

Image

Digest

Size

19.7 MB

Last updated

over 5 years ago

docker pull hexanyn/42-scale