Skip to main content

Library for controlling Sony Bravia TVs utilizing their Bravia Professional API.

Project description

braviaproapi

Documentation Status Build Status

This library provides an easy-to-use Python interface for controlling Sony Bravia televisions. It implements the BRAVIA Professional Display API, which is present on recent consumer hardware. For more information, take a look at Sony's API documentation.

It supports the following features:

  • Control and launch applications, including text entry into form fields.
  • Configuration of display and audio options
  • Control over various system functions (sleep/wake, LED configuration, power saving, etc.)
  • Direct control of external inputs and media sources
  • Emulated remote control input via IRCC commands

Compatibility

This library is intended for use on newer, Android-based televisions. A list of devices and software versions known to be compatible is available on the GitHub wiki.

It has come to my attention that some newer Bravia models have received software updates bumping their API version to higher than 3.x. These devices are not supported by braviaproapi at this time as I do not have a compatible device to test with. Contributions to the library (and the above linked wiki page) are encouraged if you have a supported device!

If your device is not compatible, braviaproapi will raise the following exception on first connection:

braviaproapi.bravia.errors.apierror.ApiError: The target device is running an incompatible API version 'X.Y.Z'

Requirements

This library supports Python 3.10 and higher. You can install it with pip install braviaproapi.

Documentation / Getting Started

You can view the documentation for this project at Read The Docs.

Generating Documentation Locally

Generating the documentation for this project requires Sphinx. Installing from pip is recommended.

Once Sphinx is installed, run these commands to generate documentation (requires GNU make):

cd docs
make html

Contributing

See an issue? Have something to add? Issues and pull requests are accepted in this repository.

License

This project is released under the MIT License. Refer to the LICENSE file for details.

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

braviaproapi-1.0.1.tar.gz (33.3 kB view details)

Uploaded Source

Built Distribution

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

braviaproapi-1.0.1-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for braviaproapi-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0a392853e9296acadddfbe0e05fde0ce9493d1b81a1af36c0f223bc2106d74e4
MD5 ddaf1a2215d789f942a49ee0b6030115
BLAKE2b-256 cc6a990e8b248d5c2c5952aff914ff03b0dccdacc86f0023aeb305f95ba386cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: braviaproapi-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 31.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for braviaproapi-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9a11afe350f16039064645d1ac5208e72626492f3fcf25bde52c9ce09d14a641
MD5 d8fbe360ff641722667005b42d67a0e3
BLAKE2b-256 8e7e5c81ed2f325f5ee51bbd133c0f28deb4147350919f84368e36b59ae95efa

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