Skip to main content

A python api wrapper for SQAUC API

Project description

squacapipy

PyPI version Build Status

An API wrapper squacapi

Usage

Configuration

You will first need a token. Once you have a squac account you will be sent details to retrieve a token

The following environmental variables are required

Environmental variables examples can be found in .env-example

Classes

Class Response

All responses are of class Response and have the following two attributes:

  • status_code: int HTTP status code
  • body: array of python dictionaries objects, or error code

Network

get query params:

  • network: comma seperated string of networks.
  • channel: exact match Dict response Keys:
  • code: str two letter indentifier
  • name: str, long name
  • descritpion: str
  • created_at: datetime
  • updated_at: datetime
  • user: user_id of creator
from squacapipy.squacapi import Network

net = Network()
# return all networks
net.get()
# return UW. Params are not case sensistive
net.get(network='uw')
# return UW, UO, CC
net.get(network='uw,uw,cc')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for squacapipy, version 0.4
Filename, size File type Python version Upload date Hashes
Filename, size squacapipy-0.4-py3-none-any.whl (4.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size squacapipy-0.4.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page