2023-08-02 19:42:43 +02:00
|
|
|
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:42:43 +02:00
|
|
|
|
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..."
|
2023-08-02 19:42:43 +02:00
|
|
|
)
|
|
|
|
|
print(Path("~/.camisatoshi-wordpress-reports/.env"))
|
|
|
|
|
print(f"By the way, I found this: {API_CONFIG}")
|