Skip to main content
$ 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

Release files for schedule-jobs 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for schedule-jobs 0.0.4
File Size Uploaded
schedule_jobs-0.0.4.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for schedule-jobs 0.0.4
File Interpreter ABI Platform
schedule_jobs-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size:11.7 kB

Release files / schedule_jobs-0.0.4.tar.gz

Download URL schedule_jobs-0.0.4.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
563688e6b9d816f79093cc296b66242222d9a0ac19ce83a71709efadd2c7758f
BLAKE2b-256 checksum
How to use checksums
3821745cf8e13afe3968bf2a460139c94878ca5a4cedf7cd9fdccdabd7298bf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4

Release files / schedule_jobs-0.0.4-py3-none-any.whl

Download URL schedule_jobs-0.0.4-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
964b2061725d576d5bd534b463b3144c69c73eb44b67c3c09eab2404c7c1d7b5
BLAKE2b-256 checksum
How to use checksums
d5a5ed356028cedd40b11dfccf255a64bd6336e4551c00a9e9915c9d4fe9c0fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page