Schedule Scripts For Running With Time Interval
Project description
Script Scheduler
Script Scheduler is a package created for managing long running python files which is bound by some time interval like developer wants to run script for 3 hours in first half and 5 hours in second half a day. Here Script Scheduler comes into picture where you can just specify script path, start time and end time, these would be list.
Steps
- Specify list of python files
- Specify list of start times for all the scripts
- Specify list of end time for all the scripts
Installation
Script Scheduler requires python3 to run.
pip3 install scriptScheduler
Usage
Schedule Script
from scriptScheduler import scriptScheduler
fileList = ['path_to_file1.py', 'path_to_file2.py', 'path_to_file3.py']
startTimeList = ['12:00', '14:00', '16:00']
stopTimeList = ['13:00', '15:00', '17:00']
scriptScheduler(fileList, startTimeList, stopTimeList)
Remove Script From Timeline
from scriptScheduler import scriptRemove
scriptId = id # you can get this from logs
scriptRemove(scriptId)
Bring Back Script To Timeline
from scriptScheduler import scriptAdd
scriptId = id # you can get this from logs
scriptAdd(scriptId)
Update Timeline -- Development Inprogress
# It will there in next release
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
Script Scheduler-0.2.0.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for Script_Scheduler-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d8308d8580e23ee110a402090e66186db13abebe8879ac92b732191aec9f696 |
|
MD5 | b8ce383dad784c370fd50db99f0b8533 |
|
BLAKE2b-256 | 9d94af35d0c15af4752f154a9da9e72e428a875c51aaf237e6405eacc4952702 |