"""Interface to the ows-account microservice.""" from owsrequest import request from product_workflow import constants def get_vendor(vendor_id): """Get the vendor information based on vendor id. Args: int: vendor_id Returns: dict: vendor data """ response = request.get(constants.services.OWS_ACCOUNT, '/vendor/{vendor_id}'.format( vendor_id=vendor_id)) if response.status_code == 200: return response.json()[constants.field.STATUS]