Skip to main content

Usage

$ 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

Metadata

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 Provenance Actions
schedule_jobs-0.0.4.tar.gz 4.4 kB Without provenance Details for schedule_jobs-0.0.4.tar.gz

Built distribution (wheel)

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

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

Security for schedule-jobs 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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