pathlib for archives
Project description
Module to work with files and directories in archive in pathlib style.
Goal: provide the same interface as pathlib.Path for archives.
State: partially implemented. Need to implement more methods.
Installation
Install from PyPI:
python3 -m pip install --user dephell_archive
Usage
from pathlib import Path
from tempfile import TemporaryDirectory
from dephell_archive import ArchivePath
with TemporaryDirectory() as cache:
path = ArchivePath(
archive_path=Path('tests', 'requirements', 'wheel.whl'),
cache_path=Path(cache),
)
subpath = path / 'dephell' / '__init__.py'
with subpath.open() as stream:
content = stream.read()
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
dephell_archive-0.1.3.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for dephell_archive-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d20e24cad496d0a39a3f24f0b8d39244120bf024b7db495c4286a940ea02c66c |
|
MD5 | 0cdd441a5f6486370dcd2be40ae026f9 |
|
BLAKE2b-256 | e81fc3e34f2d7686ed3f8c6b7803d9168ab2fdaceb1efd6fc468e75d562779e8 |