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.
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.0.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for dephell_archive-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a76c62449e296570226a2f5b35684356deb56281ded3598b5bc831815e44d7fe |
|
MD5 | 4e0b0d300b016a3de6a74bf5c80724a8 |
|
BLAKE2b-256 | 6790fd51227e5bd151269bd830504412c33526ea8116afb707310e30fe58bf95 |