Skip to main content

No project description provided

Project description

pyhassbian Build Status PyPI version

A python module to interact with hassbian-config.

Install

pip install pyhassbian

Verify that hassbian-config is installed

import pyhassbian
pyhassbian.is_installed()
# Sample output: True

Get a list of all available suites

import pyhassbian
print(pyhassbian.get_suites())
# Sample output: ['hue', 'samba', 'homeassistant']

Get the version number of hassbian-config

import pyhassbian
print(pyhassbian.get_version())
# Sample output: '0.9.3'

Install or upgrade a suite with hassbian-config

import pyhassbian
pyhassbian.manage_suite('install', 'hue')
pyhassbian.manage_suite('upgrade', 'homeassistant', version='0.80.3')
pyhassbian.manage_suite('upgrade', 'hassbian-script', dev=True)

Upgrade the base OS

import pyhassbian
pyhassbian.os_upgrade()

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pyhassbian-0.0.3.tar.gz (2.0 kB) Copy SHA256 hash SHA256 Source None Sep 8, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page