A Schedule Jobs Library
Project description
$ mkdir path && cd path $ virtualenv venv --no-site-packages $ . venv/bin/activate $ mkdir jobs $ touch jobs/__init__.py
jobs/date_job.py
from schedule_jobs.core.base_job import BaseJob
import datetime
class DateJob(BaseJob):
def run(self, *args, **kwargs):
print(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
main.py
from schedule_jobs.app import App
def main():
print("main")
app = App()
app.schedule()
if __name__ == "__main__":
main()
dir
path path/jobs/__init__.py path/jobs/date_job.py path/main.py
finally
$ python main.py
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
schedule_jobs-0.0.4.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for schedule_jobs-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 964b2061725d576d5bd534b463b3144c69c73eb44b67c3c09eab2404c7c1d7b5 |
|
MD5 | da5e80e89a8cfab19594a638659ad783 |
|
BLAKE2b-256 | d5a5ed356028cedd40b11dfccf255a64bd6336e4551c00a9e9915c9d4fe9c0fb |