semvec/pypi-packages huggingface dataset:
isAPIup 0.0.5
isAPIup is a Length based API testing and monitoring library
License: MIT
Requires Python: >=3.2

# isAPIup
isAPIup is a Length based API testing and monitoring library




# Usuage:

import isAPIup


obj=isAPIup.create("test")<br>
#This will create sqlite3 db on current path<br>
<br>

obj.insert("http://localhost:5000/test/a","GET",23,100)<br>
obj.insert("http://localhost:5000/test/b","GET",23,100)<br>
#This will insert the url and other parameters<br>
<br>
#insert parameters<br>
#insert(url:str,method:str,working_response_length:int,max_retry:int,headers=None,payload=None)<br>
#url : API url<br>
#method:  GET or POST<br>
#working_response_length: >=length for success response<br>
#max_retry: max number or retry on an API<br>
#headers: API Headers<br>
#payload: API Payload<br>
<br>
obj.start()<br>
#This will start scanning the data which is provided above and change the status of running ones and has to be execute first time<br>

<br>
<br>
response=obj.execute()<br>
#execute parameters execute(postfix_url=None,show_logs=True)<br>
#This will return the response of live working API<br>
>>> response<br>
<Response [200]><br>
>>> response.text<br>
'{\n  "msg": "working fine"\n}\n'


<br>
<br>
<br>
deletefromconnection(url)<br>
#this will delete url and its content form main table<br>
<br>

deletefromsession(url)<br>
#this will delete url and its content form session table<br>
<br>