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
bin/release.sh
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
File details
Details for the file gawsoft_api_client-0.0.5.tar.gz
.
File metadata
- Download URL: gawsoft_api_client-0.0.5.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9991df102af14bd4b84a7da77f2dcbfb3dd04dc27d7c238703d58abd7284fe63 |
|
MD5 | ecad7fae75365961995516820a979fac |
|
BLAKE2b-256 | 46e26971575b2909b6068d289edf035b88a32772f007351552ab399a09a3a388 |
File details
Details for the file gawsoft_api_client-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: gawsoft_api_client-0.0.5-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b37420b177d0ebede601bcf2a43d067dc76f21010fd12f1a02eb37dbb86fd568 |
|
MD5 | 117db62498d4d812b0ee0e8db62b514d |
|
BLAKE2b-256 | 8d6d1434772958c3b1519fb0643dfbb8965ff2604b98e1e6f8e8e38475f1fce8 |