This is a simple Python SDK that demonstrates how to:
- Make requests to Hunter.io API.
- Store API call results in an in-memory data storage (dictionary).
- Perform CRUD operations on the stored data.
It uses the following endpoints:
- Domain Search (
/domain-search) - Email Verification (
/email-verifier)
- Python 3.8+
- Valid Hunter.io API key set as an environment variable:
HUNTER_API_KEY=<YOUR_API_KEY>
- Clone the repository.
- Install the required dependencies:
pip install -r requirements.txt
- Run the code example:
python main.py
- This project is configured to use wemake-python-styleguide
and
mypyfor static type analysis. - To run
mypy:mypy . - To run
flake8with wemake style guide:flake8 .
Check the main.py file to see how we:
- Initialize the service.
- Perform domain searches.
- Verify emails.
- Save results to in-memory storage.
- Perform CRUD operations.