Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gr_sch_helper-0.1.0.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gr_sch_helper-0.1.0-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file gr_sch_helper-0.1.0.tar.gz.

File metadata

  • Download URL: gr_sch_helper-0.1.0.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for gr_sch_helper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 574f0c6779ee41170dad4c683a2d4ff03573e21a9f4e3489e4249cf4787ce833
MD5 778ad30034a55078a9bc9c899803fd0b
BLAKE2b-256 dc2fb4d79c6b2fa9f148604bb813078982d08852a27d5a86d9f85e08496bdb37

See more details on using hashes here.

File details

Details for the file gr_sch_helper-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gr_sch_helper-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for gr_sch_helper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff711f1513122af6119be2d3d50b40ec7000c387608877ef71555015daaca4f8
MD5 b90abf26a8b4adbc39893bea708df20c
BLAKE2b-256 c0658c00f9bc79d8606aabfa966c357cfec9cd6c7fb11efbc2e8b79037a3b160

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page