Skip to main content

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.

Release files for ubi-config 3.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ubi-config 3.3.0
File Size Uploaded
ubi_config-3.3.0.tar.gz 23.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ubi-config 3.3.0
File Interpreter ABI Platform
ubi_config-3.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 50.9 kB

Release files / ubi_config-3.3.0.tar.gz

Download URL ubi_config-3.3.0.tar.gz
Size 23.9 kB
Tags Source
SHA-256 checksum
How to use checksums
206bf9523a090f137afbee7508a60a0c3d419dbd1fc785228c1f742c49859621
BLAKE2b-256 checksum
How to use checksums
45ad79300e0164e07241da7c25367cb75a29cec308292123e360aa8315028d23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / ubi_config-3.3.0-py3-none-any.whl

Download URL ubi_config-3.3.0-py3-none-any.whl
Size 27.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5d4c916257435a50d1fcbe62b1c4992555b0009e62a137d13da59a1737dcbdf
BLAKE2b-256 checksum
How to use checksums
f091eb77c9d709f2ec53e0b1ea4040d21c792328ddc44fb3a3847f59535e86d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

3.3.0 This release

2 release files

3.2.2

2 release files

3.2.1

2 release files

3.2.0

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.0

2 release files

2.3.0

2 release files

2.2.0

1 release file

2.1.0

1 release file

2.0.0

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

0.2.1

1 release file

0.1.0

5 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page