Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansible_galaxy_helper-0.1.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ansible_galaxy_helper-0.1.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

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

Hashes for ansible_galaxy_helper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2c60b9a797d2961d06719a82bcc6f2bf1673d0f7973b4cd9219338e827e59407
MD5 e87dd61d8e6d2096a3e279723dbf46b9
BLAKE2b-256 5116edc20fb79de7e64d96d2dce754c952ef97bda70c419192690ea243fcf7e6

See more details on using hashes here.

File details

Details for the file ansible_galaxy_helper-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ansible_galaxy_helper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f7a9389867656ceef213b0586488b3af54640b9e7597edb1e6ba2f3be2a0746
MD5 c161d6729d3ac9808fad441d8e4edb46
BLAKE2b-256 0bc0c8d9165603fbec12e7c61cded539dd22612a447ca2838eac747e31ca6bd5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page