Skip to main content

A simplified way to use the SkyCiv API with Python.

Project description

What is this?

A fast way to interact with the SkyCiv API.

Usage

pip3 install skyciv

then...

Import

import skyciv

Options

The options object is optional and takes:

  • version - 2 | 3 (Defaults to 3)
  • http_or_https - http | https (Defaults to https)

Methods

skyciv.request(apiObject, callback?, options?)

Make a request to the SkyCiv API. The callback function receives the parsed response.

skyciv_response = skyciv.request(api_object, options)
# Do something with the response

API Object

Visit the API docs for instructions on how to create a SkyCiv API object.

Changelog

Version Breaking Description
1.0.1 false • Changed skyciv.request() to print msg if SkyCiv returns error rather than throw an exception
1.0.0 - Initial release

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

skyciv-1.0.1.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

skyciv-1.0.1-py2-none-any.whl (3.5 kB view hashes)

Uploaded Python 2

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