arnaucube
arnaucube/provojPublic Self-hosted repository
added to pip
arnaucode arnaucode@gmail.com
Mon, 12 Mar 2018 21:19:51 +0100
commit

e2ce15ccb5e1138a087cea4511229cde84a5bcc8

parent

cc61bfbc02fb9d81be53c72d9b711bcaf2c78829

4 files changed, 31 insertions(+), 2 deletions(-)

jump to
M .gitignore → .gitignore

@@ -1,2 +1,5 @@

__pycache__ *.pyc +provoj.egg-info +dist +build
M README.md → README.md

@@ -1,6 +1,19 @@

# provoj -Simple library to check the endpoints of an RESTful API. +Simple library to test the endpoints of an RESTful API. + +Check values, integrated with requests python library. + +For python version>3 + +## Installation + +Requires to have installed 'requests' library. + +Install provoj by: +``` +pip install provoj +``` ### Usage Import the provoj library, and the requests library

@@ -51,7 +64,7 @@

Check for request status ```python r = requests.get("https://api.github.com/users/arnaucode/repos") -test.status("get api.github.com/users/arnaucode/repos", r)# test.status(check description, request_response) +test.rStatus("get api.github.com/users/arnaucode/repos", r)# test.rStatus(check description, request_response) ``` ### Full example
M provoj.py → provoj/__init__.py

@@ -1,3 +1,4 @@

+#!/usr/bin/env python import math import datetime
A setup.py

@@ -0,0 +1,12 @@

+from setuptools import setup + +setup( + name='provoj', + packages=['provoj'], + description='Simple library to test the endpoints of an RESTful API.', + url='https://github.com/arnaucode/provoj', + author='arnaucode', + author_email='arnaucode@gmail.com', + version='0.0.0.1', + scripts=['provoj/__init__.py'] +)