Metadata-Version: 2.4
Name: gawsoft_api_client
Version: 0.1.1
Summary: Rest Api Client
Home-page: https://github.com/gawsoftpl/rest-api-client-framework-python
Author: Gawsoft.pl
Author-email: biuro@gawsoft.pl
License: MIT
Project-URL: Source Code, https://github.com/gawsoftpl/rest-api-client-framework-python
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: project-url
Dynamic: requires-python
Dynamic: summary

# Overall
Rest API client for Python

Simple REST API client for Python

## Installation

Use the package manager pip to install our client in Python.

```bash
pip install gawsoft-api-client
```

OR
```bash
pip3 install gawsoft-api-client
```

## Usage
Write your client api
```python
from gawsoft.api_client import Request, Response


class Client(Request):
    def __init__(
        self,
        api_key: str,
        api_version: str ='',
        api_host: str = 'http://httpbin.org',
        user_agent: str = 'Example Api Python client'
     ):
        super().__init__(api_key, api_version, api_host, user_agent)

    def info(self, url: str, params: dict = {}) -> Response:
        return self.request(url, 'POST', params)


c = Client("abc")
response = c.info("delay/1")
print(response.status_code)
print(response.data())
```


## Tests
```sh
make test
make mypy
```

## Release
```sh
bin/release.sh
```

## License
[MIT](https://choosealicense.com/licenses/mit/)
