pypergraph.core.cross_platform package¶
Subpackages¶
Submodules¶
pypergraph.core.cross_platform.rest_api_client module¶
- class pypergraph.core.cross_platform.rest_api_client.RestAPIClient(base_url: str, client: RESTClient | None = None, timeout: int = 30)[source]¶
Bases:
object- property base_url: str¶
Returns the base URL.
- config(client: RESTClient)[source]¶
- async delete(endpoint: str, headers: Dict[str, str] | None = None, params: Dict[str, Any] | None = None)[source]¶
- async get(endpoint: str, headers: Dict[str, str] | None = None, params: Dict[str, Any] | None = None)[source]¶
- handle_api_response(response: Response, method: str, endpoint: str)[source]¶
Handles API responses, checking for errors and returning JSON or text.
- async post(endpoint: str, headers: Dict[str, str] | None = None, payload: Dict[str, Any] | None = None)[source]¶