Skip to content

fullcontact/fullcontact.py

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FullContact.py

PyPI version Build Status

A Python interface for the FullContact API.

Installation

pip install fullcontact.py

Usage

>>> 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)

Tests

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

Supported Python Versions

  • 2.6
  • 2.7
  • 3.3
  • 3.4
  • 3.5
  • 3.6

About

A simple Python interface for FullContact, using Requests.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%