Skip to main content

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/

Metadata

Release files for genepy 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for genepy 1.0.1
File Size Uploaded
genepy-1.0.1.tar.gz 8.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for genepy 1.0.1
File Interpreter ABI Platform
genepy-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 17.0 kB

Release files / genepy-1.0.1.tar.gz

Download URL genepy-1.0.1.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dee03107aaa057e3a2654ee9be0bc53410ca90704e7af2ebe27163e8363e2b6c
BLAKE2b-256 checksum
How to use checksums
9484568c5fa7eb484b7286dfdff1c87b543da08415edfba50de8aabbe3deb269
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / genepy-1.0.1-py3-none-any.whl

Download URL genepy-1.0.1-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0510bae46b9909db673783a3bc1a2755e0ee7ee44eb231f86fcd46a17a88aff
BLAKE2b-256 checksum
How to use checksums
b43944ccae5828d46a35ea7b75c5f70934ab1007c0a876bb01b35a1ba45d5032
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page