Skip to main content

Forager clients and services

A python wrapper for the Hunter.io v2 api as a client. Email validation service.

Installation

Requirements

- Python 3.10
- httpx

To install

pip install forager_forward==0.1.1

Usage

Service supports next method from Hunter.io v2 api

- domain_search (with async adomain_search)
- email_finder (with async aemail_finder)
- verify_email (with async averify_email)
- email_count (with async aemail_count)

Additionally, service supports crud methods for locally storing data

How to use service

Import service and instantiate it once

from forager_forward.client_initializer import ClientInitializer

initializer = ClientInitializer()

initializer.initialize_client("api_key_got_from_hunter")


client = initializer.client

Once initialized somewhere in the code you can get instances in different places without additional initialization

client = ClientInitializer().client

Search addresses for a given domain

client.domain_search("www.brillion.com.ua")

Or pass company name

client.domain_search(company="Brillion", limit=20, seniority="junior")

Find email address

client.email_finder(compayny="pmr", full_name="Sergiy Petrov", raw=True)

Check email deliverabelity

client.email_verifier("a@a.com")

All data can be stored in Storage class instance. It has its own crud methods, and it is Singleton.

from forager_forward.common.storage import Storage

storage = Storage()

storage.create(some_key, some_value)

storage.update(some_key, some_value)

some_variable = storage.read(some_key)

storage.delete(some_key)

To validate emails and store validation result use email_validation_service.

from forager_forward.app_services.email_validation_service import EmailValidationService

email_validator = EmailValidationService()

email_validator.create_email_record("some_email@company.com")

email_validator.read("another@company.com")

Tests

To run test firstly you need to install test dependency, then run

    pytest -cov

Metadata

Release files for forager-forward 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for forager-forward 0.1.1
File Size Uploaded Provenance
forager_forward-0.1.1.tar.gz 16.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for forager-forward 0.1.1
File Interpreter ABI Platform
forager_forward-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 28.2 kB

Release files / forager_forward-0.1.1.tar.gz

Download URL forager_forward-0.1.1.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9f255e29c81489620133b2532244fe5c34addddc4373dc9e190c283bc4634387
BLAKE2b-256 checksum
How to use checksums
ad12ea6530436867a8882050cae87065be3dd79cf87a403e969bd0d808a105bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.0 CPython/3.10.0 Windows/10

Release files / forager_forward-0.1.1-py3-none-any.whl

Download URL forager_forward-0.1.1-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82ba3da8bb5326417c15cfa53fb1f0a2a5cac8a1f66e355e65fbb1b1ad319d85
BLAKE2b-256 checksum
How to use checksums
1d5c0fcef07a0350365e1df23793a13e16c35021efca6643ac5cb0f13ee2b6c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.0 CPython/3.10.0 Windows/10

Security for forager-forward 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page