Skip to main content

A simple-to-use program for quickly batch creating job tasks based on the PBS job scheduling system (including OpenPBS, PBS Pro, and TORQUE) based on a command list.

Project description

Pbstool

Introduction

A simple-to-use program for quickly batch creating job tasks based on the PBS job scheduling system (including OpenPBS, PBS Pro, and TORQUE) based on a command list.

This application consists of two parts, pbstool is used to quickly create pbs job scripts, and qsubs is used to submit job scripts in batches.

Install


From source code

git clone https://github.com/interestingcn/pbstool.git
cd pbstool
pip install .

From Pypi

pip install pbstool

Usages


Quick start

# Create job script
pbstool -c cmd.txt -n job_name -q cu 
# Submit them all!
qsubs

pbstool: help information

Useage: pbstool  <command> [options]
Commands:
    -c / --cmd          Set job command list path.
    -n / --name         Job name prefix.
    -e / --env          If the software you are using is in a conda environment,
                        define the conda environment name here.
    -q / --queue        Target queue name.
    -- / --node         Set the number of nodes required for the job.Default 1.
    -- / --ppn          Set the number of CPU cores that can be used by each node.Default 1.
    -o / --output       Output path to generate job script.Default current path
    --walltime          Set the maximum wallclock time required for the job.Default 1000hours.
    --log_info_output   Job standard log output path.Default current path.
    --log_error_output  Job error log output path.Default current path.
    
    -s / --sample       Create a sample pbs script.
    -h / --help         Display this help message.
    -v / --version      Detailed version information.

qsubs

qsubs has no parameters. It will submit all pbs job scripts in the current path by default. You only need to execute qsubs under the path to be submitted.

qsubs

License


Copyright [2023] [wangzt]

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About


Author: Wangzt (interestingcn01@gmail.com)

Bioinformatics Laboratory of South China Agricultural University

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

pbstool-2.2-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file pbstool-2.2-py3-none-any.whl.

File metadata

  • Download URL: pbstool-2.2-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pbstool-2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3c4938c7c92600dc1a8a5ae4c9473643468bc79a1ea31f9656c561bca257f6c6
MD5 a8591f4ca41784511f23a347985e1b22
BLAKE2b-256 38435e36b7cbaaf409eb2a95c870968a0af5b95ca7f77282952c75867a8fb40e

See more details on using hashes here.

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