mplogp
A Python script to parse a logfile generated from multi-processing based tools. The script will parse the logfile and create logs for each process under a specified timestamped folder. Supports log files generated from a log Formatter whose first two fields are: %(asctime)s %(processName)s ....
mplogp
usage: mplogp [-h] --log LOG --folder FOLDER [--regex REGEX]
A Python script to parse a logfile generated from multi-processing based tools
optional arguments:
-h, --help show this help message and exit
--log LOG The location of the logfile to parse
--folder FOLDER The folder where to write the parsed logs
--regex REGEX Regular expression to alias process log filename - must contain a matched group
Examples
Parse the example3.log file and write the parsed logs under the logs folder, add alias to each process log with its matched processor id:
mplogp --log example3.log --folder logs --regex ".*processor id (.*)$"
The log file contained logs from 10 processes and produced the following logs:
logs
└── 2021-05-13_18-48-46
├── MainProcess.log
├── Process-1-69b41899.log
├── Process-10-c40f3916.log
├── Process-2-a6ffc5b5.log
├── Process-3-14175157.log
├── Process-4-90e875c2.log
├── Process-5-ef35f44f.log
├── Process-6-c7268544.log
├── Process-7-7557d6d6.log
├── Process-8-e248e861.log
└── Process-9-0bb23bab.log
Development
Build the Docker image:
docker image build \
-t \
mplogp:latest .
Run the Docker container:
docker container run \
--rm \
-it \
-v $PWD:/code \
mplogp:latest \
bash
Build the project:
pyb -X
Metadata
Release files for mplogp 0.1.1
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 | |
|---|---|---|---|---|
| mplogp-0.1.1.tar.gz | 4.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mplogp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.4 kB
Release files / mplogp-0.1.1.tar.gz
| Download URL | mplogp-0.1.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7e32e0846bc84bfcfb4b8c0b116896eb560d283c008b3b82620ea4837ad5e18
|
|
BLAKE2b-256 checksum How to use checksums |
c98b9d39097c29867757f885fd120327b2bcc66c91b83b7c96ed0818e99bf0ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / mplogp-0.1.1-py3-none-any.whl
| Download URL | mplogp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8382f238288875b59573a669fa4c5172b158d274d81d676f9638b43c178b841b
|
|
BLAKE2b-256 checksum How to use checksums |
13cd9806124d999667ce7a654837f94839be2dafb38b9664da091b3505e39822
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for mplogp 0.1.1
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.