Skip to main content

Schedule Python functions with ease

Project description

Greetings from Scheduguru

Scheduguru was a project I created very recently to enrichen my learning of threading and asynchronous programming in Python.

How to use

Currently there's not much to go by so this is all the documentation you get:

The Scheduler class

This is the main class that Scheduguru revolves around. When initialised the following parameters can be passed in:

  • name: str: This is a string that defines the Scheduler's name. Has no functional significance. If in doubt, set this to the value of __name__
  • wait_time: int: An integer (in seconds) that defines how long the scheduler should wait for new tasks without terminating

There is only one publicly available method which is the Scheduler.schedule method.

The Scheduler.schedule method

This method schedules an event for execution as soon as possible. It adds it to the task queue which the scheduler will listen for changes to and execute any new tasks.

The specification of the Scheduler.schedule method is as follows:

  • task: Callable - a reference to the function which is to be executed
  • args: tuple[Any] - any positional arguments to be passed into the function
  • kwargs: dict[str, Any] - any keyword arguments to be passed into the function

Go and explore the rest! (not that there is anything else)

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

scheduguru-0.0.5.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

scheduguru-0.0.5-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

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