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, 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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gawsoft_api_client-0.1.7.tar.gz.
File metadata
- Download URL: gawsoft_api_client-0.1.7.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca166556011fb8c74b31fa7a004a9933f4837c113b219c9da0c6c8dc1306751b
|
|
| MD5 |
5757df9d1be910e5fba6c23f474aec51
|
|
| BLAKE2b-256 |
5a0f6e3a2cbe89475cbea7707d0328ec9cb6e5dbf58f1a4799885015436d5b36
|
Provenance
The following attestation bundles were made for gawsoft_api_client-0.1.7.tar.gz:
Publisher:
python-publish.yml on gawsoftpl/rest-api-client-framework-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gawsoft_api_client-0.1.7.tar.gz -
Subject digest:
ca166556011fb8c74b31fa7a004a9933f4837c113b219c9da0c6c8dc1306751b - Sigstore transparency entry: 701502370
- Sigstore integration time:
-
Permalink:
gawsoftpl/rest-api-client-framework-python@b960642c092b51485fee5bec03683ccc3b9204fe -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/gawsoftpl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@b960642c092b51485fee5bec03683ccc3b9204fe -
Trigger Event:
push
-
Statement type:
File details
Details for the file gawsoft_api_client-0.1.7-py3-none-any.whl.
File metadata
- Download URL: gawsoft_api_client-0.1.7-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5eb9305252136fbfb41ff1968ebb18601c82db1f0e9912908ff0fc49c5aea49b
|
|
| MD5 |
8a712032d55570f0e438c4845ffa460e
|
|
| BLAKE2b-256 |
bfc59ba619ffa24bd7709c3261986e8998a04601c33502a5f12cf39bd72d0dbb
|
Provenance
The following attestation bundles were made for gawsoft_api_client-0.1.7-py3-none-any.whl:
Publisher:
python-publish.yml on gawsoftpl/rest-api-client-framework-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gawsoft_api_client-0.1.7-py3-none-any.whl -
Subject digest:
5eb9305252136fbfb41ff1968ebb18601c82db1f0e9912908ff0fc49c5aea49b - Sigstore transparency entry: 701502416
- Sigstore integration time:
-
Permalink:
gawsoftpl/rest-api-client-framework-python@b960642c092b51485fee5bec03683ccc3b9204fe -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/gawsoftpl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@b960642c092b51485fee5bec03683ccc3b9204fe -
Trigger Event:
push
-
Statement type: