Schtasks api in windows
Project description
pyschtasks
A simplified api to call/schedule tasks in windows using schtasks
Install
pip install pyschtasks
Usage
Here's how to schedule a a task to run a command:
import stask
# Schedule a one time job for 6:30 pm today
job = stask.Job("test_task")
job.do("calc.exe").at("6:30pm").post()
# Schedule a job to run daily at 8:00 AM
job = stask.Job("daily_task")
job.do("notepad.exe").at("8am").daily().post()
# Schedule a job for every 10 minutes
job = stask.Job("every_10_min")
job.do("explorer.exe").every(10).minute().post()
# Delete a scheduled task
job = stask.Job("test_task")
job.delete()
# Run a scheduled task
job = stask.Job("daily_task")
job.run()
# List a scheduled task
job = stask.Job("daily_task")
job.list()
CLI Usage
You can also use pyschtasks from the command line:
Create a task
stask create -n my_task -c "notepad.exe" -s DAILY -a "09:00"
Delete a task
stask delete -n my_task
List a task
stask list -n my_task
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyschtasks-0.1.0.tar.gz.
File metadata
- Download URL: pyschtasks-0.1.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9c62860346fbe8b081799a6b565edaeee6987cf4d265d0f4ab15c451a4d5841
|
|
| MD5 |
69bb3d803d7695ffe06335696639e9f5
|
|
| BLAKE2b-256 |
56c9289c04a00930a21da596c3a74af8344bdc201866be37718f9d8d24e3b9d4
|
Provenance
The following attestation bundles were made for pyschtasks-0.1.0.tar.gz:
Publisher:
publish.yml on sukhbinder/pyschtasks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyschtasks-0.1.0.tar.gz -
Subject digest:
e9c62860346fbe8b081799a6b565edaeee6987cf4d265d0f4ab15c451a4d5841 - Sigstore transparency entry: 845306280
- Sigstore integration time:
-
Permalink:
sukhbinder/pyschtasks@1d4207fbf5a10909c3a19f7975691686956c654c -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/sukhbinder
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1d4207fbf5a10909c3a19f7975691686956c654c -
Trigger Event:
release
-
Statement type:
File details
Details for the file pyschtasks-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyschtasks-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abefc0153e507500a5e92b654887d5e0f58480010c779add195c670f5fe0cbf9
|
|
| MD5 |
f8027624df18f28515897ef6ca15d3ff
|
|
| BLAKE2b-256 |
7f97b020bcabd556f61161cbf4895415833ba4dc0ac52b58598ecc32467eb79c
|
Provenance
The following attestation bundles were made for pyschtasks-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on sukhbinder/pyschtasks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyschtasks-0.1.0-py3-none-any.whl -
Subject digest:
abefc0153e507500a5e92b654887d5e0f58480010c779add195c670f5fe0cbf9 - Sigstore transparency entry: 845306334
- Sigstore integration time:
-
Permalink:
sukhbinder/pyschtasks@1d4207fbf5a10909c3a19f7975691686956c654c -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/sukhbinder
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1d4207fbf5a10909c3a19f7975691686956c654c -
Trigger Event:
release
-
Statement type: