Skip to main content

Cheminot API wrapper

A simple wrapper for Cheminot's API to aid in registration automation.

Cheminot is the course registration application of École de technologie supérieure.

Installation

pip install cheminot

Usage

Instanciation

from cheminot import CheminotSession

cheminot = CheminotSession(
    AUTH_TOKEN,
    USER_AGENT,
    STUDENT_ID,
    PROGRAM_ID,
    SEMESTER_ID,
    "https://cheminotn.etsmtl.ca"
)

Methods

get_path_courses() # Retrieve the program's path's courses.
get_course_available_groups(course_id: str) # Get available groups for a specific course.
register_to_course(course_id: str, group_number: str, concentration: str) # Register to a course's group.
unregister_from_course(course_id: str) # Unregister from a course.
get_schedule() # Retrieve the current schedule.
confirm_schedule() # Confirm/save the current schedule.

Variables

AUTH_TOKEN

The JWT authorization token associated with the session to be used in requests. It expires after 1 hour.

USER_AGENT

The user to be used in requests.

STUDENT_ID

The permanent student code.

PROGRAM_ID

The code of the program.

SEMESTER_ID

The semester's code.

Format: {YEAR}{SEMESTER_POSITION_IN_YEAR(1 for Winter, 2 for Summer and 3 for Fall)}

CONCENTRATION_ID

Possible values:

  • "TC" (for Tronc Commun) used for mandatory courses.
  • "AX" (for Axe), used for optional courses.

Endpoints

Get path's courses

GET /api/Etudiant/{STUDENT_ID}/programme/{PROGRAM_ID}/cheminement?session={SEMESTER_ID}

Get course's available groups

GET /api/CoursOfferts/{STUDENT_ID}/programme/{PROGRAM_ID}/cours/{COURSE_ID}?sessionInscr={SEMESTER_ID}

Register to a course

POST /api/horaire/etudiant/{STUDENT_ID}/programme/{PROGRAM_ID}/horaire/add?session={SEMESTER_ID}&concentration={CONCENTRATION_ID}
Body: {"Sigle":"{COURSE_ID}","Groupe":"{GROUP_NUMBER}"}

Unregister from a course

DELETE /api/horaire/etudiant/{STUDENT_ID}/programme/{PROGRAM_ID}/session/{SEMESTER_ID}/cours/{COURSE_ID}

Get schedule

GET /api/horaire/etudiant/{STUDENT_ID}/programme/{PROGRAM_ID}/horaire?session={SEMESTER_ID}

Confirm schedule

PUT /api/horaire/etudiant/{STUDENT_ID}/confirmation-horaire
Body: {"SessionInscr":{SEMESTER_ID},"ProgrammeId":"{PROGRAM_ID}"}

Metadata

Release files for cheminot 1.0.0

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

Source distribution (sdist)

Source distribution for cheminot 1.0.0
File Size Uploaded Provenance Actions
cheminot-1.0.0.tar.gz 40.6 kB With provenance Details for cheminot-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 68.8 kB

Release files / cheminot-1.0.0.tar.gz

Download URL cheminot-1.0.0.tar.gz
Size 40.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1cf744d5330dfdf3a27dc09f56155229ca0795250e6b5f290f98e1419b344f84
BLAKE2b-256 checksum
How to use checksums
d6595d1d62c6e7839a5cd1d0a4a1ed46500bfcd207992389fe2ed06fdda54e32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 5, 2026.

Transparency log

Release files / cheminot-1.0.0-py3-none-any.whl

Download URL cheminot-1.0.0-py3-none-any.whl
Size 28.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
172d36c6705ac0975720bba5ee702797d8e13ee5c1db5b96b49a89dbef636685
BLAKE2b-256 checksum
How to use checksums
c93803a2e84d3a3786255b727b64ec1ec0b9726fb2c68ceeb773f74cabb9b360
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 5, 2026.

Transparency log

Security for cheminot 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cheminot-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

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