dephell-archive-0.1.7
توضیحات
pathlib for archives
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | dephell-archive-0.1.7 |
| نام | dephell-archive |
| نسخه کتابخانه | 0.1.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Gram |
| ایمیل نویسنده | gram@orsinium.dev |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/dephell-archive/ |
| مجوز | MIT |
# DepHell Archive
[](https://travis-ci.org/dephell/dephell_archive)
[](https://ci.appveyor.com/project/orsinium/dephell-archive)
[](https://github.com/dephell/dephell_archive/blob/master/LICENSE)
Module to work with files and directories in archive in [pathlib](https://docs.python.org/3/library/pathlib.html) style.
* **Goal:** provide the same interface as `pathlib.Path` for archives.
* **State:** partially implemented. Need to implement more methods.
## Installation
Install from [PyPI](https://pypi.org/project/dephell-archive/):
```bash
python3 -m pip install --user dephell_archive
```
## Usage
```python
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()
```
نیازمندی
| مقدار | نام |
|---|---|
| - | attrs |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl dephell-archive-0.1.7:
pip install dephell-archive-0.1.7.whl
نصب پکیج tar.gz dephell-archive-0.1.7:
pip install dephell-archive-0.1.7.tar.gz