Metadata-Version: 2.0
Name: directory-api-external
Version: 4.2.0
Summary: Python API client for Export Directory.
Home-page: https://github.com/uktrade/directory-api-client
Author: Department for International Trade
Author-email: UNKNOWN
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 1.11
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: certifi (==2018.1.18)
Requires-Dist: chardet (==3.0.4)
Requires-Dist: directory-client-core (==0.1.0)
Requires-Dist: django (==1.11.5)
Requires-Dist: djangorestframework (==3.4.7)
Requires-Dist: idna (==2.6)
Requires-Dist: mohawk (==0.3.4)
Requires-Dist: monotonic (==1.2)
Requires-Dist: pkginfo (==1.4.1)
Requires-Dist: pytz (==2017.2)
Requires-Dist: requests-toolbelt (==0.8.0)
Requires-Dist: requests (==2.18.4)
Requires-Dist: sigauth (==2.1.0)
Requires-Dist: six (==1.11.0)
Requires-Dist: tqdm (==4.19.6)
Requires-Dist: twine (==1.9.1)
Requires-Dist: urllib3 (==1.22)

# directory-api-client-external

[![code-climate-image]][code-climate]
[![circle-ci-image]][circle-ci]
[![codecov-image]][codecov]
[![gemnasium-image]][gemnasium]

**Export Directory external API client.**

---

## Installation

```shell
pip install directory-api-client-external
```

## Usage

```python
from directory_api_external.client import DirectoryAPIClient

directory_client = DirectoryAPIClient(
    base_url="https://find-a-buyer.export.great.gov.uk/api",
    api_key=api_key
)
```

## Development

    $ git clone https://github.com/uktrade/directory-api-client-external
    $ cd directory-api-client-external

## Publish to PyPI

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                     |
| --------------------------- |
| DIRECTORY_PYPI_USERNAME     |
| DIRECTORY_PYPI_PASSWORD     |


Then run the following command:

    make publish


[code-climate-image]: https://codeclimate.com/github/uktrade/directory-api-client-external/badges/issue_count.svg
[code-climate]: https://codeclimate.com/github/uktrade/directory-api-client-external

[circle-ci-image]: https://circleci.com/gh/uktrade/directory-api-client-external/tree/master.svg?style=svg
[circle-ci]: https://circleci.com/gh/uktrade/directory-api-client-external/tree/master

[codecov-image]: https://codecov.io/gh/uktrade/directory-api-client-external/branch/master/graph/badge.svg
[codecov]: https://codecov.io/gh/uktrade/directory-api-client-external

[gemnasium-image]: https://gemnasium.com/badges/github.com/uktrade/directory-api-client-external.svg
[gemnasium]: https://gemnasium.com/github.com/uktrade/directory-api-client-external


