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:49:36 +02:00
|
|
|
def check_health():
|
|
|
|
|
print(f"Connecting to the configured woocomerce at {API_CONFIG['URL']}")
|