pipen-poplog
Populate logs from jobs to running log of the pipeline for pipen.
Installation
pip install -U pipen-poplog
Enabling/Disabling the plugin
The plugin is registered via entrypoints. It's by default enabled. To disable it:
plugins=[..., "no:poplog"], or uninstall this plugin.
Usage
from pipen import Proc, Pipen
class Poplog(Proc):
input = "var:var"
input_data = [0, 1, 2]
script = """
echo -n "[PIPEN-POPLOG][INFO] Log message "
sleep 1 # Simulate message not read in time
echo "by {{in.var}} 1"
sleep 1
echo "[PIPEN-POPLOG][ERROR] Log message by {{in.var}} 2"
sleep 1
echo "[PIPEN-POPLOG][INFO] Log message by {{in.var}} 3"
"""
if __name__ == "__main__":
Pipen().run()
01-12 11:23:52 I core ╭═══════════════ PoplogDefault ═════════════════╮
01-12 11:23:52 I core ║ A default poplog proc ║
01-12 11:23:52 I core ╰═══════════════════════════════════════════════╯
01-12 11:23:52 I core PoplogDefault: Workdir: '.pipen/Pipeline/PoplogDefault'
01-12 11:23:52 I core PoplogDefault: <<< [START]
01-12 11:23:52 I core PoplogDefault: >>> [END]
01-12 11:23:56 I poplog PoplogDefault: [0/2] Log message by 0 1
01-12 11:23:59 E poplog PoplogDefault: [0/2] Log message by 0 2
01-12 11:24:02 I poplog PoplogDefault: [0/2] Log message by 0 3
Configuration
plugin_opts.poplog_loglevel: The log level for poplog. Default:info.plugin_opts.poplog_pattern: The pattern to match the log message. Default:r'\[PIPEN-POPLOG\]\[(?P<level>\w+)\] (?P<message>.*)'.plugin_opts.poplog_jobs: The job indices to be populated. Default:[0](the first job).plugin_opts.poplog_max: The total max number of the log message to be poplutated. Default:99.plugin_opts.poplog_source: The source of the log message. Default:stdout.
Metadata
Release files for pipen-poplog 1.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pipen_poplog-1.1.7.tar.gz | 256.2 kB | Without provenance | Details for pipen_poplog-1.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pipen_poplog-1.1.7-py3-none-any.whl | Python 3 | none | any | Details for pipen_poplog-1.1.7-py3-none-any.whl |
Total release size: 263.7 kB
Release files / pipen_poplog-1.1.7.tar.gz
| Download URL | pipen_poplog-1.1.7.tar.gz |
|---|---|
| Size | 256.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b37a6fa9c88d0e1f54a120f4b6c36a502f1736d3c704bfb2f634580e212772d3
|
|
BLAKE2b-256 checksum How to use checksums |
6a1b04c625aa9fb56e0226da80ac8addad0dbf81b5462a8c05901fbaf977e603
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / pipen_poplog-1.1.7-py3-none-any.whl
| Download URL | pipen_poplog-1.1.7-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1fbcaf2d70a5b5ce4a60556f57bf0106c45757304628a55d81596569ffb8ba8
|
|
BLAKE2b-256 checksum How to use checksums |
0a71bbdbf371d6304ab0070f2420fb6a8ca1713a4642c1ee2f07710ad1c4aeab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for pipen-poplog 1.1.7
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.