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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d213d7c612fdb260be8cff774cb391399274eaab95fb70d211458599964bfd86 |
|
MD5 | 5e06b026cf15d2e663699957c8a21a61 |
|
BLAKE2b-256 | 41dfbf098e2186c7b11f93c81bfca581eac4539c7a99deed39c4543fae868943 |
Hashes for py_win_task_scheduler-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77c947c098c7c5467b42cd3ddbc800a67d1a57b07e7215fc14411dd32e5f4a3f |
|
MD5 | edec6bde9336694c759e52b551e0abdf |
|
BLAKE2b-256 | 2e4bb6b17ed46f59a05e4d76142af43e02aaf8d7ec014255101d78c6f9ab58af |