Skip to content
Français
Sync not enabled: your progress stays in this browser My learning
Select theme
Français

Skill · Scripting · Automate with code

Write a tested command-line tool

Write a well-structured Python command-line tool, with functions, classes and parameters, and cover it with tests.

Start lesson 1The Scripting domain

Lessons

How to learn it

This skill is learned with the tool of your choice; your preferences decide the path followed in your journey. Each path lists its lessons in program order.

With Python

8 lessons · ~8 h 25 default

Part 1 · Volet 2 · Fonctions et POO (in French) 2 lessons · ~2 h 00

  1. 1Les fonctions (in French)· 60 min
  2. 2Gerer les exceptions (in French)· 60 min

Part 2 · Volet 4 · Outillage et environnement (in French) 3 lessons · ~2 h 50

  1. 3Python virtual environments: isolate your projects· 35 min
  2. 4uv : le gestionnaire ultra-rapide (in French)· 70 min
  3. 5Ruff : linter et formateur (in French)· 65 min

Part 3 · Volet 5 · Mettre en pratique (in French) 3 lessons · ~3 h 35

  1. 6Click : des CLI en Python (in French)· 100 min
  2. 7Tester son code Python (in French)· 20 min
  3. 8pytest: write and run Python tests· 95 min

With Go

7 lessons · ~2 h 55

Part 1 · Volet 3 · Qualité et outillage (in French) 3 lessons · ~1 h 20

  1. 1Tester du code (table-driven) (in French)· 40 min
  2. 2Qualité : vet, staticcheck, golangci-lint (in French)· 25 min
  3. 3Compiler et versionner un binaire (in French)· 15 min

Part 2 · Volet 4 · Applications réelles (in French) 3 lessons · ~1 h 20

  1. 4Écrire une CLI avec Cobra (in French)· 20 min
  2. 5Configuration YAML et TOML (in French)· 35 min
  3. 6Consommer une API REST (in French)· 25 min

Part 3 · Volet 5 · Mise en production (in French) 1 lesson · ~15 min

  1. 7Logging structuré avec slog (in French)· 15 min

Beyond the lessons

Assess, practise, pass the proof

Reading a lesson confirms nothing. A skill is confirmed by a passed quiz, practised in a guided lab, and put to the test by a challenge or a mission; an imported lab result is not verified by the site.

Assess yourself

7 quizzes

At the end of the lessons: passed at 70%, they confirm the skill.

Proof

No proof

Neither a challenge nor a mission with a proof yet.

Around it

Who requires it, who teaches it