Skip to main content

Clearbit python bindings

Project description

# Clearbit

A Python API client to [https://clearbit.com](https://clearbit.com).

## Installation

To install the Clearbit Python bindings, run:

pip install clearbit

Or

easy_install clearbit

## Usage

First authorize requests by setting the API key found on your [account’s settings page](https://clearbit.com/keys).

import clearbit

clearbit.key = ‘mykey’

You can also set the API key via the CLEARBIT_KEY environment variable.

Then you can lookup people by email address:

person = clearbit.Person.find(email=’alex@alexmaccaw.com’,stream=True)

If the person can’t be found, then None will be returned.

See the [documentation](https://clearbit.com/docs#person-api) for more information.

## Company lookup

You can lookup company data by domain name:

company = clearbit.Company(domain=’uber.com’,stream=True)

If the company can’t be found, then None will be returned.

See the [documentation](https://clearbit.com/docs#company-api) for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clearbit-0.0.7.tar.gz (3.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page