EnriqueSoria / EnriqueSoria/api_client_framework

Make `requests` an optional dependency

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Python
Stars
1
Forks
2
PR merge metrics
No merged PRs in 30d

Description

## Why feature request?

We don't want to force users of `python-api-consumers` to stick to [`requests`](https://requests.readthedocs.io/en/latest/) library. But we want to include a ready to use implementation because `requests` is the defacto library for consuming HTTP endpoints.

## What is needed to do?
- Mark `requests` as an [optional dependency (extras)](https://python-poetry.org/docs/pyproject/#extras)
- Maybe raise a custom exception if someone tries to import something from `src/api_consumer/requests.py` and doesn't have `requests` installed.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.