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.3.0.tar.gz (23.9 kB view details)

Uploaded Source

Built Distribution

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

ubi_config-3.3.0-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ubi_config-3.3.0.tar.gz
  • Upload date:
  • Size: 23.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for ubi_config-3.3.0.tar.gz
Algorithm Hash digest
SHA256 206bf9523a090f137afbee7508a60a0c3d419dbd1fc785228c1f742c49859621
MD5 e3b294ca06c14c473120c334ea818f35
BLAKE2b-256 45ad79300e0164e07241da7c25367cb75a29cec308292123e360aa8315028d23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ubi_config-3.3.0-py3-none-any.whl
  • Upload date:
  • Size: 27.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for ubi_config-3.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5d4c916257435a50d1fcbe62b1c4992555b0009e62a137d13da59a1737dcbdf
MD5 2b8e5cca533aa0cb7bcdc111e44ec54a
BLAKE2b-256 f091eb77c9d709f2ec53e0b1ea4040d21c792328ddc44fb3a3847f59535e86d1

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