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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file dephell_archive-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: dephell_archive-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1efc5de72b395b42da2f42d7c001edc8af950828a0231d3aa8c0f4bdd7ed9a98 |
|
MD5 | e43d09657eecc759011036226880332b |
|
BLAKE2b-256 | cd1b67ff779bea922729506f036d90c7213025206f2d5d253a30d2c07abac265 |