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.6.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for dephell_archive-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfecd071dd2e8c24b19586ff40b14c6d7b8751f20e6a608a66cc58e9f8234e75 |
|
MD5 | fb9ec85143b30bbaa2d11ed6a90c8884 |
|
BLAKE2b-256 | c8de23797df92fc47032a6a638892649866a83a99bc27fefd9e2a1a70d2bb292 |