Skip to main content

pathlib for archives

Project description

travis appveyor MIT License

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.5.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

dephell_archive-0.1.5-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file dephell-archive-0.1.5.tar.gz.

File metadata

  • Download URL: dephell-archive-0.1.5.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0

File hashes

Hashes for dephell-archive-0.1.5.tar.gz
Algorithm Hash digest
SHA256 d1cff5a962cb7b5862aaddfef4d1ec77684ee69652ba3d75612c7e4bb9c7bb39
MD5 52f8e7fae8b3b9328a696d9e37a0fa1c
BLAKE2b-256 34c9c8a6d60644432a6408385a9e58337b77eb0dab54665f68a0046c6f4ce763

See more details on using hashes here.

File details

Details for the file dephell_archive-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: dephell_archive-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 6.3 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/40.8.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0

File hashes

Hashes for dephell_archive-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fe526ef20a117609f9abd656f490bac1140a05b5a367c6a194e6bbd3690de7df
MD5 d6a3d145a4767fe017b73fe14ebfa906
BLAKE2b-256 812af3f3c038e636e400cfe5d948e45e9989fe7b807db3f6fb5855f1e565fe99

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page