A python api wrapper for SQAUC API
Project description
squacapipy
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
- SQUAC_API_TOKEN
- SQUAC_BASE, which is https://squac.pnsn.org
- SQUAC_API_BASE, which is $SQUAC_BASE + /v1.0
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file squacapipy-0.4.tar.gz.
File metadata
- Download URL: squacapipy-0.4.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.36.1 CPython/3.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c3e3c6cba4693b75a4b65aeac2718496ac53ca39028993f36b55420ab445a55
|
|
| MD5 |
357054fbb713ef2a760ada1b4474fb4a
|
|
| BLAKE2b-256 |
2a1377ab4ac4893ca9a6d9a7e58e7e11da5fae4d3d50fb8c28bdd6851771515e
|
File details
Details for the file squacapipy-0.4-py3-none-any.whl.
File metadata
- Download URL: squacapipy-0.4-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.36.1 CPython/3.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee7232f8b8a92e17005a81d553dd1687bd248a3ba6476bb82a49293277504f69
|
|
| MD5 |
bc91b745cfd342c6650f1cd68bdb2b56
|
|
| BLAKE2b-256 |
f8b95f5f775619fbe6549bea02e09859daf81f0d143b97ee6c4e57c949cf9efb
|