A Python interface for the FullContact API.
pip install fullcontact.py
>>> from fullcontact import FullContact
>>> fc = FullContact('your_api_key')
# returns a real requests object
>>> r = fc.person(email='[email protected]')
>>> r.status_code
200
>>> r.headers['x-rate-limit-remaining']
'59'
>>> r.json()
{u'socialProfiles': [...], u'demographics': {...}, ... }
# for batched calls - a list of tuples like (endpoint, {params})
>>> batch_calls = [
('disposable', {'email': '[email protected]'}),
('person', {'email': '[email protected]'}),
...
]
>>> r2 = fc.api_batch(batch_calls)
A limited test suite is available. Run with nosetests
after installing, or if
you're installing directly via setup.py
you can use Nose's setuptools
extension like so:
python setup.py install nosetests
- 2.6
- 2.7
- 3.3
- 3.4
- 3.5
- 3.6