Skip to main content

Enhanced Path library for python3

Project description

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

enhanced_pathlib-0.0.3.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

enhanced_pathlib-0.0.3-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file enhanced_pathlib-0.0.3.tar.gz.

File metadata

  • Download URL: enhanced_pathlib-0.0.3.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for enhanced_pathlib-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0f66cfc2e5bd0c133a900384664d0bda1f5e9693a1b4d3890ac0929c783abcfc
MD5 6a35078645d6a5c16570b063459ee5f0
BLAKE2b-256 1e1184e0c54e0809684d775fa1debfc85cd25c6095685d78ab6402de055a230c

See more details on using hashes here.

File details

Details for the file enhanced_pathlib-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for enhanced_pathlib-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8e4598323ecf1d99b1d4a85b56153ba45bcb6d66d06fc071b21854e432556fdf
MD5 e63b07e463d56dee6a9ee763c20cca10
BLAKE2b-256 34ff6f3ae10e17de8be1ace859f29d6cd9933c75ed999371bbda89a812366310

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page