Script to work with Windows Task Scheduler 2.0 from SaltStack
Project description
## Python scripts for Windows Task Scheduler 2.0 from SaltStack
This is a copy of a https://github.com/saltstack/salt/blob/master/salt/modules/win_task.py from https://github.com/saltstack/salt (Apache 2.0 Licence) as a separate repository.
## Installation and usage
pip install https://github.com/dolamroth/py_win_task_scheduler/archive/refs/heads/main.zip
## Changes made
According to requirement SaltStack’s licence, here is a list of changes made to original script:
class Com and exceptions ArgumentValueError, CommandExecutionError are inserted in a single file, instead of import.
Function run_wait made asynchronous with anyio, anyio.sleep(1) inserted within infinite loop, to make function cancellable with anyio.CancelScope
Added extra error-key -2147024891 in method _save_task_definition
Definitions of __virtual__ methods have been removed
## Licences
Salt original licence: https://github.com/saltstack/salt/blob/master/LICENSE
Salt NOTICE file: https://github.com/saltstack/salt/blob/master/NOTICE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for py_win_task_scheduler-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce81697c7c076ff532dcbaa2614bffde2664af98a1e494dab23b65038e426ff7 |
|
MD5 | df18f42bff8d97110e787d086b632602 |
|
BLAKE2b-256 | 93f2dfb82fe798f24a4896ba5fd99cc98971c40f3e7b79df04d3aeaa0ec724eb |
Hashes for py_win_task_scheduler-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92e93f5fda1d1a9999e4237bed71315aaa2f2115a367f47e9dee695bd4ccab2d |
|
MD5 | b7a075c823e8aa0da4b59c8b495bdaed |
|
BLAKE2b-256 | f07dbabc433f4993d31accff27cc8e637e62e0a3d51edb17eddb0c42cd83bdde |