Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

tsv-calendar

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsv-calendar

TSV Reader for bunzbar Project

pipPyPI
Version
2022.12.11.1
Maintainers
1

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.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts