Skip to main content

A Python Library for accessing Universal Base Image configuration

Project description

ubiconfig

A Python library for accessing Universal Base Image configuration

Build Status) codecov Maintainability

Installation

Install the ubi-config package from PyPI.

pip install ubi-config

Usage Example

When there is DEFAULT_UBI_REPO set, user can load the config by passing the config file name to get_loader().load()

from ubiconfig import get_loader

config = get_loader().load('enterprise-linux-server-x86_64.yaml')
# config has been validated and is now a Python object with relevant properties
package_whitelist = config.packages.whitelist
print(package_whitelist)

Or, get all config files from the repo:

from ubiconfig import get_loader

configs = get_loader().load_all()
# returns a list of UbiConfig objects

Or, user can also load the config from local file:

from ubiconfig import get_loader

config = get_loader("/my/config/dir").load('enterprise-linux-server-x86_64.yaml')

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

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

ubi_config-3.2.1.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

ubi_config-3.2.1-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

Details for the file ubi_config-3.2.1.tar.gz.

File metadata

  • Download URL: ubi_config-3.2.1.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Linux/6.11.0-1012-azure

File hashes

Hashes for ubi_config-3.2.1.tar.gz
Algorithm Hash digest
SHA256 3210c93df4f80205167c6e3b4a052a9a8f692e227b1593a5e82edea8f0db6645
MD5 2c271953e4489c6d6fd406f8e1ef3ac7
BLAKE2b-256 51af3c2db616dc4f112d726c6ff381a53dd9d247650138844cb6c3b89e94c13f

See more details on using hashes here.

File details

Details for the file ubi_config-3.2.1-py3-none-any.whl.

File metadata

  • Download URL: ubi_config-3.2.1-py3-none-any.whl
  • Upload date:
  • Size: 26.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Linux/6.11.0-1012-azure

File hashes

Hashes for ubi_config-3.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 67ca281eebaae2790e7c20b6f79602817f859071860fe83889a9385dc0d62c1e
MD5 ba9f0090203217569ec0b6e86c4daa14
BLAKE2b-256 307ba40f0eeb9a6a3250dc4fa6a884516e85ada3faea7b31cb85884a6413fa9e

See more details on using hashes here.

Supported by

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