leaf_engine.io.api.planning_caller
Attributes
Exceptions
Common base class for all non-exit exceptions. |
Classes
Makes calls to the planning service. |
|
The |
Module Contents
- exception leaf_engine.io.api.planning_caller.PlanningAPIException
Bases:
ExceptionCommon base class for all non-exit exceptions.
- class leaf_engine.io.api.planning_caller.PlanningAPICaller(endpoint: str | None = API_ENDPOINT, key: str | None = API_KEY)
Makes calls to the planning service.
- delete(path: str, **kwargs) PlanningAPIResponse
- Parameters:
path (str) –
- Return type:
- get(path: str, **kwargs) PlanningAPIResponse
- Parameters:
path (str) –
- Return type:
- get_existing_shipper_lane_plans(company_id: int) pandas.DataFrame
- Parameters:
company_id (int) –
- Return type:
- post(path: str, data: dict | List, ignore_duplicates=False) PlanningAPIResponse
- Parameters:
- Return type:
- put(path: str, data: dict | List) PlanningAPIResponse
- Parameters:
- Return type:
- endpoint
- key
- retries
- session
- class leaf_engine.io.api.planning_caller.PlanningAPIResponse
Bases:
requests.ResponseThe
Responseobject, which contains a server’s response to an HTTP request.
- leaf_engine.io.api.planning_caller.API_ENDPOINT
- leaf_engine.io.api.planning_caller.API_KEY
- leaf_engine.io.api.planning_caller.BACKOFF = 1
- leaf_engine.io.api.planning_caller.DEFAULT_PAGE_SIZE = 100
- leaf_engine.io.api.planning_caller.RETRIES = 3
- leaf_engine.io.api.planning_caller.TIMEOUT = 500