Metadata-Version: 2.4
Name: dcnr-scheduler
Version: 1.0.0
Summary: Scheduling python functions for execution.
Project-URL: Homepage, https://dcnr-utilities.com
Author-email: Rocky Wilson <rocky.wilson@gopal.home.sk>
License: MIT
Keywords: python,scheduler
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# dcnr-scheduler

Minimal example package. After installation:

```python

from dcnr_scheduler import scheduled, ScheduledPlan
from datetime import datetime

@scheduled("at * on mon-fri freq 30/hour")
def print_msg(plan:ScheduledPlan, curr_dt:datetime):
    print(curr_dt, 'Hello world')

```

Internal engine of scheduler checks every 60 seconds by default the 
aligibility of functions to execute. That poses a limitation for maximum
frequency of 60 executions per hour. To increase the limit, you can set the period
of internal scheduler checks.

```python
from dcnr_scheduler import ScheduledPlan

ScheduledPlan.set_period(30)
```

Argument of `set_period` is number of seconds (integer)

