Metadata-Version: 2.1
Name: hapm
Version: 0.2.1
Summary: Home Assistant package management applications
Author-email: Mikhael Khrustik <misha@myrt.co>
License: MIT
Keywords: cli,home-assistant,package-manager
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: ruamel.yaml ==0.17.21
Requires-Dist: arrrgs ==3.0.0
Requires-Dist: PyGithub ==1.59.0
Requires-Dist: gitpython ==3.1.30
Requires-Dist: requests ==2.31.0
Requires-Dist: urllib3 ==1.26.6

# Home Assistant Package Manager

Package manager for Home Assistant which allows you to prepare components for a Stateless Docker image.

## Installation

```sh
pip install hapm
```

## Configuration

A manifest (`hapm.yaml`) is a list of links, divided into several categories. The links are written in a special format and necessarily have a version with `@` in it.

For example: `github.com/user/integration@v1.0.0`.

The version specifies an existing tag or branch in the specified repository.

A link may not have an https prefix, in which case it will be inserted automatically during the reading phase.

```yaml
integrations:
  - github.com/mishamyrt/dohome_rgb@v0.3.0
  - github.com/mishamyrt/myrt_desk_hass@master
```

## Initialize empty config

```sh
hapm init
```

## Sync remote packages

```sh
hapm sync
```

## Export 

```sh
hapm export <path>
```

## List 

```sh
hapm list
```

## Add new package

```sh
hapm install -t integrations mishamyrt/assisted_pol@v0.2.4
```

## Update package

```sh
hapm install mishamyrt/assisted_pol@v0.2.4
```

## Updates

```sh
# Prints updates
hapm updates
```
