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.4.tar.gz (25.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.4-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gr_sch_helper-0.1.4.tar.gz
  • Upload date:
  • Size: 25.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.4.tar.gz
Algorithm Hash digest
SHA256 9f4080e226eb11bdb4f1f2aee71146aed69317c87206f23f1eef364d7c0b4ffb
MD5 945a6e5802b935c9ef4d2423998e4304
BLAKE2b-256 1fe8ef5e56175c50067b8628f0cb4deb67ff775d06d31cbdd9d58deccb98e9bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gr_sch_helper-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 26.7 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cef6b1872f6bb3baf9f430082a99a16fca7681e8806d158a60ade1c06b4fe1c7
MD5 05c5c80ccadd17feea95a36134a3472b
BLAKE2b-256 70ab61849ee71a0e2548ac4a50c99e6cfe29f0585a193ce1739dcbc2e421c7d1

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