Example.tsv
- Day(0-6) Name Desc Starts Ends
-
0 Coding Python Package 1520 1620
1 Coding Java 1400 1600
- Dash will get ignored to allow comments in TSV File
5 Grass Touch Grass 1600 1700
Example.py
import tsv_calendar
tsv = tsv_calendar.TSV_Read("Example.tsv")
if(tsv.current()):
print(f"Current Event: {tsv.current(tsv_calendar.GET.NAME)}")
if(tsv.next(Entire_Week=True)):
print(f"The Next Event is {tsv.next(tsv_calendar.GET.NAME, True)}. It starts in {tsv.next(tsv_calendar.GET.START_TIMER, True)}!")