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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tsv-calendar-2022.12.14.tar.gz.
File metadata
- Download URL: tsv-calendar-2022.12.14.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
879c068d15823377ee637fecf271e7822cfe049c1a92d2000682feaeb719f30f
|
|
| MD5 |
83cc8fb4abf8ab1a72b5f8bc0d7d2b6a
|
|
| BLAKE2b-256 |
f8b1d36d3ba790d09fce4419e3010ea270fac408064e41e4fc19610beba82ddd
|
File details
Details for the file tsv_calendar-2022.12.14-py3-none-any.whl.
File metadata
- Download URL: tsv_calendar-2022.12.14-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7c479554da878cb286c16b55215248037b0f6c32e3ddfce6fa8a2cb1a12937a
|
|
| MD5 |
e3ec6e49b378b27d6132eff3d8cb6852
|
|
| BLAKE2b-256 |
ca71168fdca945a7eda4007271de3c9eeea33b001615affc6b030e6875464039
|