feat: split metadata into smal pieces
All checks were successful
gl/check check status: success (b532f938e9012f7910822aec1adfeb687ee5220b)
gl/gate gate status: success (b532f938e9012f7910822aec1adfeb687ee5220b)

This commit is contained in:
2023-06-01 16:50:12 +02:00
parent 177ba3a3fa
commit b532f938e9
108 changed files with 1133 additions and 538 deletions

View File

@ -15,19 +15,18 @@ import copy
import otc_metadata.data
__all__ = ['Service']
__all__ = ["Service"]
BUILTIN_DATA = otc_metadata.data.read_data('docs.yaml')
BUILTIN_DATA = otc_metadata.data.read_data("docs.yaml")
def _normalize_type(service_type):
if service_type:
return service_type.replace('_', '-')
return service_type.replace("_", "-")
class Service(object):
"""Encapsulation of the OTC Docs data
"""
"""Encapsulation of the OTC Docs data"""
def __init__(self):
self._service_data = BUILTIN_DATA
@ -35,4 +34,4 @@ class Service(object):
@property
def all_services(self):
"Service Categories data listing."
return copy.deepcopy(self._service_data['services'])
return copy.deepcopy(self._service_data["services"])