Rest Api Client
Project description
Overall
Rest API client for Python
Simple REST API client for Python
Installation
Use the package manager pip to install our client in Python.
pip install gawsoft-api-client
OR
pip3 install gawsoft-api-client
Usage
Write your client api
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, link: str, params: dict = {}) -> Response:
return self.request(link, 'POST', params)
c = Client("abc")
response = c.info("delay/1")
print(response.status_code)
print(response.data())
Tests
make test
make mypy
Release
# Release in test env
make release-test
# Real release
make release
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for gawsoft_api_client-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3be4c15ea1220868ccb3361b325a41c57eb9f731c46259f027d5203b739bef3d |
|
MD5 | 7e78633a5c55be28a7e4d2e4db2517f4 |
|
BLAKE2b-256 | c13571d852aa0a826d5d8d2bea1934f2951e44df08a9609ae192956073881063 |