Metadata-Version: 2.1
Name: aio-kong
Version: 0.1.2
Summary: Asynchronous Kong client
Home-page: https://github.com/lendingblock/aio-kong
Author: Luca Sbardella
Author-email: luca@quantmind.com
Maintainer-email: luca@quantmind.com
License: BSD
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: JavaScript
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Utilities
Description-Content-Type: text/markdown
Requires-Dist: aiohttp
Requires-Dist: click
Requires-Dist: pyyaml

# Async Python Client for Kong

[![CircleCI](https://circleci.com/gh/lendingblock/aio-kong.svg?style=svg)](https://circleci.com/gh/lendingblock/aio-kong)

[![codecov](https://codecov.io/gh/lendingblock/aio-kong/branch/master/graph/badge.svg)](https://codecov.io/gh/lendingblock/aio-kong)


## Installation & Testing

To install the package
```
pip install aio-kong
```
To run tests, clone and
```
./dev/install.sh
pytest --cov
```
## Client

The client can be imported via
```python
from kong.client import Kong
```

In a coroutine::
```python
async with Kong() as cli:
    services = await cli.services.get_list()
    print(json.dumps(services, indent=4))
```

## Command line tool

The library install the ``kong`` command line tool for uploading kong configuration files.
```
kong --yaml config.yaml
```


