chain-service/chain_service/dependencies/planfix_client.py

11 lines
278 B
Python

from planfix_client import PlanfixClient
from chain_service.settings import Settings
def get_planfix_client() -> PlanfixClient:
settings = Settings()
return PlanfixClient(
planfix_hostname=settings.planfix_hostname, planfix_token=settings.planfix_token
)