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

Uploaded Source

Built Distribution

dephell_archive-0.1.6-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dephell-archive-0.1.6.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for dephell-archive-0.1.6.tar.gz
Algorithm Hash digest
SHA256 6370a97233d0e4c536b415b88e5d08bc5acf98b2019d878b5b222d2ab34ebebf
MD5 35f5afcd026bd04b32dbfcb0579359bb
BLAKE2b-256 b5beb24c35166f9f7d0ed1b800c0ee22e5ca0d2f00065eece2e19c46dbe825ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dephell_archive-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for dephell_archive-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 bfecd071dd2e8c24b19586ff40b14c6d7b8751f20e6a608a66cc58e9f8234e75
MD5 fb9ec85143b30bbaa2d11ed6a90c8884
BLAKE2b-256 c8de23797df92fc47032a6a638892649866a83a99bc27fefd9e2a1a70d2bb292

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