Skip to main content

Simple python wrapper for Companies House API

Project description

COMPANIES HOUSE API Client

This is a Python client for the COMPANIES HOUSE API

Installation

You can install the package into your project via pip:

pip install companies_house_api_client

USAGE

To use the COMPANIES HOUSE API client, you first need to set up environment variables for the required credentials:

export COMPANIES_HOUSE_APIKEY=your-api-key
export COMPANIES_HOUSE_HOST=https://api.company-information.service.gov.uk

EXAMPLE

By setting the test parameter to true, you can play arround with api:

from companies_house_api_client import CompaniesHouse

# Create a Companies House API client instance
ch = CompaniesHouse()

# Call an API method
companies = ch.get_company_profile("12312312")

TESTS

Make sure pytest is installed on your environment

python3 -m pytest

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

companies_house_api_client-0.0.4.tar.gz (6.6 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