A Python Library for accessing Universal Base Image configuration
Project description
A Python library for accessing Universal Base Image configuration
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ubi-config-3.0.0.tar.gz
.
File metadata
- Download URL: ubi-config-3.0.0.tar.gz
- Upload date:
- Size: 23.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff5512008a2521eee9fa5753592643f4cd463a414804a1d18f3f27929b368d12 |
|
MD5 | 86f104388e1bc17ea4164c5c8557dbf4 |
|
BLAKE2b-256 | 3de7d08bea77dea8d92e5e01883d44ec00a71e4ee6ffabfbc2d227c667225b57 |
Provenance
File details
Details for the file ubi_config-3.0.0-py3-none-any.whl
.
File metadata
- Download URL: ubi_config-3.0.0-py3-none-any.whl
- Upload date:
- Size: 26.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9c56cc455eecf96b1cfa88b11ce1689452d3bf5c92be9ebe69d95f7f786c40a |
|
MD5 | 61aa5731b0263a48aca17c53610521d1 |
|
BLAKE2b-256 | 086e5c723408c59b658931e3e07da8f73bfbb40acb01527180cd49b57e77e98a |