Skip to main content

A client library to interact with Savant Audio Switches (e.g. SSA-3220).

Project description

Savant Audio Switch Client

image

The savantaudio-client package allows users to download the contents of this GiHub repository, containing a client library to control Savant Audio Switches such as the SSA-3220/SSA-3220D.

Installing

Install and update using pip:

pip3 install savantaudio-client

Or you can clone this repo using:

    git clone https://github.com/akropp/savantaudio-client.git

Usage

The client is based on asyncio, so all calls must be made in the context of an event loop. A basic example which connects to a switch device and fetches all of the inputs/outputs is as follows:

import logging
import asyncio
import savantaudio.client

logging.basicConfig(handlers=[logging.StreamHandler()], encoding='utf-8', level=logging.INFO)
savantaudio.client._LOGGER.setLevel(logging.DEBUG)
switch = savantaudio.client.Switch(host='192.168.1.216', port=8085)

loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
loop.run_until_complete(switch.refresh())
print(str(switch))
loop.run_until_complete(switch.link(11, 8))
loop.run_until_complete(switch.output(11).set_volume(-20))
print(str(switch.output(11)))
loop.run_until_complete(switch.unlink(11))
print(str(switch.output(11)))

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

savantaudio_client-1.0.1.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

savantaudio_client-1.0.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file savantaudio_client-1.0.1.tar.gz.

File metadata

  • Download URL: savantaudio_client-1.0.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for savantaudio_client-1.0.1.tar.gz
Algorithm Hash digest
SHA256 130ef420062c0275b2230779c77d051fe4f637a6f27c375583722e427f715004
MD5 7d8aa5ee07bfb703807a6dd4f78491b4
BLAKE2b-256 5150ab7774210416fdb66ee8ea4735b5d0fca0f47d9f80b8e7238af55c3958ea

See more details on using hashes here.

File details

Details for the file savantaudio_client-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for savantaudio_client-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f417a5325d971f7371c8512907ddc0d9c809312eddf8ff77c4007201569bb79e
MD5 e7bafa3b51e9d1a2d1983eab0319c822
BLAKE2b-256 b5ec2f435c8f1cd24e1305c9814aeb8c58ac5cb211775d8026bcfa61e8162834

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