Show HN: Pathlab is pathlib for archives, images, etc.

7 points by barneygale ↗ HN
`pathlib.Path` is Python's object-oriented interface to local filesystem paths, but it was invented too late to be used in modules like `tarfile` and `zipfile`. It also does a lot of magic that makes it hard to extend.

I wrote this package to help others write their own subclasses of `pathlib.Path` for any sort of embedded/remote filesystem. I've included built-in support for `zip`, `tar` and `iso` files (inc. SUSP+RR but exc. Joliet+UDF) and JFrog Artifactory. Hopefully it's helpful to someone.

Source: https://github.com/barneygale/pathlab

Docs: https://pathlab.readthedocs.io

Cheers

1 comment

[ 3.5 ms ] story [ 11.8 ms ] thread