Metadata-Version: 2.4
Name: ansible-galaxy-helper
Version: 0.1.0
Summary: Small helper library to use Ansible Galaxy in Python
Author-email: Belal Ibrahim <belal.ibrahim@proton.me>
Project-URL: Homepage, https://github.com/belal-i/ansible-galaxy-helper
Project-URL: Issues, https://github.com/belal-i/ansible-galaxy-helper/issues
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Framework :: Ansible
Classifier: Programming Language :: Python :: 3
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: Apache Software License
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: ansible-core>=2.15.13
Requires-Dist: ansible-runner>=2.4.1

### About

A small helper library to use Ansible Galaxy from within Python.

Work in progress, I will improve this soon. For now, I just need to reuse
this code in some other tools.

### Installing

```
pip install ansible-galaxy-helper
```

### Usage

```python
import os
import ansible_galaxy_helper

result = ansible_galaxy_helper.ensure_galaxy_dependencies(
        os.path.join('path', 'to', 'ansible-galaxy-requirements.yml'))

try:
    assert result == 0
except AssertionError:
    raise RuntimeError("Didn't work.")
```
