{"id":45004,"library":"galaxy-importer","title":"galaxy-importer","description":"Python library for importing Ansible Galaxy content (roles and collections) into a Galaxy-like server. Version 0.4.39. Releases follow no fixed cadence.","status":"active","version":"0.4.39","language":"python","source_language":"en","source_url":"https://github.com/ansible/galaxy-importer","tags":["ansible","galaxy","importer"],"install":[{"cmd":"pip install galaxy-importer","lang":"bash","label":"Default install"}],"dependencies":[{"reason":"Required for parsing Ansible content","package":"ansible-core","optional":false}],"imports":[{"wrong":"from galaxy_importer import runner","symbol":"runner","correct":"import galaxy_importer.runner"}],"quickstart":{"code":"import os\nfrom galaxy_importer import runner\nfrom galaxy_importer.config import GalaxyImporterConfig\n\ncfg = GalaxyImporterConfig()\ncfg.server = os.environ.get('GALAXY_SERVER', 'https://galaxy.ansible.com')\ncfg.api_key = os.environ.get('GALAXY_API_KEY', '')\n\n# Import a collection from a tarball\nwith open('mycollection-1.0.0.tar.gz', 'rb') as f:\n    result = runner.import_collection(f, cfg)\nprint(result)","lang":"python","description":"Basic usage: import a collection tarball into Galaxy."},"warnings":[{"fix":"Use ansible-galaxy collection build and validate locally instead.","message":"galaxy-importer requires write access to a Galaxy database. It is not a standalone tool for local validation; it expects a full Galaxy server context.","severity":"gotcha","affected_versions":"all"},{"fix":"Use a staging Galaxy server for testing.","message":"The import runner modifies the database state. Do not run against production without testing.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.4.39':21 'ansibl':8,27 'cadenc':26 'collect':13 'content':10 'fix':25 'follow':23 'galaxi':2,9,17,28 'galaxy-import':1 'galaxy-lik':16 'import':3,7,29 'librari':5 'like':18 'python':4 'releas':22 'role':11 'server':19 'version':20","created_at":"2026-06-07T12:52:53.766877+00:00","updated_at":"2026-06-07T12:52:53.766877+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nModuleNotFoundError: No module named 'galaxy_importer.runner'"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/ansible/galaxy-importer","github":"https://github.com/ansible/galaxy-importer","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}