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.5.tar.gz
(17.3 kB
view hashes)
Built Distribution
Close
Hashes for dephell_archive-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe526ef20a117609f9abd656f490bac1140a05b5a367c6a194e6bbd3690de7df |
|
MD5 | d6a3d145a4767fe017b73fe14ebfa906 |
|
BLAKE2b-256 | 812af3f3c038e636e400cfe5d948e45e9989fe7b807db3f6fb5855f1e565fe99 |