Package: iiblib
iiblibIIB lib is python IIB client library that allows user to operate with IIB serviceRequirementsPython 3.7 overSetup# pip install -r requirements.txt
$ python -m pip install --user iiblib
or
(venv)$ python -m pip install iiblibUsageBasic usage of IIBClient from iiblib is following$ python
>>> from iiblib.iib_client import IIBClient
>>> from iiblib.iib_authentication import IIBKrbAuth
>>> krbauth = IIBKrbAuth()
>>> iibc = IIBClient('iib-host', auth=krbauth)
>>> build = iibc.add_bundles('index_image', 'binary_image', ['bundle1','bundle2'], ['amd64'])
>>> iibc.wait_for_build(build)
>>>
>>> iibc.remove_operators('index_image', 'binary_image', ['operator1'], ['amd64'])ChangelogAll notable changes to this project will be documented in this file.The format is based onKeep a Changelog,
and this project adheres toSemantic Versioning.Unreleased7.2.0 - 2023-09-12AddedAdded check-related-images parameter to Add request7.1.0 - 2023-05-18AddedAdded FBCOperationsModelAdded retry for Kerberos authentication7.0.0 - 2023-02-14AddedAdded RecursiveRelatedBundlesModelAdded retries for IIB requestsFixedFixed codestyle issuesRemovedDropped support for Python26.0.0 - 2022-06-20AddedAdded internal_index_image_copy and internal_index_image_copy_resolved attributes support5.0.0 - 2021-11-09AddedAdded build_tags attribute support4.0.0 - 2021-07-26AddedCreateEmptyIndexModel and functionalitycreate_empty_index function in iib_client.py3.0.0 - 2021-03-19Addedindex_image_resolved attributedeprecation_list attribute to AddModeldeprecation_list parameter to add_bundles function2.2.0 - 2021-02-15Addednew model MergeIndexImageModel2.1.0 - 2021-01-20Addedregenerate_bundle function in iib_client.py2.0.1 - 2020-11-26Fixedfixed a Python 2.6 compatibility issue in iib_build_details_model2.0.0 - 2020-11-19Addednew models AddModel, RmModel and RegenerateBundleModel to iib_build_details_modelnew functions _get_args, _validate_data and __getattribute__ in IIBBuildDetailsModeluse _slots_for backward compatibilitynew class variables _operation_attrs, _optional_attrs, _general_attrs and
_accepted_request_typeChangedclass IIBBuildDetailsModel change to generic class which is inherited by new modelsfunctions from_dict, to_dict and _eq_in IIBBuildDetailsModel1.0.0 - 2020-10-20ChangedVersion set to 1.0.0 to indicate stable release0.13.0 - 2020-10-14ChangedRename file iibclient.py to iib_client.pyCreate new files for classes from iib_client.py0.12.0 - 2020-09-29Addedadded support for 'omps_operator_version'Changed'bundles' is now an optional parameter in IIB requests'binary_image' is now an optional parameter in IIB requests0.11.0 - 2020-07-06Addedtimout for getting build in final state (default 2 hours)backoff factor for retrying data from APIChangedretry is now triggered for all 5xx HTTP status codes (500-511)0.10.0 - 2020-06-25Fixedusage in READMEdefault location for keytabAddedsupport for "overwrite-from-index-token" when calling IIBChangedpassword-based auth to token by replacing content-delivery-release-bot0.9.0 - 2020-03-30Addedadded overwrite_from_index param support0.8.0 - 2020-03-04Changedbetter error reporting for IIB errorsAddedto_dict method for IIBBuildDetailsModel0.7.0 - 2020-03-04Fixedrhel 6 compatibility kerberos fixes0.6.0 - 2020-03-01Fixedrequests-gssapi replaced with requests-kerberos0.5.0 - 2020-02-29Fixedkerberos auth fixed0.4.0 - 2020-02-27Fixedmake client compatible with upstream IIB0.3.0 - 2020-02-27FixedFixed kerberos authadded way how to configure insecure ssl connection to IIB0.2.0 - 2020-02-26FixedFixed incompatibilities with IIB0.1.0 - 2020-02-21AddedFirst iiblib release with support of basic IIB operations