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, options?)
Make a request to the SkyCiv API.
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.4 | false | • Package will now only use dumps on input if api_object is not a string. |
1.0.3 | false | • Fixed options dictionary to be optional |
1.0.2 | false | • Updated readme |
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
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
skyciv-1.0.4.tar.gz
(2.5 kB
view hashes)
Built Distribution
skyciv-1.0.4-py2-none-any.whl
(3.6 kB
view hashes)