Simple lib for testing rest API
Project description
API-NICHOTINED
A package that will help on creating session upon making rest API request.
Installation:
pip install api-nichotined
Sample usage:
import logging
from api_nichotined import RestApi
class TestApis:
def __init__(self, base_url=""):
self.client = RestApi(base_url=base_url)
def get_upload(self):
return self.client.get(path="/v3.1/name/indonesia")
if __name__ == '__main__':
logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s")
api = TestApis(base_url="https://restcountries.com")
api.get_upload().status_code
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
api-nichotined-0.1.3.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for api_nichotined-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bec2b14c3874d7e516b6e29ae7fd93f3cc02417eaf7907a5407708b1aa362c2b |
|
MD5 | 85cf0cad43d1090139d5d2f4bd471ad1 |
|
BLAKE2b-256 | f36081ed4d053948d202b73a75d1dae63499c9594e980f904ee801f9bcd5d499 |