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 details)

Uploaded Source

File details

Details for the file siasearch-0.0.8.tar.gz.

File metadata

  • Download URL: siasearch-0.0.8.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.0

File hashes

Hashes for siasearch-0.0.8.tar.gz
Algorithm Hash digest
SHA256 a3733164ad3e216bd8438d2db49b061efc877ba0c42bd3448aa1fcd13317ca15
MD5 c1327501f45710fa3b2e0e1572249bf9
BLAKE2b-256 6208661e6a7ca538ba77b19adc3c227c195c7c19fdd6472d4ffb0925ff54a875

See more details on using hashes here.

Supported by

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