Skip to main content

SDK for SiaSearch platform API

Project description

Siasearch SDK

Siasearch SDK is a way to programmatically interface with the Siasearch software. It provides an alternative interface to the GUI and allows users to easily query for, view and manipulate the data fetched.

>>> from siasearch import SiaSearch
>>> sia = SiaSearch.login("http://custom-domain.siasearch.de", "user@example.com", "password")
<SiaSearch object with user `user@example.com` connected to `http://custom-domain.siasearch.de`>
>>> cols = sia.columns()
>>> cols
<Columns object containing columns: ['acceleration_level', 'curved_trajectory', 'dataset_name', 'forward_velocity',...
>>> cols.curved_trajectory.levels
["'LEFT_BEND'", "'NO_BEND'", "'RIGHT_BEND'"]
>>> query = sia.query("dataset_name = 'kitti' AND curved_trajectory = 'LEFT_BEND'")
Query("dataset_name = 'kitti' AND curved_trajectory = 'LEFT_BEND'")
>>> sequences = query.all()
>>> sequences
<Sequences class with 54 segments>

Installing siasearch

Siasearch is available on PyPi

pip install siasearch

How to use it?

See docs

Documentation

To generate simple Sphinx documentation you need to install Sphinx package

 pip install -U Sphinx
 pip install sphinx-rtd-theme

and run:

sphinx-build -b html docs/source docs/build

from the package root folder.
And you would get build html documentation in docs/build folder.
You can serve it running python -m http.server from docs/build folder.

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

siasearch-0.0.8.tar.gz (18.1 kB view hashes)

Uploaded Source

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