Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

qdir

A very low overhead first-in, first-out job queue for the local machine

The queue is maintained as a directory of tiny job queue files. When a new job is submitted, it will identify any existing job queue files and then add its own queue file to the directory. No job will begin until all the preceeding queue files are gone. Each job will delete its own queue file upon completion so the next job can begin. There is a polling interval (default 5 seconds) where the job checks to see if its predecessor have finished before starting. A shared queue directory can be specified on a multi-user system to coordinate job execution. On Linux this is /tmp by default.

Any command may be submitted to the job queue using qsub (see usage below). You may check the status of the queue (qstat) and remove jobs (qdel).

Installation

Requires python3 running on Windows or Linux. One way to get python3 on Windows is through the Microsoft Store. Here is the command to install qdir once you have python3 available:

python3 -m pip install qdir

See here if there is "no module named pip."

If you see a warning that the script directory is not in your PATH then you'll need to add the specified directory to your PATH in order to use the command line tools. Otherwise, see below.

Abaqus Finite Element Analysis (FEA) extras

The package includes additional files to help Abaqus users submit and monitor the qdir job queue. Use the following command to configure Abaqus after qdir itself has been installed:

python3 -m qdir.abaqus install

By default, the necessary settings are appended to the end of your user abaqus_v6.env file. To uninstall you may removed the settings manually or with this command:

python3 -m qdir.abaqus uninstall

Usage

Command line job submission

Submit commands or scripts to the queue using the qsub command. For example, on Linux:

qsub ./myJobFile.sh

or on Windows:

qsub myJobFile.cmd

Any printed output from the command will be saved to a file based on the job name with the job Id appended to the end.

Display command options with qsub -h

Command line queue status

Check status with the qstat command, for example:

qstat

or, for full details:

qstat -f

Command line job removal

First use the qstat command above to find the jobIds and job names in the queue. Delete or kill jobs with the qdel command followed by a jobId or job name. For example, to delete job 12343:

qdel 12343

Usage without script directory in PATH

The qsub, qstat, and qdel scripts are shortcuts to call python3 module methods. These scripts will not be available at the command line if their directory is not in the PATH. It's most convenient to add the directory to the PATH but it should also be possible to run the methods directly with some additional typing, such as python3 -m qdir.qstat for qstat

Abaqus extras

Submit Abaqus jobs as usual from the command line:

abaqus job=whatever

This will invoke the qdir_submit.py module to create a job script and submit it to qdir.

You may submit jobs within Abaqus CAE by selecting qdir as the Job's queue before submitting. You may check the queue status within CAE in the menu Plug-ins > QDir Job Queue Monitor... Click on a Job to see more detailed information. Right-click on a Job to expose the menu allowing you to delete the Job.

Customization

Most parameters used by the script may be customized with command line options, system environment variables, or directives within the job file itself.

Option Description Default
-N NAME, --name NAME Name for the job. The last argument of the command
-q QUEUE, --queue QUEUE Directory to store the queue files. environment variable QDIR_QUEUE or /tmp on Linux
-c INTERVAL, --interval INTERVAL Polling interval in seconds. environment variable QDIR_POLL_INTERVAL or 5
-i INFO, --info INFO Specify the format of information about jobs in queue environment variable QDIR_INFO or {jobId:8} {owner:12} {status:35} {name}
-o OUTPUT, --output OUTPUT File name for combined stdout and stderr. environment variable QDIR_LOGNAME or {name}._{jobId}
-s STATUS, --status STATUS Specify the format of job status messages output to terminal. environment variable QDIR_STATUS or {jobId} {name} {status} after {duration}
-v VERBOSE, --verbose VERBOSE Set the verbosity level. environment variable QDIR_VERBOSE or 2

Metadata

Release files for qdir 1.0.0rc2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qdir 1.0.0rc2
File Size Uploaded Provenance Actions
qdir-1.0.0rc2.tar.gz 17.0 kB With provenance Details for qdir-1.0.0rc2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qdir 1.0.0rc2
File Interpreter ABI Platform Actions
qdir-1.0.0rc2-py3-none-any.whl Python 3 none any Details for qdir-1.0.0rc2-py3-none-any.whl

Total release size: 35.3 kB

Release files / qdir-1.0.0rc2.tar.gz

Download URL qdir-1.0.0rc2.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
554d609c9fc8259046ecde056f9345cc380e7defc6db0228d316f23537b631be
BLAKE2b-256 checksum
How to use checksums
5fc8ac79743baba6b157356491e5791cdaab0c1cdd51cb1cd23775edb2e8a2cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / qdir-1.0.0rc2-py3-none-any.whl

Download URL qdir-1.0.0rc2-py3-none-any.whl
Size 18.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e2949f25c37d62bc48cab9d9bb9dc98b1e607755a479bbfb84f938856f4b9fd
BLAKE2b-256 checksum
How to use checksums
ef177d3f62c1863b267392ecc0cdcc4920e0bb136af4cf5783bedcc5a8a1f09b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Security for qdir 1.0.0rc2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for qdir-1.0.0rc2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page