StatusCake API
Project description
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.
Prerequisites
You will need the following things properly installed on your computer.
Installation
PyPi
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
GitHub
Installing the latest version from Github:
$ git clone https://github.com/StatusCakeDev/statuscake-py
$ cd statuscake-py
$ python setup.py install
Usage
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()
License
This project is licensed under the MIT License.
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
statuscake_py-1.1.0b1.tar.gz
(76.4 kB
view hashes)
Built Distribution
Close
Hashes for statuscake_py-1.1.0b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 374c38d3c4805749b75b55b109019adb5bc73bcd7e7858552a553e2a7ecf4c36 |
|
MD5 | b80188672fc3e3f239df081fbe6c29a0 |
|
BLAKE2b-256 | fe21c7a120696f779ca6294dc4d9ba5cc26ae33894187be302bc30be711f3a99 |