Metadata-Version: 2.3
Name: saplist2pdf-sebastian-stigler
Version: 0.1.0
Summary: Convert the excel list from sap to a pdf
Keywords: sap,excel,pdf,cli,reporting
Author: Sebastian Stigler
Author-email: Sebastian Stigler <sebastian.stigler@hs-aalen.de>
License: MIT License
         
         Copyright (c) 2026 Sebastian Stigler
         
         Permission is hereby granted, free of charge, to any person obtaining a copy
         of this software and associated documentation files (the "Software"), to deal
         in the Software without restriction, including without limitation the rights
         to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         copies of the Software, and to permit persons to whom the Software is
         furnished to do so, subject to the following conditions:
         
         The above copyright notice and this permission notice shall be included in all
         copies or substantial portions of the Software.
         
         THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
         SOFTWARE.
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Education
Classifier: Topic :: Utilities
Requires-Dist: fpdf2>=2.8.7
Requires-Dist: openpyxl>=3.1.5
Requires-Dist: pandas>=3.0.3
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# saplist2pdf

Convert the SAP Excel list into a formatted PDF.

## Requirements

- Python 3.11 or newer
- A SAP export in Excel format with the expected columns

## Install

### With `pip`

Create a virtual environment first, then install the project in editable mode:

```bash
python -m venv .venv
source .venv/bin/activate
pip install saplist2pdf-sebastian-stigler
```

## Usage

After installation, the command line tool is available as `saplist2pdf`.

```bash
saplist2pdf input.xlsx
```

By default, the PDF is written to `teilnehmerliste.pdf`.

### Options

- `-o`, `--output`: set a custom output filename
- `--check`: validate the Excel file without creating a PDF
- `--version`: print the installed version

### Examples

Create a PDF with a custom name:

```bash
saplist2pdf input.xlsx -o output.pdf
```

Validate the spreadsheet before generating the PDF:

```bash
saplist2pdf input.xlsx --check
```

## Expected input

The Excel file must contain at least one row and these columns:

- `Modultitel`
- `Leistungsnummer`
- `Name der Prüfung`
- `Bezugsobjekt`
- `Prüfender`
- `Semester`
- `Studienfach`
- `Matrikelnummer`
- `Name`
- `Versuch`

Furthermore, it is expected, that the all rows for the columns mentioned above, except the last three, are the same.
