camisatoshi-wordpress-reports/camisatoshi_wordpress_reports/controllers.py

16 lines
471 B
Python
Raw Normal View History

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")
)
2023-08-02 19:26:58 +02:00
def check_health(url: str):
2023-08-02 19:26:58 +02:00
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}")