No description
Find a file
2026-05-08 22:51:57 +02:00
.gitignore Hello .gitignore 2024-05-22 20:35:33 +02:00
genepy.py Better UX 2026-05-08 22:51:57 +02:00
pyproject.toml Some tox config. 2026-05-08 16:52:18 +02:00
README.md Better UX 2026-05-08 22:51:57 +02:00

Genepy CLI

This is the genepy.org command line client.

Howto

First create an account on https://genepy.org.

Install genepy:

pip install genepy

Get some work to do:

genepy get

This will create a file, like fix-indentation-113.py, just edit the file with your favorite code editor, then check your file:

genepy check fix-indentation-113.py

For teachers

You can use the genepy client to synchronize your exercises with a local directory, allowing you to edit them locally, run tests on them, backup them, or even version them using git.

$ genepy pull --page nsi
$ tree nsi
nsi
├── distance
│   ├── check.py
│   ├── initial_solution.py
│   ├── meta
│   ├── wording_en.md
│   └── wording_fr.md
└── print-42
    ├── check.py
    ├── initial_solution.py
    ├── meta
    ├── wording_en.md
    └── wording_fr.md

3 directories, 10 files
$ genepy -v push
INFO:genepy:[fr] Uploading 'Print 42'
INFO:genepy:[en] Uploading 'Print 42'
INFO:genepy:[fr] Uploading 'Distance'
INFO:genepy:[en] Uploading 'Distance'

That's what I use to work on the main exercise set, with unit tests and all, here: https://git.afpy.org/mdk/genepy-exercises/