Skip to main content

Python library to communicate with the Slide API.

Project description

GitHub Actions GitHub Activity GitHub Last Commit

GitHub Stars GitHub Watchers GitHub Forks

Slide API client

Python API client to utilise the lide Open Cloud or local API.

Usage

Cloud API

import asyncio
from slide import SlideCloud, get_slides

slide = SlideCloud(username="email@address.com", password="some-password")
slides = asyncio.run(get_slides(slide=slide))
print(f"Found slides: {','.join([s.device_name for s in slides])}")

Local API

import asyncio
from slide import SlideCloud, get_slide_state

slide = SlideCloud(base_url="http://192.168.1.10", device_code="some-device-code")
slide_state = asyncio.run(get_slide_state(slide=slide))
print(f"Got slide state: {slide_state}")

Environment variables

Instead of providing explicit values for username/password or device code, you could also set environment variables. The used environment variables are listed and described below.

Key Description
SLIDE_API_USERNAME Username when using the Slide Cloud API
SLIDE_API_PASSWORD Password when using the Slide Cloud API
SLIDE_API_DEVICE_CODE Device code when using the local Slide API

Installation

pip install slide-api-client

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

slide_api_client-0.1.2.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

slide_api_client-0.1.2-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: slide_api_client-0.1.2.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.3 tqdm/4.65.0 importlib-metadata/6.6.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.12

File hashes

Hashes for slide_api_client-0.1.2.tar.gz
Algorithm Hash digest
SHA256 747e082cc57d934c68f63a955612b3cf92d781d522a9d7a7e6eeb15a6798520c
MD5 c4e80ec45184a703cc3efb991e7835dd
BLAKE2b-256 5f3cd847a8c64ce6d2f7bce9077a7ded1ee41b1726e308db6cd500185f7229d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: slide_api_client-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.3 tqdm/4.65.0 importlib-metadata/6.6.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.12

File hashes

Hashes for slide_api_client-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 31072eea271d4d175186aa814e4bab5544d47aa1b87a6433f5a839d90e75e046
MD5 6b6abba967f1c22e97c27230c2a022ff
BLAKE2b-256 739433abbfd1d4502b7076af1a5ba950e9ba7d75c8fe51018cd9117818adc058

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