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.")
Metadata
Release files for ansible-galaxy-helper 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ansible_galaxy_helper-0.1.0.tar.gz | 2.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ansible_galaxy_helper-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.0 kB
Release files / ansible_galaxy_helper-0.1.0.tar.gz
| Download URL | ansible_galaxy_helper-0.1.0.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c60b9a797d2961d06719a82bcc6f2bf1673d0f7973b4cd9219338e827e59407
|
|
BLAKE2b-256 checksum How to use checksums |
5116edc20fb79de7e64d96d2dce754c952ef97bda70c419192690ea243fcf7e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / ansible_galaxy_helper-0.1.0-py3-none-any.whl
| Download URL | ansible_galaxy_helper-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f7a9389867656ceef213b0586488b3af54640b9e7597edb1e6ba2f3be2a0746
|
|
BLAKE2b-256 checksum How to use checksums |
0bc0c8d9165603fbec12e7c61cded539dd22612a447ca2838eac747e31ca6bd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|