Skip to main content

SAURES API Client

SAURES API client

Stage: Alpha

Installation

  1. From this repository (poetry required)
  • git clone https://github.com/Yurzs/saures_api_client.git
  • cd saures_api_client
  • poetry install --no-dev
  1. From PyPi
  • pip install saures_api_client

Usage

  1. You can use all the api methods like they are named in SAURES API docs:
from saures_api_client import SauresAPIClient

async def main():
    client = SauresAPIClient("your email", "your password")

    objects = await client.user_objects()

...
  1. Or you can use more user-friendly wrapper around the client:
from saures_api_client import SauresAPIClient
from saures_api_client import types

async def main():
    user = SauresAPIClient.get_user("your email", "your password")
    
    locations = await user.get_locations()
    # returns typing.List[types.Location]
    
    location = locations[0]
    location_controllers = await location.get_controllers()
    # returns typing.List[types.Controller]
    # so you can easily propagate deeper in entities without
    # specifically providing their IDs to the client.

Download files

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

Source Distribution

saures_api_client-0.1.2.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

saures_api_client-0.1.2-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file saures_api_client-0.1.2.tar.gz.

File metadata

  • Download URL: saures_api_client-0.1.2.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.0 Darwin/21.2.0

File hashes

Hashes for saures_api_client-0.1.2.tar.gz
Algorithm Hash digest
SHA256 26028710a50997bcfb4a451ec9c932b7625be7b4654e8ed95f6a846d8709d40f
MD5 229369a17095aaaee15e4dab4b3f927c
BLAKE2b-256 68d6e92e0daa58d99258241a070a19d09dff096cd9320273c6d72286cf3df990

See more details on using hashes here.

File details

Details for the file saures_api_client-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: saures_api_client-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.0 Darwin/21.2.0

File hashes

Hashes for saures_api_client-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7619ba7b280f716d20946b8e78c9db747028bf82e87af1fc91389d2c692e6ff1
MD5 f1b274beb47ecd93971e3e931f18e1a0
BLAKE2b-256 a5a7c5c55dd8c77478169c512056abfc12d41184d745087992075b51a4d23e90

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1

2 files

Supported by

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