dephell-archive


Namedephell-archive JSON
Version 0.1.7 PyPI version JSON
download
home_page
Summarypathlib for archives
upload_time2020-05-30 14:55:54
maintainer
docs_urlNone
authorGram
requires_python>=3.6
licenseMIT
keywords dephell pathlib archive tar zip wheel sdist
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # DepHell Archive

[![travis](https://travis-ci.org/dephell/dephell_archive.svg?branch=master)](https://travis-ci.org/dephell/dephell_archive)
[![appveyor](https://ci.appveyor.com/api/projects/status/github/dephell/dephell_archive?svg=true)](https://ci.appveyor.com/project/orsinium/dephell-archive)
[![MIT License](https://img.shields.io/pypi/l/dephell-archive.svg)](https://github.com/dephell/dephell_archive/blob/master/LICENSE)

Module to work with files and directories in archive in [pathlib](https://docs.python.org/3/library/pathlib.html) style.

* **Goal:** provide the same interface as `pathlib.Path` for archives.
* **State:** partially implemented. Need to implement more methods.

## Installation

Install from [PyPI](https://pypi.org/project/dephell-archive/):

```bash
python3 -m pip install --user dephell_archive
```

## Usage

```python
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()
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "dephell-archive",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "dephell,pathlib,archive,tar,zip,wheel,sdist",
    "author": "Gram",
    "author_email": "gram@orsinium.dev",
    "download_url": "https://files.pythonhosted.org/packages/32/ed/c433e5d87456fe943732e8c3c2db43c258044337ded234c4dc5dca53dcc7/dephell-archive-0.1.7.tar.gz",
    "platform": "None",
    "description": "# DepHell Archive\n\n[![travis](https://travis-ci.org/dephell/dephell_archive.svg?branch=master)](https://travis-ci.org/dephell/dephell_archive)\n[![appveyor](https://ci.appveyor.com/api/projects/status/github/dephell/dephell_archive?svg=true)](https://ci.appveyor.com/project/orsinium/dephell-archive)\n[![MIT License](https://img.shields.io/pypi/l/dephell-archive.svg)](https://github.com/dephell/dephell_archive/blob/master/LICENSE)\n\nModule to work with files and directories in archive in [pathlib](https://docs.python.org/3/library/pathlib.html) style.\n\n* **Goal:** provide the same interface as `pathlib.Path` for archives.\n* **State:** partially implemented. Need to implement more methods.\n\n## Installation\n\nInstall from [PyPI](https://pypi.org/project/dephell-archive/):\n\n```bash\npython3 -m pip install --user dephell_archive\n```\n\n## Usage\n\n```python\nfrom pathlib import Path\nfrom tempfile import TemporaryDirectory\n\nfrom dephell_archive import ArchivePath\n\nwith TemporaryDirectory() as cache:\n  path = ArchivePath(\n    archive_path=Path('tests', 'requirements', 'wheel.whl'),\n    cache_path=Path(cache),\n  )\n  subpath = path / 'dephell' / '__init__.py'\n  with subpath.open() as stream:\n    content = stream.read()\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "pathlib for archives",
    "version": "0.1.7",
    "project_urls": {
        "Repository": "https://github.com/dephell/dephell_archive"
    },
    "split_keywords": [
        "dephell",
        "pathlib",
        "archive",
        "tar",
        "zip",
        "wheel",
        "sdist"
    ],
    "urls": [
        {
            "comment_text": "None",
            "digests": {
                "blake2b_256": "b3465a34ec59cbe1ad0d0575111cfac1b198eaf303656538ff31799765c725b7",
                "md5": "b04b9af1d85f65c21ecb11f8b78d020d",
                "sha256": "64a688dd8acb780f7d56cdae4622fa01d1e5910fd65788974b3f70fa9a1e517a"
            },
            "downloads": -1,
            "filename": "dephell_archive-0.1.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b04b9af1d85f65c21ecb11f8b78d020d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 7961,
            "upload_time": "2020-05-30T14:55:56",
            "upload_time_iso_8601": "2020-05-30T14:55:56.270934Z",
            "url": "https://files.pythonhosted.org/packages/b3/46/5a34ec59cbe1ad0d0575111cfac1b198eaf303656538ff31799765c725b7/dephell_archive-0.1.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "None",
            "digests": {
                "blake2b_256": "32edc433e5d87456fe943732e8c3c2db43c258044337ded234c4dc5dca53dcc7",
                "md5": "0f08f720f0747606c20cefc0441026a3",
                "sha256": "bb263492a7d430f9e04cef9a0237b7752cc797ab364bf35e70196af09c73ea37"
            },
            "downloads": -1,
            "filename": "dephell-archive-0.1.7.tar.gz",
            "has_sig": false,
            "md5_digest": "0f08f720f0747606c20cefc0441026a3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 6475,
            "upload_time": "2020-05-30T14:55:54",
            "upload_time_iso_8601": "2020-05-30T14:55:54.625300Z",
            "url": "https://files.pythonhosted.org/packages/32/ed/c433e5d87456fe943732e8c3c2db43c258044337ded234c4dc5dca53dcc7/dephell-archive-0.1.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-05-30 14:55:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dephell",
    "github_project": "dephell_archive",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "appveyor": true,
    "lcname": "dephell-archive"
}
        
Elapsed time: 0.25034s