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.2.tar.gz (23.3 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.2-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gr_sch_helper-0.1.2.tar.gz
  • Upload date:
  • Size: 23.3 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.2.tar.gz
Algorithm Hash digest
SHA256 0399088b7e3760302c7d71c4bc91196687be5d8db43790f0efad6510a8aa5b0f
MD5 6711513bd2f94b8869a37d6773078723
BLAKE2b-256 6a2ed431abf3f2e3533aa7a2b746ab8c89fa21712640bc9f0770b17c1b0b83f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gr_sch_helper-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 23.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f018fc54596ea2e45ae4ca50c019e23e934acf4faf9a2cddfae2c76bcc17dcfc
MD5 3f18872a33992d666c003db44847165a
BLAKE2b-256 f1753de0bf15731df8ac9f8d65144a182670f8f02afff3a94ebba9ef1dd6b2ad

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