Skip to main content

A Python Library for accessing Universal Base Image configuration

Project description

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

Uploaded Source

Built Distribution

ubi_config-3.1.1-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

Details for the file ubi-config-3.1.1.tar.gz.

File metadata

  • Download URL: ubi-config-3.1.1.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.18

File hashes

Hashes for ubi-config-3.1.1.tar.gz
Algorithm Hash digest
SHA256 e64dd1ce68293e005df8625e1dfa1036ae032631d33c43db6c3a97ae52149431
MD5 0570e6c44b36e610cc8b4ab63c597d9e
BLAKE2b-256 f52e096367c7b8b1c700ad6194a0deb463daef924fcaf2d97a2124462fe7bcf1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ubi_config-3.1.1-py3-none-any.whl
  • Upload date:
  • Size: 26.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.18

File hashes

Hashes for ubi_config-3.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d178928f43e042185720ec1ce87352c4e6cd55f8ef4113b67fb126da8dcc0021
MD5 4c39efbfec2e67ccccb93d85ee5c9af5
BLAKE2b-256 c280a2089f4a7b4b47bf9c796ba6a38763bea6821c017dd57d3cd8b0df103a62

See more details on using hashes here.

Supported by

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