Generate running information for jobs in pipen pipelines
Project description
pipen-runinfo
Generate running information for jobs in pipen pipelines.
Including session info (packages and versions), time, and device info.
Install
pip install -U pipen-runinfo
Enable/Disable the plugin
The plugin is registered via entrypoints. It's by default enabled. To disable it: plugins=[..., "no:runinfo"], or uninstall this plugin.
Plugin options
runinfo_lang: The name of the language to run the job script for session info. Default isNone, which means it will be inferred from theproc.langThis should be a process-level option, unless you only have one single process in your pipeline.runinfo_path: Whether to include paths for the modules in the session information. Default isTrue. This option could be either specified in the process-level or the pipeline-level. Only works forpython.runinfo_submod: Whether to include submodules in the session information. Default isFalse. This option could be either specified in the process-level or the pipeline-level. Only works forpython.
Supported languages for session info
python, R, bash, and fish.
Usage
The plugin will generate 3 files in the job directory of the pipeline.
job.runinfo.session
The session information of the job, including the interpreter, packages and their versions.
Python
Generates a TSV file with the following columns:
Name: The name of the module, or python itself__version__: The version fetched bymodule.__version__ormodule.versionimportlib.metadata: The version fetched byimportlib.metadata.version(package)Path: The path of the module (only ifruninfo_pathisTrue)
R
Generates a text file sessionInfo() output.
Bash
Generates a TSV file with the following columns:
SHELL: The value of$SHELLBASH_VERSION: The value of$BASH_VERSIONBASH_ARGV0: The value of$BASH_ARGV0BASH_SOURCE: The value of$BASH_SOURCEproc-exe: The real path of the executable from/proc/<pid>/exeproc-exe-version: The version of the executable from/proc/<pid>/exe --version
Fish
Generates a TSV file with the following columns:
SHELL: The value of$SHELLFISH_VERSION: The value of$FISH_VERSIONproc-exe: The real path of the executable from/proc/<pid>/exeproc-exe-version: The version of the executable from/proc/<pid>/exe --version
job.runinfo.time
The time spent on the job, and more, generated by time -v command.
job.runinfo.device
The device (cpu and memory) information of the job, generated by lscpu/lsmem command.
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 pipen_runinfo-1.0.0.tar.gz.
File metadata
- Download URL: pipen_runinfo-1.0.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7c4093502bf8a0c7b8f61f3d7c77a2bf653d160e0ae21e1a7d66715ff664c48
|
|
| MD5 |
3504a24b19c2f84c646255b0118a3e40
|
|
| BLAKE2b-256 |
9dc848c6ebfe1d12a915f0e6c533b62048b878640ca05b44d0f061f8ce8b8c59
|
File details
Details for the file pipen_runinfo-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pipen_runinfo-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dff38e55d394a62a1a0a9000d0e575cbeeedfb600a1e85397979e277111a16fc
|
|
| MD5 |
7614ebf294496a3f06df126f01e66667
|
|
| BLAKE2b-256 |
48ccf8516c54894bdad4da4f8dd3e20c5229ba60efdcf5768f12c5b7ef1ed0bc
|