Files
storage-hideyoshi.com/storage_service/config/config_virus_checker.py

15 lines
260 B
Python

from dotenv import load_dotenv
import os
def get_virus_checker_api_key() -> str:
load_dotenv()
api_key = os.environ.get("VIRUS_CHECKER_API_KEY")
if not api_key:
raise RuntimeError("Virus Checker API Key not found")
return api_key