blob: 1e9e0073033f93ca860d56c66a799b15b929f5d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# simple script to generate random seating plans using templates
## Usage
```
usage: spgen.py [-h] [--duration DURATION | --week WEEK] template
positional arguments:
template
options:
-h, --help show this help message and exit
--duration DURATION
--week WEEK
```
Pipeline to generate a HTML seating plan from a Infoportal csv class list.
```sh
cat Klassenliste.csv | cut -f2 -d';' | ./spgen.py templates/8,9,9,4.html --seats=n > class.html
```
## Available Templates
```
templates
├── 4x(2,5).tex
├── 8,9,9,4.html
└── 8,9,9,4.tex
```
## Requirements
* python >= 3.10
The requirements can be installed in virtual environment using [`pipenv`](https://pipenv.pypa.io/).
## License
The spgen.py program is licensed under the terms of the GNU General Public
License version 3. A Copy of the license is included in the `LICENSE` file.
|