Skip to main content

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 (
    ContactGroupApu,
    LocationsApi,
    MaintenanceWindowsApi,
    PagespeedApi,
    SslApi,
    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


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.0.0b4.tar.gz (77.3 kB view details)

Uploaded Source

Built Distribution

statuscake_py-1.0.0b4-py3-none-any.whl (215.1 kB view details)

Uploaded Python 3

File details

Details for the file statuscake_py-1.0.0b4.tar.gz.

File metadata

  • Download URL: statuscake_py-1.0.0b4.tar.gz
  • Upload date:
  • Size: 77.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.0

File hashes

Hashes for statuscake_py-1.0.0b4.tar.gz
Algorithm Hash digest
SHA256 b2e676a9b9741208b3227e1287facca5d37521c4d2eb501f6de0e61273c55729
MD5 5e10f99cf513710203529743cacce653
BLAKE2b-256 acccd893ec2ab042fc7cbbc586be7234a67ecff746862e2c8c888070050c0cb2

See more details on using hashes here.

File details

Details for the file statuscake_py-1.0.0b4-py3-none-any.whl.

File metadata

File hashes

Hashes for statuscake_py-1.0.0b4-py3-none-any.whl
Algorithm Hash digest
SHA256 346aa60dab572e951c57fd23c49cf819d29f9600f993193d953fc06c3d2fa1dc
MD5 8d2a5bef9f9e618d719f4fb5b50c4c5c
BLAKE2b-256 5f2c33482dc9ca4f5bc757587815fe2a1df43c42153c2aa0130a45c1e9a9785a

See more details on using hashes here.

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