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 details)
Built Distribution
File details
Details for the file dephell-archive-0.1.0.tar.gz
.
File metadata
- Download URL: dephell-archive-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- 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 | 720e3f510be704fa52767b09300f87e25c09d45a35ce9a7aadf522f909981105 |
|
MD5 | c00dfdbd5a99c7da81900c47510804c4 |
|
BLAKE2b-256 | 3c2fce1c8d273945efaad4f8045ac45d90aa3f586932b563298ccf1525409e47 |
File details
Details for the file dephell_archive-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: dephell_archive-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.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 | a76c62449e296570226a2f5b35684356deb56281ded3598b5bc831815e44d7fe |
|
MD5 | 4e0b0d300b016a3de6a74bf5c80724a8 |
|
BLAKE2b-256 | 6790fd51227e5bd151269bd830504412c33526ea8116afb707310e30fe58bf95 |