Export Directory internal Companies House search client.
pip install directory-ch-client
from directory_ch_client.client import client
response = client.company.search_companies(query='Foo Bar')
$ git clone https://github.com/uktrade/directory-companies-house-search-client
$ cd directory-companies-house-search-client
$ make
The package should be published to PyPI on merge to master. If you need to do it locally then get the credentials from rattic and add the environment variables to your host machine:
Setting |
---|
DIT_PYPI_USERNAME |
DIT_PYPI_PASSWORD |
Then run the following command:
make publish