MiniMindsLab Path Parent Rank
minimindslab-path-parent-rank is a tiny pure-Python utility for ranking filesystem-like paths by parent depth.
It normalizes repeated separators and trailing slashes, then returns deterministic depth metrics over an input list.
Features
- Pure Python (standard library only)
- Deterministic normalization and depth counting
- Helpful summary output for tooling and tests
Quick example
from minimindslab_path_parent_rank import summarize_paths
paths = [
"a/b/c",
"a//b/",
"/root/data/file.txt",
]
summary = summarize_paths(paths)
print(summary["max_depth"])
print(summary["ranked_paths"])
Returned summary keys
input_count: number of input pathsunique_normalized_count: number of unique normalized pathsmax_depth: maximum parent depthmin_depth: minimum parent depth (0 for empty input)average_depth: arithmetic mean depth (0.0 for empty input)ranked_paths: list sorted by depth descending, then normalized path- each item has:
path,normalized_path,depth
- each item has:
Normalization rules
- Backslashes are treated as separators and converted to
/ - Repeated separators collapse to a single
/ - Trailing separators are removed (except root
/) .segments are ignored..segments pop one prior segment when possible (never above root)
License
MIT
Metadata
Release files for minimindslab-path-parent-rank 0.1.0
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 |
|---|---|---|---|---|
| minimindslab_path_parent_rank-0.1.0.tar.gz | 4.1 kB | Without provenance | Details for minimindslab_path_parent_rank-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| minimindslab_path_parent_rank-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for minimindslab_path_parent_rank-0.1.0-py3-none-any.whl |
Total release size: 8.2 kB
Release files / minimindslab_path_parent_rank-0.1.0.tar.gz
| Download URL | minimindslab_path_parent_rank-0.1.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a178d7fe5a0db20c628cdd6c3d9e8eb4035f1e6f0bff9e652d5797afad07ab6
|
|
BLAKE2b-256 checksum How to use checksums |
816cc2c4bc479ae3ee0e5f28932a21f329dc27938aac02ecb3b0ed52d3c767eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
n8n
|
Release files / minimindslab_path_parent_rank-0.1.0-py3-none-any.whl
| Download URL | minimindslab_path_parent_rank-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20511217de8dcd1a9bf754375e08e345de7e58aba3dac777759b02f6886ad664
|
|
BLAKE2b-256 checksum How to use checksums |
8b7b3a5992adae4526b427520e0df091f6c2418d3daa88659e536a3ac41bc554
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
n8n
|
Security for minimindslab-path-parent-rank 0.1.0
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.