Skip to main content

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

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

py_win_task_scheduler-0.2.1.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

py_win_task_scheduler-0.2.1-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file py_win_task_scheduler-0.2.1.tar.gz.

File metadata

  • Download URL: py_win_task_scheduler-0.2.1.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.2

File hashes

Hashes for py_win_task_scheduler-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d213d7c612fdb260be8cff774cb391399274eaab95fb70d211458599964bfd86
MD5 5e06b026cf15d2e663699957c8a21a61
BLAKE2b-256 41dfbf098e2186c7b11f93c81bfca581eac4539c7a99deed39c4543fae868943

See more details on using hashes here.

File details

Details for the file py_win_task_scheduler-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for py_win_task_scheduler-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 77c947c098c7c5467b42cd3ddbc800a67d1a57b07e7215fc14411dd32e5f4a3f
MD5 edec6bde9336694c759e52b551e0abdf
BLAKE2b-256 2e4bb6b17ed46f59a05e4d76142af43e02aaf8d7ec014255101d78c6f9ab58af

See more details on using hashes here.

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