Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ludeeus/pyhassbian
A python package to interact with hassbian-config.
https://github.com/ludeeus/pyhassbian
Last synced: 21 days ago
JSON representation
A python package to interact with hassbian-config.
- Host: GitHub
- URL: https://github.com/ludeeus/pyhassbian
- Owner: ludeeus
- License: mit
- Created: 2018-09-07T16:37:51.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T19:16:29.000Z (over 3 years ago)
- Last Synced: 2024-10-04T19:43:52.600Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 106 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# pyhassbian [![Build Status](https://travis-ci.com/ludeeus/pyhassbian.svg?branch=master)](https://travis-ci.com/ludeeus/pyhassbian) [![PyPI version](https://badge.fury.io/py/pyhassbian.svg)](https://badge.fury.io/py/pyhassbian)
_A python module to interact with hassbian-config._
## Install
```bash
pip install pyhassbian
```### Verify that hassbian-config is installed
```python
import pyhassbian
pyhassbian.is_installed()
# Sample output: True
```### Get a list of all available suites
```python
import pyhassbian
print(pyhassbian.get_suites())
# Sample output: ['hue', 'samba', 'homeassistant']
```### Get the version number of hassbian-config
```python
import pyhassbian
print(pyhassbian.get_version())
# Sample output: '0.9.3'
```### Install or upgrade a suite with hassbian-config
```python
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
```python
import pyhassbian
pyhassbian.os_upgrade()
```