1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2024-12-25 05:42:21 +00:00
plateforme-corres2math/corres2math/lists.py
2020-10-09 13:49:09 +02:00

14 lines
293 B
Python

import os
from sympasoap import Client
_client = None
def get_sympa_client() -> Client:
global _client
if _client is None:
_client = Client("https://" + os.getenv("SYMPA_URL"))
_client.login(os.getenv("SYMPA_EMAIL"), os.getenv("SYMPA_PASSWORD"))
return _client