{"id":20314491,"url":"https://github.com/release-engineering/ubi-config","last_synced_at":"2025-07-13T05:38:22.036Z","repository":{"id":34295002,"uuid":"174898935","full_name":"release-engineering/ubi-config","owner":"release-engineering","description":"A Python library for reading UBI configuration","archived":false,"fork":false,"pushed_at":"2025-04-02T07:34:53.000Z","size":498,"stargazers_count":4,"open_issues_count":7,"forks_count":12,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-02T08:29:49.904Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/release-engineering.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-11T00:35:22.000Z","updated_at":"2025-04-02T07:34:57.000Z","dependencies_parsed_at":"2024-07-23T13:49:50.807Z","dependency_job_id":null,"html_url":"https://github.com/release-engineering/ubi-config","commit_stats":{"total_commits":68,"total_committers":13,"mean_commits":5.230769230769231,"dds":"0.38235294117647056","last_synced_commit":"6b5e6f86569e25155db8798dcb0e8919dda6c719"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/release-engineering%2Fubi-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/release-engineering%2Fubi-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/release-engineering%2Fubi-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/release-engineering%2Fubi-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/release-engineering","download_url":"https://codeload.github.com/release-engineering/ubi-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248447600,"owners_count":21105140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T18:15:34.810Z","updated_at":"2025-04-11T17:17:20.715Z","avatar_url":"https://github.com/release-engineering.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"ubiconfig\n=========\n\nA Python library for accessing Universal Base Image configuration\n\n[![Build Status](https://github.com/release-engineering/ubi-config/actions/workflows/tox-test.yml/badge.svg)](https://github.com/release-engineering/ubi-config/actions/workflows/tox-test.yml))\n[![codecov](https://codecov.io/gh/release-engineering/ubi-config/branch/master/graph/badge.svg?token=fPG7EINR9O)](https://codecov.io/gh/release-engineering/ubi-config)\n[![Maintainability](https://api.codeclimate.com/v1/badges/c62407f84ad66135fa8d/maintainability)](https://codeclimate.com/github/release-engineering/ubi-config/maintainability)\n\n- [Source](https://github.com/release-engineering/ubi-config)\n- [Documentation](https://release-engineering.github.io/ubi-config/)\n- [PyPI](https://pypi.org/project/ubi-config)\n\nInstallation\n------------\n\nInstall the `ubi-config` package from PyPI.\n\n```\npip install ubi-config\n```\n\n\nUsage Example\n-------------\n\nWhen there is `DEFAULT_UBI_REPO` set, user can load the config by passing the config file\nname to `get_loader().load()`\n\n```python\nfrom ubiconfig import get_loader\n\nconfig = get_loader().load('enterprise-linux-server-x86_64.yaml')\n# config has been validated and is now a Python object with relevant properties\npackage_whitelist = config.packages.whitelist\nprint(package_whitelist)\n```\n\nOr, get all config files from the repo:\n\n```python\n\nfrom ubiconfig import get_loader\n\nconfigs = get_loader().load_all()\n# returns a list of UbiConfig objects\n```\n\nOr, user can also load the config from local file:\n\n```python\nfrom ubiconfig import get_loader\n\nconfig = get_loader(\"/my/config/dir\").load('enterprise-linux-server-x86_64.yaml')\n```\n\nLicense\n-------\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelease-engineering%2Fubi-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frelease-engineering%2Fubi-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelease-engineering%2Fubi-config/lists"}