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

Uploaded Source

Built Distribution

dephell_archive-0.1.3-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file dephell_archive-0.1.3.tar.gz.

File metadata

  • Download URL: dephell_archive-0.1.3.tar.gz
  • Upload date:
  • Size: 4.4 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.3.tar.gz
Algorithm Hash digest
SHA256 48f4fc1943b190cf1f2a6aa044fbc3cef03a789ccbd7cceb9f0ee212f805b48c
MD5 2a61ca4e633431d967584a7804602704
BLAKE2b-256 ad849b015490fe13ed8338711d2f5cd2f9eb6f6c38b59dc9e40ecf7416c3958b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dephell_archive-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d20e24cad496d0a39a3f24f0b8d39244120bf024b7db495c4286a940ea02c66c
MD5 0cdd441a5f6486370dcd2be40ae026f9
BLAKE2b-256 e81fc3e34f2d7686ed3f8c6b7803d9168ab2fdaceb1efd6fc468e75d562779e8

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