Registry / devops / galaxy-importer

galaxy-importer

JSON →
library0.4.39pypypiunverified

Python library for importing Ansible Galaxy content (roles and collections) into a Galaxy-like server. Version 0.4.39. Releases follow no fixed cadence.

pip install galaxy-importer
INSTALL
IMPORT
SIG · GALAXY-IMPORTER
G
galaxy-importer
devopspythonv0.4.39
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

runner
import galaxy_importer.runner
from galaxy_importer import runner

Basic usage: import a collection tarball into Galaxy.

import os from galaxy_importer import runner from galaxy_importer.config import GalaxyImporterConfig cfg = GalaxyImporterConfig() cfg.server = os.environ.get('GALAXY_SERVER', 'https://galaxy.ansible.com') cfg.api_key = os.environ.get('GALAXY_API_KEY', '') # Import a collection from a tarball with open('mycollection-1.0.0.tar.gz', 'rb') as f: result = runner.import_collection(f, cfg) print(result)
Debug
Known issues
gotchagalaxy-importer requires write access to a Galaxy database. It is not a standalone tool for local validation; it expects a full Galaxy server context.
fix
Use ansible-galaxy collection build and validate locally instead.
affects: all
gotchaThe import runner modifies the database state. Do not run against production without testing.
fix
Use a staging Galaxy server for testing.
affects: all
Upgrade
Version history
0.4.39latest on PyPI · released May 6, 2026
Audit
Dependencies
ansible-corerequiredRequired for parsing Ansible content
Agent activity
10 hits · last 30 days
node
10
Resources
galaxy-importer — pip install galaxy-importer · libregistry