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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for tsv_calendar-2022.12.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7c479554da878cb286c16b55215248037b0f6c32e3ddfce6fa8a2cb1a12937a |
|
MD5 | e3ec6e49b378b27d6132eff3d8cb6852 |
|
BLAKE2b-256 | ca71168fdca945a7eda4007271de3c9eeea33b001615affc6b030e6875464039 |