hass-deps
An un-opinionated command line dependency manager for Home Assistant
Installing
pip install hass-deps
Usage
hass-deps can be invoked directly from the root of your Home Assistant configuration directory, however the config
directory can be specified via the --config-dir switch.
Add a dependency
hass-deps add <dependency source>
e.g.:
hass-deps add https://github.com/nickw444/deebot-t8-hass.git
Install/sync all dependencies
Ensures the local dependencies are in-sync with those defined in the lock file.
hass-deps install
To force reinstallation of dependencies even where installed version matches the lock file version, use the --force
switch:
hass-deps install --force
Upgrade a dependency
Upgrading a single dependency to the latest version:
hass-deps upgrade <dependency source>
Upgrading all dependencies to the latest version:
hass-deps upgrade
Why not HACS?
HACS is a great plugin for Home Assistant, particularly for less tech-savvy users who might not be familiar connecting to a remote machine via SSH or Samba to install a new dependency.
From my limited time using HACS I was disapointed there was no way to "check in" the set of installed dependencies, other than taking a snapshot of the Home Assistant configuration.
Due to this, my config validation pipeline in CI failed (as it had no way to know which dependencies were installed).
Furthermore, the recent security advisory for HACS came to light, which further made me consider whether I wanted such a fully functional addon part of my Home Assistant environment.
Using hass-deps, references to your dependencies can be checked in to version control, and reinstalled in a reproducible (due to the lockfile functionality in hass-heps)
Metadata
Release files for hass-deps 1.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hass-deps-1.0.8.tar.gz | 8.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hass_deps-1.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.1 kB
Release files / hass-deps-1.0.8.tar.gz
| Download URL | hass-deps-1.0.8.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f7b027d7898edcc9edb60c6d7dee02b3efd28b5af8838dfc0a028dfe127aecd
|
|
BLAKE2b-256 checksum How to use checksums |
18c54f054176de49b39489f4e4ffe5d7637c73842bfc07e6ad20d88ad93746a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / hass_deps-1.0.8-py3-none-any.whl
| Download URL | hass_deps-1.0.8-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5d82cf54e3fa6df36a716f81598c0089ca0f3da2e7de0245e9a1fb068589c641
|
|
BLAKE2b-256 checksum How to use checksums |
61c8aa88cdc0bd13254d967bbffc75eb5540781d12c7f075879a4e66e28471d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|