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.0.tar.gz (33.2 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.0-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: braviaproapi-1.0.0.tar.gz
  • Upload date:
  • Size: 33.2 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.0.tar.gz
Algorithm Hash digest
SHA256 9eca3d6e9921446c2f481890072b5dfc60c2fff24a3da9b7b468db14561b30c8
MD5 b7f9570230e716ff1053b40a01ded16e
BLAKE2b-256 76327008330713c6e5a194fa870af37790f7b83623254d47b3cd3ff79f3e770a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: braviaproapi-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5474b80eea8515986cbe9e7689b2162f2035de98ff6016bb363759d47b12d068
MD5 bf31fe22eea017b5877c5c47dcb09c3e
BLAKE2b-256 bdc0a750c50ab442e9344915e683f9eebe285ee685750ba2669f60b71e734833

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