NOTE: This library is in alpha and not production ready. Whilst it can be used we will not offer support until it is generally available.
The Python implementation of the StatusCake API client. Documentation for this library can be found here.
You will need the following things properly installed on your computer:
Using PyPi, add the following
to requirement.txt
:
statuscake_py
And then execute:
pip install -r requirements.txt
Or install it yourself:
pip install statuscake_py
Installing the latest version from Github:
git clone https://github.com/StatusCakeDev/statuscake-py
cd statuscake-py
python setup.py install
Import the module from any Python file, instantiate an API client and execute a request:
from statuscake import ApiClient
from statuscake.apis import (
UptimeApi,
)
client = ApiClient(
header_name='Authorization',
header_value='Bearer %s' % api_token,
)
service = UptimeApi(api_client=client)
service.list_uptime_tests()
This project is licensed under the MIT License.