1
0
favro-sync/favro_sync/secrets.py
Jon Michael Aanes d24bbff21d
All checks were successful
Test Python / Test (push) Successful in 26s
Ruff
2024-10-01 10:29:12 +02:00

20 lines
370 B
Python

import secret_loader
secrets = secret_loader.SecretLoader()
def has_secrets():
return secrets.load('FAVRO_ORGANIZATION_ID') is not None
def favro_org_id():
return secrets.load_or_fail('FAVRO_ORGANIZATION_ID')
def favro_username():
return secrets.load_or_fail('FAVRO_USERNAME')
def favro_password():
return secrets.load_or_fail('FAVRO_PASSWORD')