Socket
Socket
Sign inDemoInstall

companies-house-api-client

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    companies-house-api-client

Simple python wrapper for Companies House API


Maintainers
1

Readme

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

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc