initial bullshit
This commit is contained in:
commit
fafb13b2a9
4 changed files with 313 additions and 0 deletions
12
test.py
Normal file
12
test.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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"yo fag! i'm {bold(vm.type[1])} #{bold(vm.id)}.\n\ti'm running route #{bold(vm.import_data['routeNumber'])}, and meh next stop is {bold(vm.sign[0])}\n\ti'm sayin {bold(vm.sign[1])}...",
|
||||
foregound=vm.route_color
|
||||
))
|
||||
Loading…
Add table
Add a link
Reference in a new issue