Here is the updated README.md reflecting the new --src verification flag, updated header output descriptions, and custom directory path handling.
filename: README.md
python-trace-compact
A zero-dependency high-density CLI compactor that compresses raw Python lines execution logs into readable structural matrices and chronological sequences.
Installation
Install the package directly from your local development repository or download wheel artifacts:
pip install .
For live active development tracking, link the source paths using editable mode:
pip install -e .
Usage
Pip pipelines register a universal entry point executable named trace-compact into your system binary environment paths.
1. High-Level Summary Matrix (--summary)
Aggregates overall module statistics sorted chronologically by the earliest trace step execution window entry point.
python3 -m trace --trace script.py | trace-compact --summary
Output Layout:
# fields: earliest and latest trace step seen, filepath, first and last line numbers, average calls (calls / distinct lines)
0007563-0027062 _base.py line 4-642, avg hits 1.1
0027063-0027110 units.py line 12-85, avg hits 1.0
To dynamically inject metrics back into the default view, supply comma-separated parameters via the --fields argument:
python3 -m trace --trace script.py | trace-compact --summary --fields count,distinct
2. Unique Execution Tallies (--detailed-summary)
Produces an alphabetically sorted filename summary displaying explicit total execution counts mapped to individual code lines.
python3 -m trace --trace script.py | trace-compact --detailed-summary
Output Layout:
# fields: filepath, line number✖calls|...
base.py|842✖️5|848✖️6|
typing.py|273✖️6|274✖️6|
3. Chronological Sequence Layout (Default Stream)
Collapses matching sequential executions within a file onto a single continuous line, using ellipsis truncation strings (…) to absorb repetitive loop structures.
python3 -m trace --trace script.py | trace-compact
Output Layout:
# fields: filepath, line numbers
enum.py:383:384:674:680:681:…:680:681:683:690
Options & Arguments
To see the complete automated user configuration handbook directly inside your terminal, execute:
trace-compact --help
--src <DIR>: Verifies trace log executions against valid Python files inside a targeted source tree root. Disambiguates duplicate file basenames, converts outputs to relative source paths, and rejects trace entries outside line count bounds.--skip-libs: Automatically filters standard library internals, hidden wrappers, andsite-packagesdependencies out of output data logs to isolate your primary project application files.-o,--output: Instructs the processing core to dump compiled summaries into a persistent storage file instead of piping directly tostdout.
License
- Source Logic & Code Blocks: Distributed under the terms of the MIT License.
- User Manuals & Layout Specifications: Distributed under the terms of the Creative Commons BY-NC-ND 4.0 International License.
Metadata
Release files for python-trace-compact 0.3.2
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 | |
|---|---|---|---|---|
| python_trace_compact-0.3.2.tar.gz | 7.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_trace_compact-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.0 kB
Release files / python_trace_compact-0.3.2.tar.gz
| Download URL | python_trace_compact-0.3.2.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f91a750bb87c916157638b8e8b8122f5a61c228f86e0743d97b19163e06686a
|
|
BLAKE2b-256 checksum How to use checksums |
cb391e64e39dbd24fcc1539903a06d6ca26340a269b475e568faedc3cfacbdf8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.13
|
Release files / python_trace_compact-0.3.2-py3-none-any.whl
| Download URL | python_trace_compact-0.3.2-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9fb401d46b41b8eb5bcf1c5a6f9e14a054a83671eeaa8a507c9d3b1ae23608c2
|
|
BLAKE2b-256 checksum How to use checksums |
6fb09dec6367e5f17502489b87c60645a6110178110a7222227e54c324b874f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.13
|
Security for python-trace-compact 0.3.2
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.