Skip to main content

Schtasks api in windows

Project description

pyschtasks

PyPI Changelog Tests License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyschtasks-0.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyschtasks-0.1.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

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

Hashes for pyschtasks-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e9c62860346fbe8b081799a6b565edaeee6987cf4d265d0f4ab15c451a4d5841
MD5 69bb3d803d7695ffe06335696639e9f5
BLAKE2b-256 56c9289c04a00930a21da596c3a74af8344bdc201866be37718f9d8d24e3b9d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyschtasks-0.1.0.tar.gz:

Publisher: publish.yml on sukhbinder/pyschtasks

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pyschtasks-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 abefc0153e507500a5e92b654887d5e0f58480010c779add195c670f5fe0cbf9
MD5 f8027624df18f28515897ef6ca15d3ff
BLAKE2b-256 7f97b020bcabd556f61161cbf4895415833ba4dc0ac52b58598ecc32467eb79c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyschtasks-0.1.0-py3-none-any.whl:

Publisher: publish.yml on sukhbinder/pyschtasks

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page