Skip to main content

Simple lib for testing rest API

Project description

SIMPLE-API

A package that will help on creating session upon making rest API request.

Sample usage:

import logging

from src 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


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.0.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

api_nichotined-0.1.0-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page