Skip to content

ef1500/MonitorFramework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monitor Framework

What is this?

This is a framework that is meant to serve as a faster way to code monitors.

If that doesn't make sense, let me give you an actual example. Let's say you have a manga that you really like, so you decide to write a program that monitors for a new chapter. You can use this framework to run a task when specific conditions are met, like for example, a new chapter of your favorite manga.

Example

from MonitorFramework import onGlobalBool

checkForChapters = True # Should we check for chapters?

def apiCall():
    print("Querying Api....")

def printQuery():
    print("ApiQuery")

# Will Check the variable checkForChapters for the True condition
# And if the condition is true, it will then run the function
@onGlobalBool(printQuery, checkForChapters, True)
def CheckForChapter():
    apiCall()

I was getting frustrated and fed up with having to code a specific monitor every single time I wrote a new program, so I wrote this.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages