Skip to main content

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()

Download files

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

Source Distribution

pyhassbian-0.2.1.tar.gz (81.0 kB view details)

Uploaded Source

File details

Details for the file pyhassbian-0.2.1.tar.gz.

File metadata

  • Download URL: pyhassbian-0.2.1.tar.gz
  • Upload date:
  • Size: 81.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/2.7.14

File hashes

Hashes for pyhassbian-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f98df76d45e18305f8e1d1071da61554b2814d5ef3e8e8fe3417b3c2e5fb016e
MD5 b15ec1b704f3f161938f022064894417
BLAKE2b-256 376e0b08172d87380c7e9704511a2da171f5f657aebe4594556bee28bce0e8bb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 file

0.2.0

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.0

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page