Small helper library to use Ansible Galaxy in Python
Project description
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
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.")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ansible_galaxy_helper-0.1.0.tar.gz.
File metadata
- Download URL: ansible_galaxy_helper-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c60b9a797d2961d06719a82bcc6f2bf1673d0f7973b4cd9219338e827e59407
|
|
| MD5 |
e87dd61d8e6d2096a3e279723dbf46b9
|
|
| BLAKE2b-256 |
5116edc20fb79de7e64d96d2dce754c952ef97bda70c419192690ea243fcf7e6
|
File details
Details for the file ansible_galaxy_helper-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ansible_galaxy_helper-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f7a9389867656ceef213b0586488b3af54640b9e7597edb1e6ba2f3be2a0746
|
|
| MD5 |
c161d6729d3ac9808fad441d8e4edb46
|
|
| BLAKE2b-256 |
0bc0c8d9165603fbec12e7c61cded539dd22612a447ca2838eac747e31ca6bd5
|