MiniMindsLab Path Compress
Deterministically normalize and compress filesystem-like path strings by:
- collapsing repeated
/separators, - removing
.segments, - resolving
..segments lexically (without filesystem access), - preserving absolute (
/) vs relative form.
Installation
pip install minimindslab-path-compress
Usage
from minimindslab_path_compress import compress_path
compress_path("a//b/./c") # "a/b/c"
compress_path("/a///b/../c") # "/a/c"
compress_path("../../a/./b") # "../../a/b"
compress_path("/") # "/"
compress_path("") # "."
Behavior Notes
- Pure lexical normalization only; no filesystem reads/writes.
- Input must be a string; otherwise
TypeErroris raised. - Uses
/as the separator convention for deterministic cross-platform behavior.
Metadata
Release files for minimindslab-path-compress 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 | |
|---|---|---|---|---|
| minimindslab_path_compress-0.1.0.tar.gz | 3.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| minimindslab_path_compress-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.8 kB
Release files / minimindslab_path_compress-0.1.0.tar.gz
| Download URL | minimindslab_path_compress-0.1.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
838526e95c664ff8b5029bcf924ae8a683732c5e70c261746d5542b897282e3a
|
|
BLAKE2b-256 checksum How to use checksums |
1de1121a25ac1b3da3998ee1a17e72df0237915584139c7b8ae411ff4ee90474
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
n8n
|
Release files / minimindslab_path_compress-0.1.0-py3-none-any.whl
| Download URL | minimindslab_path_compress-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5dcc0ee36d5fc75e621a6f0f316e4bd0e40f078cd9ff88365d3125fb4e6d2bbd
|
|
BLAKE2b-256 checksum How to use checksums |
acb17807f2ad747ce657b4a9cf632c009632a207e003a78596003ca54ccca01d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
n8n
|
Security for minimindslab-path-compress 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.