Metadata-Version: 2.3
Name: enhanced_pathlib
Version: 0.0.5
Summary: Enhanced Path library for python3
Project-URL: Homepage, https://github.com/kot-begemot-uk/enhanced_pathlib
Project-URL: Issues, https://github.com/kot-begemot-uk/enhanced_pathlib/issues
Author-email: Anton Ivanov <anton.ivanov@cambridgegreys.com>
License: BSD-3-Clause
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# epath
Enhanced Path - drop in replacement for Path/PosixPath from pathlib

Supports compression/decompression and signature verification.

Example use:

```
from enhanced_pathlib import Epath
from Cryptodome.PublicKey import RSA
key = RSA.import_key(open('testpublickey.pem').read())
sig = open('testfile.gz.sig', mode="rb").read()
e = epath.EPath('testfile.gz', signed='sha384', compress='gzip', signature=sig, key=key)
e.read_bytes()
```
If the file sig verifies OK it will decompress it and return it in a manner equivalent to Path.read\_bytes()
