Skip to main content

TSV Reader for bunzbar Project

Project description

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()): #If there is none, tsv.current() returns False.
	print(f"Current Event: {tsv.current(tsv_calendar.GET.NAME)}") #Prints Name of current Event.
if(tsv.next(Entire_Week=True)): #Standard is False. If set to True, it not only checks for the next Event Today, but for the next Event this Week.
	print(f"The Next Event is {tsv.next(tsv_calendar.GET.NAME, True)}. It starts in {tsv.next(tsv_calendar.GET.START_TIMER, True)}!") #Prints Name and Time till next Event.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tsv-calendar-2022.12.14.tar.gz (15.0 kB view hashes)

Uploaded Source

Built Distribution

tsv_calendar-2022.12.14-py3-none-any.whl (15.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page