Skip to main content

a simple tool used to load UBI config

Project description

A Python library for reading UBI configurations

Build Status Coverage Status

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 ubi_config import get_loader

config = get_loader().load('rhel-8-for-x86_64-appstream')
# 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 ubi_config 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 ubi_config import get_loader

config = get_loader(local=True).load('/path/to/rhel-8-for-x86_64-appstream.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-0.1.0.tar.gz (20.0 kB view details)

Uploaded Source

Built Distributions

ubi_config-0.1.0-py3.6.egg (19.1 kB view details)

Uploaded Source

ubi_config-0.1.0-py2.py3-none-any.whl (21.4 kB view details)

Uploaded Python 2 Python 3

ubi_config-0.1.0-py2.7.egg (18.4 kB view details)

Uploaded Source

ubi_config-0.1.0-py2.6.egg (18.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: ubi-config-0.1.0.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for ubi-config-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2b786ad80515787b7431867733b2cb54dbed708033b9341ea55edbc0cc84fa18
MD5 f776b2da7ce24cd52cc769fcf07dc115
BLAKE2b-256 e1fe916884f45c217a8681f5b7aa796b7a8947ebeef2e55dea117c6150bc1fc7

See more details on using hashes here.

Provenance

File details

Details for the file ubi_config-0.1.0-py3.6.egg.

File metadata

  • Download URL: ubi_config-0.1.0-py3.6.egg
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for ubi_config-0.1.0-py3.6.egg
Algorithm Hash digest
SHA256 e838ba6e9af3bceda4be324411ba6d7716a5fd85a7bad205adbc980d8dd1d9f2
MD5 1440f0e44d7773b89a69f4ed6169b4ac
BLAKE2b-256 a6141ec1a9530cbf5722512985b233325d5aabb53e9cd1a76afd00e22bde3b91

See more details on using hashes here.

Provenance

File details

Details for the file ubi_config-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: ubi_config-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for ubi_config-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e74a1c0c4478bcfec54261891a8441fe6974d3e3461e7bdc941f50d9150c2e92
MD5 cadd52bd3af1f78ece78c17df49727b8
BLAKE2b-256 148d134261ab12499dd67c3db6d179ec1340be5256fc402a912d4e96767374a1

See more details on using hashes here.

Provenance

File details

Details for the file ubi_config-0.1.0-py2.7.egg.

File metadata

  • Download URL: ubi_config-0.1.0-py2.7.egg
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for ubi_config-0.1.0-py2.7.egg
Algorithm Hash digest
SHA256 d8bddfb49665ae68bdbe6abac7aeab94ece338463360c967d4d49536baf0cfb7
MD5 264a69224a6d10cec8d6c56bf92a14a0
BLAKE2b-256 a28889e936843d84e2c3bd01a50bad34d67194440bf654b8cc88fa2ae21680a9

See more details on using hashes here.

Provenance

File details

Details for the file ubi_config-0.1.0-py2.6.egg.

File metadata

  • Download URL: ubi_config-0.1.0-py2.6.egg
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for ubi_config-0.1.0-py2.6.egg
Algorithm Hash digest
SHA256 119801aff530154bb64bdc3e1cf0625c661fb6007271d7fdbbe95611d328f034
MD5 68e190eb22d4bde546c640dca9ac3727
BLAKE2b-256 59c7807da8f8aeb238138739d8754e1d7844c85578f53155ebd1a2d8246c39a3

See more details on using hashes here.

Provenance

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