camisatoshi-wordpress-reports/camisatoshi_wordpress_reports/controllers.py
2023-08-02 19:49:36 +02:00

10 lines
289 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():
print(f"Connecting to the configured woocomerce at {API_CONFIG['URL']}")