Skip to main content

pycraftco is a Python library that serves as a convenient wrapper for Craft API (

Project description



pycraftco is a Python library that serves as a convenient wrapper for Craft API.


You can install package via pip:

$ pip install pycraftco


The snippet below will retrieve name and offices of Facebook. For all available information please refer to However, please note that the API documentation have all fields in camel case but the lib have them underscore-separated.

from pycraftco import get_company

api_key = 'qfNfdijpFhbhPhA7j2ZxvtEGkfv8DftTtmTEbnWN'

# specify what data to load in the callback
def company_query(company):

# You can use duns, name_constains or domain to search for companies
c = get_company(company_query, name_contains='Facebook', api_key=os.environ['API_KEY'])

The code uses the test key that allows access to Facebook data only. Please, visit to request more permissive key.


Bug reports and pull requests are welcome on GitHub at .


The pip package is available as open source under the terms of the MIT License.

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

pycraftco-0.1.tar.gz (6.9 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page