Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove outdated CAS #255

Merged
merged 22 commits into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 8 additions & 31 deletions docs/source/api/ent.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
.. _ent:

ENT / CAS
=========

All ENT functions that you can use while initialising the client.
All ENT functions that you can use while initializing the client.

An example of client initialisation with the ac_reunion ENT:
An example of client initialization with the ac_reunion ENT:

.. code-block:: python

Expand All @@ -23,55 +21,30 @@ An example of client initialisation with the ac_reunion ENT:

-----------------------------------------------------------------


.. currentmodule:: pronotepy.ent

.. autofunction:: ac_clermont_ferrand

.. autofunction:: ac_grenoble

.. autofunction:: ac_lyon

.. autofunction:: ac_orleans_tours

.. autofunction:: ac_poitiers

.. autofunction:: ac_reims

.. autofunction:: ac_rennes

.. autofunction:: ac_reunion

.. autofunction:: atrium_sud

.. autofunction:: cas_agora06

.. autofunction:: cas_arsene76

.. autofunction:: cas_arsene76_edu

.. autofunction:: cas_cybercolleges42

.. autofunction:: cas_cybercolleges42_edu

.. autofunction:: cas_ent27

.. autofunction:: cas_kosmos

.. autofunction:: cas_seinesaintdenis_edu

.. autofunction:: eclat_bfc

.. autofunction:: ecollege_haute_garonne

.. autofunction:: ecollege_haute_garonne_edu

.. autofunction:: enc_hauts_de_seine

.. autofunction:: ent2d_bordeaux

.. autofunction:: ent77

.. autofunction:: ent_94

.. autofunction:: ent_auvergnerhonealpe
Expand All @@ -90,16 +63,20 @@ An example of client initialisation with the ac_reunion ENT:

.. autofunction:: ent_var

.. autofunction:: ent77

.. autofunction:: ent_ecollege78

.. autofunction:: extranet_colleges_somme

.. autofunction:: ile_de_france

.. autofunction:: l_normandie

.. autofunction:: laclasse_educonnect

.. autofunction:: laclasse_lyon

.. autofunction:: l_normandie

.. autofunction:: lyceeconnecte_aquitaine

.. autofunction:: lyceeconnecte_edu
Expand Down
62 changes: 28 additions & 34 deletions pronotepy/ent/__init__.py
Original file line number Diff line number Diff line change
@@ -1,50 +1,44 @@
from .ent import (
ac_clermont_ferrand,
ac_grenoble,
ac_lyon,
cas_arsene76,
cas_ent27,
cas_kosmos,
ent_creuse,
occitanie_toulouse,
occitanie_montpellier,
val_doise,
cas_cybercolleges42_edu,
ecollege_haute_garonne_edu,
ac_orleans_tours,
ac_poitiers,
ac_reims,
ac_reunion,
atrium_sud,
cas_agora06,
cas_arsene76,
cas_arsene76_edu,
cas_cybercolleges42,
cas_cybercolleges42_edu,
cas_ent27,
cas_kosmos,
cas_seinesaintdenis_edu,
cas_arsene76_edu,
eclat_bfc,
ecollege_haute_garonne,
ecollege_haute_garonne_edu,
enc_hauts_de_seine,
ent2d_bordeaux,
ent77,
ent_94,
ent_auvergnerhonealpe,
ent_creuse,
ent_elyco,
laclasse_educonnect,
monbureaunumerique,
ac_reims,
occitanie_montpellier_educonnect,
occitanie_toulouse_edu,
ent77,
ent_ecollege78,
ent_essonne,
ent_hdf,
ent_mayotte,
ile_de_france,
neoconnect_guadeloupe,
paris_classe_numerique,
lyceeconnecte_aquitaine,
ent_94,
ent_hdf,
ent_somme,
ent_var,
ile_de_france,
l_normandie,
laclasse_educonnect,
laclasse_lyon,
lyceeconnecte_aquitaine,
lyceeconnecte_edu,
monbureaunumerique,
neoconnect_guadeloupe,
occitanie_montpellier,
occitanie_montpellier_educonnect,
occitanie_toulouse,
occitanie_toulouse_edu,
ozecollege_yvelines,
paris_classe_numerique,
val_doise,
ent_elyco,
ent2d_bordeaux,
enc_hauts_de_seine,
atrium_sud,
laclasse_lyon,
extranet_colleges_somme,
)
from .complex_ent import ac_rennes, pronote_hubeduconnect
Bapt5 marked this conversation as resolved.
Show resolved Hide resolved
30 changes: 4 additions & 26 deletions pronotepy/ent/ent.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,15 @@

"""CAS"""

ac_clermont_ferrand = partial(
_cas,
url="https://cas.ent.auvergnerhonealpes.fr/login?selection=CLERMONT-ATS_parent_eleve",
)

ac_grenoble = partial(
_cas,
url="https://cas.ent.auvergnerhonealpes.fr/login?selection=GRE-ATS_parent_eleve",
)

ac_lyon = partial(
_cas,
url="https://cas.ent.auvergnerhonealpes.fr/login?selection=LYON-ATS_parent_eleve",
)

cas_arsene76 = partial(
_cas, url="https://cas.arsene76.fr/login?selection=ATS_parent_eleve"
)

cas_cybercolleges42 = partial(
_cas, url="https://cas.cybercolleges42.fr/login?selection=ATS_parent_eleve"
)
) # à supprimer aux vacances d'automne

cas_ent27 = partial(_cas, url="https://cas.ent27.fr/login?selection=ATS_parent_eleve")
# à supprimer aux vacances d'automne

cas_kosmos = partial(_cas, url="https://cas.kosmoseducation.com/login")

ecollege_haute_garonne = partial(
_cas, url="https://cas.ecollege.haute-garonne.fr/login?selection=ATS_parent_eleve"
)

ent_creuse = partial(_cas, url="https://cas.entcreuse.fr/login")

occitanie_toulouse = partial(
Expand Down Expand Up @@ -138,6 +116,8 @@

ent77 = partial(_open_ent_ng, url="https://ent77.seine-et-marne.fr/auth/login")

ent_ecollege78 = partial(_open_ent_ng, url="https://ent.ecollege78.fr/auth/login")

ent_essonne = partial(
_open_ent_ng, url="https://www.moncollege-ent.essonne.fr/auth/login"
)
Expand Down Expand Up @@ -197,8 +177,6 @@

enc_hauts_de_seine = partial(_oze_ent, url="https://enc.hauts-de-seine.fr/")

ozecollege_yvelines = partial(_oze_ent, url="https://ozecollege.yvelines.fr/")

"""Simple Auth"""

atrium_sud = partial(
Expand Down
Loading