camisatoshi-wordpress-reports/camisatoshi_wordpress_reports/controllers.py

15 lines
471 B
Python

from pathlib import Path
from dotenv import dotenv_values
from woocommerce import API
API_CONFIG = dotenv_values(
dotenv_path=Path.home() / Path(".camisatoshi-wordpress-reports/.env")
)
def check_health(url: str):
print(
f"Ehem... Yeah... so... I've definitely checked {url}... I just don't remember clearly if it was alive or what..."
)
print(Path("~/.camisatoshi-wordpress-reports/.env"))
print(f"By the way, I found this: {API_CONFIG}")