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')
Release files for squacapipy 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| squacapipy-0.4.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| squacapipy-0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / squacapipy-0.4.tar.gz
| Download URL | squacapipy-0.4.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c3e3c6cba4693b75a4b65aeac2718496ac53ca39028993f36b55420ab445a55
|
|
BLAKE2b-256 checksum How to use checksums |
2a1377ab4ac4893ca9a6d9a7e58e7e11da5fae4d3d50fb8c28bdd6851771515e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / squacapipy-0.4-py3-none-any.whl
| Download URL | squacapipy-0.4-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee7232f8b8a92e17005a81d553dd1687bd248a3ba6476bb82a49293277504f69
|
|
BLAKE2b-256 checksum How to use checksums |
f8b95f5f775619fbe6549bea02e09859daf81f0d143b97ee6c4e57c949cf9efb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|