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.4.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for dephell_archive-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a646e95fe9b13db76447732c285b5b734f46f66e9f9eabbaa019e14f14c3b938 |
|
MD5 | 82038b473054400c296689c16f5afbc5 |
|
BLAKE2b-256 | e8f3b467e57fe488d86cb77b5e2a5abca7788d758f4878672d347fc49054a1a9 |