Skip to main content

scheduler schedules python tasks to run at some delay time later.

Usage

install

pip install TaskScheduler

run some tasks some time later

from scheduler import Scheduler


def hello_world(words):
    print "Hello World! ", words


s = Scheduler()
s.daemon = True  # so the thread plays nice with shut down

# Add a task before starting the execution thread
s.schedule_task(5, hello_world, (" 5 seconds later",))

# start the execution thread
s.start()

# Add more tasks
task = s.schedule_task(3, hello_world, ("Another Task",))


# reschedule a task
task.delay = 4
s.reschedule_task(task, )

# delete a task
s.remove_task(task)

Metadata

Release files for TaskScheduler 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 TaskScheduler 0.0.4
File Size Uploaded Provenance Actions
TaskScheduler-0.0.4.tar.gz 2.7 kB Without provenance Details for TaskScheduler-0.0.4.tar.gz

Release files / TaskScheduler-0.0.4.tar.gz

Download URL TaskScheduler-0.0.4.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1f671dea43afe23503dbd9e47acfc85ba62e9d3377bc0820f1a33e5fd4d646aa
BLAKE2b-256 checksum
How to use checksums
ea52029530c678e0eec81af83d47f947949b0044a65d6e1def67109c0246560f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for TaskScheduler 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.

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 release file No provenance

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