pysisu
pysisu is a Python package that will query the Sisu API and convert results into a tabular format.
Overview and Example
Take a look at example_usage.py for a simple example.
from pysisu import PySisu
import os
API_KEY = os.environ.get('SISU_API_KEY')
ANALYSIS_ID = 13234
sisu = PySisu(API_KEY)
sisu.run(ANALYSIS_ID)
table = sisu.get_results(ANALYSIS_ID)
table.to_csv()
The API limits its response to 10000 results per response, via pagination. However, there is a flag for auto_paginate that will continuously fetch for any limit you set.
Contributing to protos
Currently (06/21/2022) betterproto only supports optional in beta, so please install the most recent beta version of better proto.
pip install betterproto==2.0.0b4
Follow the install instructions here.
Then to generate the proto api run the following command:
protoc -I . --python_betterproto_out=. api.proto
Local development
python -m pip install -e .
export SISU_API_KEY=<key>
Testing
Setup
python3 -m venv env
python -m pip install -e .
pip install -r requirements-dev.txt
There are example api responses in tests/input_snapshots and there are the expected parsing responses in tests/output_snapshots.
To updated the output snapshots whenever the input snapshots get updated, just run
pytest -k results_output --snapshot-update
Metadata
Release files for pysisu 0.4.20
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pysisu-0.4.20.tar.gz | 44.2 kB | Without provenance | Details for pysisu-0.4.20.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pysisu-0.4.20-py3-none-any.whl | Python 3 | none | any | Details for pysisu-0.4.20-py3-none-any.whl |
Total release size: 95.1 kB
Release files / pysisu-0.4.20.tar.gz
| Download URL | pysisu-0.4.20.tar.gz |
|---|---|
| Size | 44.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e109bb29e404c79e41aff7c87afc7383b61f65de29c458640bfa300b370e781
|
|
BLAKE2b-256 checksum How to use checksums |
dd517a3496cacacd92b63b379dd69074edb190a6a67aeecfeecea21390281aaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / pysisu-0.4.20-py3-none-any.whl
| Download URL | pysisu-0.4.20-py3-none-any.whl |
|---|---|
| Size | 50.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3c75ec045a0db333cc781d2ae4d59ab41fef585a542d6214d55f62b1739b7806
|
|
BLAKE2b-256 checksum How to use checksums |
9f125275ff7a2d39373b3f5de9704fc629b16d5b77a17139af8149cec2696d3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Security for pysisu 0.4.20
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.