Haxagon Grades CLI is a command-line tool designed to manage and generate reports for Haxagon classes. The tool allows you to fetch and export class reports in different formats.
- Generate class reports in CSV or JSON format.
- Specify output directory for the generated reports.
- Supports headless mode for automated environments.
Install the CLI using pipx
to keep it isolated from your system Python packages:
pipx install haxagongrades
Make sure you have pipx
installed. If not, you can install it via pip:
pip install pipx
pipx ensurepath
After installing, you can use the haxagongrades
command to interact with the CLI.
Generate a report for a specific class.
haxagongrades report <class_name> [OPTIONS]
-f, --format [csv|json]
(Required): Choose the output format.-o, --output PATH
: The path to the output folder (default is/tmp
).-l, --login TEXT
: The username to login with.-p, --password TEXT
: The password to login with.--headless
: Run in headless mode (default isFalse
).
Generate a report in CSV format for class 3.A
and save it to the /reports
directory:
haxagongrades report "3.A" --format csv --output /reports
Generate a JSON report for class 3.A
using headless mode:
haxagongrades report "3.A" --format json --headless
To contribute to this project, clone the repository and install the dependencies:
git clone https://github.com/Semtexcz/haxagongrades.git
cd haxagongrades
pip install -e .
This project is licensed under the MIT License. See the LICENSE file for details.