api-client icon indicating copy to clipboard operation
api-client copied to clipboard

Separate the high level client implementation from the underlying CRUD.

Results 13 api-client issues
Sort by recently updated
recently updated
newest added

**Describe the bug** When using both JsonResponseHandler and UrlPaginatedRequestStrategy, the next_page function receives decoded JSON body as the response param, meaning it can't read the headers **To Reproduce** ``` def...

**Is your feature request related to a problem? Please describe.** I would like to make requests without the full URL. **Describe the solution you'd like** I'd like to define a...

I like using `api-client` but find myself more often programming in async environments where IO is a feature of the work. I notice that you have async support listed in...

An implementation option for an asynchronous api client. But it seems to me that in order to optimize the installation of a dependency, it is possible to allow installation separately...

I'm creating a test using pytest and unittest.mock: ``` def api_mock_response() -> dict: with open("tests/resources/response-mock.json") as f: return json.load(f) def test_recent_releases(): """Tests an API call to get the latest release."""...

Just spent a good few hours debugging an issue in a request which was reported as: ``` Error when contacting https://.... ``` but was actually some AsyncIO error due to...

**Is your feature request related to a problem? Please describe.** Ability to handle OAuth flows with secret id/key exchange for token, perhaps with refresh. **Describe the solution you'd like** a...

**My problem** ``` src/app/client.py:5: error: Skipping analyzing "apiclient": found module but no type hints or library stubs [import] src/app/client.py:5: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports ``` **Solution I'd like** Add a `py.typed` file...

Example usage: ``` class DogClient(APIClient): def __init__(self, base_url, apikey="" ): authentication_method=HeaderAuthentication( token=apikey, parameter="apikey", scheme=None ) super().__init__(authentication_method=authentication_method, response_handler=JsonResponseHandler, request_formatter=JsonRequestFormatter) self.authentication_method = authentication_method self.apikey = apikey self.endpoint = self.Endpoint(base_url=base_url) self.set_request_timeout(30.0) ``` code:...