<commit_before># FullContact.py

A simple Python interface for [FullContact](http://www.fullcontact.com/), using Requests.

# Install

In terminal:

    pip install fullcontact.py
    
Or just include the fullcontact API class in your project. It's entirely self-contained.

# Warning

Changes introduced in version 0.0.3 are not backwards compatible.

# Usage

    
    >>> from fullcontact import FullContact
    >>> fc = FullContact('your_api_key')
  
    # returns a real requests object
    >>> r = fc.api_get('person', **{'email': '<EMAIL>'})
    >>> 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>'}),
            ('person', {'email', '<EMAIL>'),
            ...
        ]
    >>> r2 = fc.api_batch(batch_calls)
    >>>

# FullContact API Documentation

Check out FullContact's documentation [here](http://www.fullcontact.com/developer/docs/).

# 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`<commit_msg>Fix syntax error in batch code sample<commit_after># FullContact.py

A simple Python interface for [FullContact](http://www.fullcontact.com/), using Requests.

# Install

In terminal:

    pip install fullcontact.py
    
Or just include the fullcontact API class in your project. It's entirely self-contained.

# Warning

Changes introduced in version 0.0.3 are not backwards compatible.

# Usage

    
    >>> from fullcontact import FullContact
    >>> fc = FullContact('your_api_key')
  
    # returns a real requests object
    >>> r = fc.api_get('person', **{'email': '<EMAIL>'})
    >>> 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>'}),
            ('person', {'email': '<EMAIL>'}),
            ...
        ]
    >>> r2 = fc.api_batch(batch_calls)
    >>>

# FullContact API Documentation

Check out FullContact's documentation [here](http://www.fullcontact.com/developer/docs/).

# 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`
{'fraction_non_alphanumeric': 0.14360313315926893, 'fraction_numerical': 0.006713912719134651, 'mean_word_length': 3.0574886535552195, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 63, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3537749', 'n_tokens_mistral': 831, 'n_tokens_neox': 803, 'n_words': 245}