import src.services.TriMet
from ansiconverter import RGBtoANSI, bold
api = src.services.TriMet.TriMetAPI(api_key="00BA96108889B7ED8850997D7")
result=src.services.TriMet.get_vehicles(api)
for vm in result['vehicles']:
print(RGBtoANSI(
text=f"this is {bold(vm.type[1])} #{bold(vm.id)}.\n\troute #{bold(vm.import_data['routeNumber'])}, next stop: {bold(vm.sign[0])}\n\tboard: {bold(vm.sign[1])}\n\tJSON: {bold(vm.import_data)}",
foregound=vm.route_color
))