Skip to main content

No project description provided

Project description

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)
table = sisu.get_results(ANALYSIS_ID, {"top_drivers": "True"})
print(','.join([x.column_name for x in table.header]))
for row in table.rows:
    print(row)

The API limits its response to 100 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: https://grpc.io/docs/protoc-installation/

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>

Project details


Download files

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

Source Distribution

pysisu-0.0.15.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

pysisu-0.0.15-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file pysisu-0.0.15.tar.gz.

File metadata

  • Download URL: pysisu-0.0.15.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pysisu-0.0.15.tar.gz
Algorithm Hash digest
SHA256 154a92a501abf0f5b27f62c84a6be95a494a17bbb8df961c2c4055e55ee5192f
MD5 31fddfb8ad4f4d23e35923f3765e702e
BLAKE2b-256 154dba2d710900d6c7d86c02f4665f8255860f462664825dd8668967603808e1

See more details on using hashes here.

File details

Details for the file pysisu-0.0.15-py3-none-any.whl.

File metadata

  • Download URL: pysisu-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pysisu-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 f7dbd1892856657c48f14b47a514288b303b825a663ccb3f5edcc7c206efb18d
MD5 769f757ff86a646153776b6a44d03d20
BLAKE2b-256 56fdc091d9a41c8b213a086d241570df57591e37279031884885130df632ff3c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page