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.3.tar.gz (24.9 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.3-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gr_sch_helper-0.1.3.tar.gz
  • Upload date:
  • Size: 24.9 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.3.tar.gz
Algorithm Hash digest
SHA256 bc52582b51bc9c5eb8d1f381514e1291c4ad3a4f8784db0c4b764e733793e22b
MD5 3b128fdd4323eadb4519a94a3c75b9f9
BLAKE2b-256 3870e18551eeeae53895c75a5e1189bf75a5851e376f44c6627bf287be609278

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gr_sch_helper-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 26.6 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 99d281b3857097e13b72475c79e07c5ceff0f6d3b5573bd65905b7df625b3d52
MD5 6b7fca8b256e76c9747cd9bf7081f3e6
BLAKE2b-256 b09623ff1e2e8ca98e837bcd7cce2af11524f84d343a96a9e7933fbae30f2727

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