A library for writing scripts to help with organising a Greek public school and interfacing with myschool.sch.gr - UNOFFICIAL
Project description
gr_school_helper
Βοηθητικές συναρτήσεις για ελληνικά σχολεία — Helper utilities for Greek schools.
Note: the library is intended for use strictly with the greek public school IT ecosystem (myschool.sch.gr etc.). As such all documentation below is in the greek language.
Συλλογή Python modules για την αυτοματοποίηση συνηθισμένων διαχειριστικών εργασιών σε ελληνικά σχολεία.
Εγκατάσταση
pip install gr_school_helper
Modules
sch
Σκόρπιες μικρές βοηθητικές συναρτήσεις ή ορισμοί, γίνεται imported από όλα τα άλλα
from gr_school_helper import sch
# Παράδειγμα - μενού επιλογής
```python
from gr_school_helper.myschool import sch
choices = ["ένα","δύο","τρία"]
choice = sch.set_option_select(choices)
### `myschool`
Αυτοματοποιεί την αλληλεπίδραση με την πλατφόρμα myschool.edu.gr μέσω διαχειριζόμενου προγράμματος περιήγησης Firefox. Το geckodriver κατεβαίνει και αποθηκεύεται αυτόματα την πρώτη φορά.
```python
from gr_school_helper.myschool import webriver
# Ως context manager (προτείνεται)
with webriver() as driver:
driver.some_helper_function()
# Ή χειροκίνητα
driver = webriver()
driver.some_helper_function()
driver.close()
mailer
Αποστολή email μέσω SMTP. Χρήσιμο για αυτοματοποιημένες ειδοποιήσεις σε γονείς, προσωπικό ή μαθητές.
from gr_school_helper import mailer
# TODO: προσθήκη παραδείγματος χρήσης
rlab
Διάφορες βοηθητικές συναρτήσεις για δημιουργία αναφορών με το reportlab
Απαιτήσεις
- Python >= 3.8
- Εγκατεστημένος Firefox στο σύστημα (για το module
myschool) - Πρόσβαση στο διαδίκτυο την πρώτη εκτέλεση (το geckodriver κατεβαίνει αυτόματα)
Εξαρτήσεις
| Πακέτο | Χρήση |
|---|---|
selenium |
Αυτοματοποίηση προγράμματος περιήγησης |
webdriver-manager |
Αυτόματη διαχείριση geckodriver |
openpyxl |
Διαχείριση αρχείων Excel |
babel |
Μορφοποίηση ημερομηνιών και locale |
beaupy |
Terminal UI (prompts, spinners) |
reportlab |
Δημιουργία PDF |
Ρυθμίσεις
TODO: περιγραφή αρχείων ρυθμίσεων (π.χ. .ini αρχεία που διαβάζονται από το configparser).
Σημειώσεις
- Η βιβλιοθήκη αναπτύχθηκε για χρήση με ελληνικά σχολικά πληροφοριακά συστήματα.
- Το module
myschoolστοχεύει στην πλατφόρμα myschool.sch.gr. Αλλαγές στην πλατφόρμα ενδέχεται να απαιτήσουν ενημέρωση της βιβλιοθήκης.
Άδεια Χρήσης
GPLv3 (αρχείο LICENSE)
Συγγραφέας
shortmanikos shortmanikos@gmail.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gr_sch_helper-0.1.8.tar.gz.
File metadata
- Download URL: gr_sch_helper-0.1.8.tar.gz
- Upload date:
- Size: 24.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2238c16af7b5b3568ca4291b5fb52231701788d800173cb3fe163db9d92a0c6
|
|
| MD5 |
0304973de0aa1f355773dd81837a57e6
|
|
| BLAKE2b-256 |
49d13d874dfa4c1106b8397604cec4b7f9f6a2679cb28072cc02c1f1dca59197
|
File details
Details for the file gr_sch_helper-0.1.8-py3-none-any.whl.
File metadata
- Download URL: gr_sch_helper-0.1.8-py3-none-any.whl
- Upload date:
- Size: 25.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ee16177512d256ba2e9983cf5631c9f19f64321066fd0b4d67cae86e9197da2
|
|
| MD5 |
6f5a5f612ccae37267c8a46d4dcb4845
|
|
| BLAKE2b-256 |
b5eb9ec50de9f8536437282d2235b0609c59179a8ce3001a67a19239f0554019
|