Skip to main content

isAPIup is a Length based API testing and monitoring library

Project description

isAPIup

isAPIup is a Length based API testing and monitoring library

Usuage:

import isAPIup

obj=isAPIup.create("test")
#This will create sqlite3 db on current path

obj.insert("http://localhost:5000/test/a","GET",23,100)
obj.insert("http://localhost:5000/test/b","GET",23,100)
#This will insert the url and other parameters

#insert parameters
#insert(url:str,method:str,working_response_length:int,max_retry:int,headers=None,payload=None)
#url : API url
#method: GET or POST
#working_response_length: >=length for success response
#max_retry: max number or retry on an API
#headers: API Headers
#payload: API Payload

obj.start()
#This will start scanning the data which is provided above and change the status of running ones and has to be execute first time



response=obj.execute()
#execute parameters execute(postfix_url=None,show_logs=True)
#This will return the response of live working API
>>> response

>>> response.text
'{\n "msg": "working fine"\n}\n'


deletefromconnection(url)
#this will delete url and its content form main table

deletefromsession(url)
#this will delete url and its content form session table

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

isAPIup-0.0.5.tar.gz (5.2 kB view hashes)

Uploaded Source

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