Skip to main content

pathlib for archives

Project description

DepHell Archive

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

Uploaded Source

Built Distribution

dephell_archive-0.1.7-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dephell-archive-0.1.7.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: DepHell/0.8.3

File hashes

Hashes for dephell-archive-0.1.7.tar.gz
Algorithm Hash digest
SHA256 bb263492a7d430f9e04cef9a0237b7752cc797ab364bf35e70196af09c73ea37
MD5 0f08f720f0747606c20cefc0441026a3
BLAKE2b-256 32edc433e5d87456fe943732e8c3c2db43c258044337ded234c4dc5dca53dcc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dephell_archive-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 64a688dd8acb780f7d56cdae4622fa01d1e5910fd65788974b3f70fa9a1e517a
MD5 b04b9af1d85f65c21ecb11f8b78d020d
BLAKE2b-256 b3465a34ec59cbe1ad0d0575111cfac1b198eaf303656538ff31799765c725b7

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