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
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
File details
Details for the file isAPIup-0.0.5.tar.gz.
File metadata
- Download URL: isAPIup-0.0.5.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
137f232607f982ff19bf6fa16373fe6c352242599e5d66ef483f0aaf3169ede2
|
|
| MD5 |
0f7b22febc031ccb664b3407b15eb8dc
|
|
| BLAKE2b-256 |
3eca7651ffbe688907fab473cb25a2e787f004dd08915819b4293be0946a8b17
|