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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dephell-archive-0.1.4.tar.gz
  • Upload date:
  • Size: 5.2 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.4.tar.gz
Algorithm Hash digest
SHA256 f80723bfc45472cdacd8dbc3f38b640ec1c61d1addb77a17208bdddc9a5b61b1
MD5 26f11807da70214cb34de735855124be
BLAKE2b-256 8c068851ac9867aa303e3f6cd172bfcf82ee1b724218d5f9b43a72fb300b3dca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dephell_archive-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a646e95fe9b13db76447732c285b5b734f46f66e9f9eabbaa019e14f14c3b938
MD5 82038b473054400c296689c16f5afbc5
BLAKE2b-256 e8f3b467e57fe488d86cb77b5e2a5abca7788d758f4878672d347fc49054a1a9

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