No description
Find a file
2025-10-31 15:13:32 +01:00
.gitignore Hello .gitignore 2024-05-22 20:35:33 +02:00
genepy.py switch to genepy.org 2025-10-31 15:13:32 +01:00
pyproject.toml Add the new command. 2025-06-09 10:48:04 +02:00
README.md Import and merge together scripts/* and cli/* from hkis-website repo. 2023-12-08 13:52:03 +01:00

Genepy CLI

This is the HackInScience/Genepy command line client.

$ genepy list exercises
                    Exercises
┏━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Done ┃ Title                                   ┃
┡━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│      │ Django view                             │
│      │ Hello World                             │
│      │ Print 42                                │
│      │ Number of seconds in a year             │
│      │ Using operators                         │
└──────┴─────────────────────────────────────────┘

This is currently usefull mostly for teachers to download/upload exercises:

$ 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'