A tool to query and display all SGE job information
Project description
qstatall
A Python tool to query and display all SGE job information in a formatted table.
Features
- Query all jobs for a specific user
- Display job information in a well-formatted table
- Show detailed job information including CPU and memory usage
Installation
From PyPI (Recommended)
pip install qstatall
From Source
git clone https://github.com/liuyanbioinfo/qstatall.git
cd qstatall
pip install .
Usage
# Basic usage (shows current user's jobs)
qstatall
# Show jobs for specific user
qstatall -u user1 -t plain
# Change table format
qstatall -t grid
Output Example
job_id job_name job_user job_state job_queue job_submit_time cpu vmem script_file sge_o_workdir
12345 job1 user1 r queue1 09/04/2025-09:31:27 00:00:00 3.820M job1.sh /data/user1/12345
12346 job2 user1 r queue2 09/04/2025-09:31:27 00:00:00 3.789M job2.sh /data/user1/12346
12347 job3 user1 r queue3 09/04/2025-09:31:27 00:00:00 3.789M job3.sh /data/user1/12347
Requirements
- Python 3.7+
- SGE (Sun Grid Engine) system
- tabulate package (will be installed automatically)
Table Format Options
This tool uses the tabulate package for formatting. Available formats include:
- plain
- simple
- grid
- pipe
- html
- latex
- ... (any format supported by tabulate package)
Development
Install development dependencies:
pip install -e .
Run type checking:
mypy qstatall.py
Key Fields
- job_id: Job ID
- job_name: Job Name
- job_user: Job Owner
- job_state: Job State
- job_queue: Queue Name
- job_submit_time: Submit Time
- cpu: CPU Usage
- vmem: Virtual Memory Usage
- script_file: Script File
- sge_o_workdir: Working Directory
License
MIT License
Author
Liu Yan (liuyanhzau@163.com)
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
qstatall-0.1.0.tar.gz
(4.2 kB
view details)
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 qstatall-0.1.0.tar.gz.
File metadata
- Download URL: qstatall-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97fb26f81c9cc126e85a1d0601a0395262854bb3b1c65b09d2bb639600478622
|
|
| MD5 |
f568028dfd8a31a3cc3389152c952fa0
|
|
| BLAKE2b-256 |
9f0d853aedfe76aa7296a60eee0fa341ef4ff86735801afb53f85bed3bd671e3
|
File details
Details for the file qstatall-0.1.0-py3-none-any.whl.
File metadata
- Download URL: qstatall-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fc90f742fdee07dfaad7808b8301fb8cafc32a750c8f245c8cdbceb3f10dabf
|
|
| MD5 |
4b1e85d7ddaf1f00ff8a1f2230d48c89
|
|
| BLAKE2b-256 |
20dec44ddbfeaed70ba5b39ed829467861ae644b58dbf5a5e47970dec399dbd4
|