Skip to main content

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 details)

Uploaded Source

Built Distribution

schedule_jobs-0.0.4-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file schedule_jobs-0.0.4.tar.gz.

File metadata

  • Download URL: schedule_jobs-0.0.4.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for schedule_jobs-0.0.4.tar.gz
Algorithm Hash digest
SHA256 563688e6b9d816f79093cc296b66242222d9a0ac19ce83a71709efadd2c7758f
MD5 35e1f98edcec4645131fbf9f142b060e
BLAKE2b-256 3821745cf8e13afe3968bf2a460139c94878ca5a4cedf7cd9fdccdabd7298bf1

See more details on using hashes here.

File details

Details for the file schedule_jobs-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: schedule_jobs-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for schedule_jobs-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 964b2061725d576d5bd534b463b3144c69c73eb44b67c3c09eab2404c7c1d7b5
MD5 da5e80e89a8cfab19594a638659ad783
BLAKE2b-256 d5a5ed356028cedd40b11dfccf255a64bd6336e4551c00a9e9915c9d4fe9c0fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page