mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2024-12-25 05:42:21 +00:00
14 lines
293 B
Python
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
|