unzip-http


Nameunzip-http JSON
Version 0.6 PyPI version JSON
download
home_pagehttps://github.com/saulpw/unzip-http
Summaryextract files from .zip files over http without downloading entire archive
upload_time2024-07-07 06:10:19
maintainerNone
docs_urlNone
authorSaul Pwanson
requires_python>=3.8
licenseNone
keywords http zip unzip
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # unzip-http

Extract individual files from .zip files over http without downloading the entire archive.

## Install

    pip install unzip-http

## Usage

    unzip_http [-l] [-f] [-o] <url> <filenames..>

Extract <filenames> from a remote .zip at `<url>` to stdout.

A filename can be a wildcard glob; all matching files are extracted in this case.

Specify multiple filenames as distinct arguments (separated with spaces on the command line).

Note: HTTP server must send `Accept-Ranges: bytes` and `Content-Length` in headers (most do).

Options:

- `-l`: List files in remote .zip file (default if no filenames given)
- `-f`: Recreate folder structure from .zip file when extracting (instead of extracting files to the current directly to the current directory)
- `-o`: Write files to stdout (if multiple files, concatenate them in zipfile order)

# Python module `unzip_http`

    import unzip_http

    rzf = unzip_http.RemoteZipFile('https://example.com/foo.zip')
    binfp = rzf.open('bar.bin')
    txtfp = rzf.open_text('baz.txt')

# Credits

`unzip-http` was written by [Saul Pwanson](https://saul.pw) and made available for use under the MIT License.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/saulpw/unzip-http",
    "name": "unzip-http",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "http zip unzip",
    "author": "Saul Pwanson",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/d4/c8/b4253fcf7015cc25e88be74608618abe4b260aca3e2dee96fa884eeb9a08/unzip-http-0.6.tar.gz",
    "platform": null,
    "description": "# unzip-http\n\nExtract individual files from .zip files over http without downloading the entire archive.\n\n## Install\n\n    pip install unzip-http\n\n## Usage\n\n    unzip_http [-l] [-f] [-o] <url> <filenames..>\n\nExtract <filenames> from a remote .zip at `<url>` to stdout.\n\nA filename can be a wildcard glob; all matching files are extracted in this case.\n\nSpecify multiple filenames as distinct arguments (separated with spaces on the command line).\n\nNote: HTTP server must send `Accept-Ranges: bytes` and `Content-Length` in headers (most do).\n\nOptions:\n\n- `-l`: List files in remote .zip file (default if no filenames given)\n- `-f`: Recreate folder structure from .zip file when extracting (instead of extracting files to the current directly to the current directory)\n- `-o`: Write files to stdout (if multiple files, concatenate them in zipfile order)\n\n# Python module `unzip_http`\n\n    import unzip_http\n\n    rzf = unzip_http.RemoteZipFile('https://example.com/foo.zip')\n    binfp = rzf.open('bar.bin')\n    txtfp = rzf.open_text('baz.txt')\n\n# Credits\n\n`unzip-http` was written by [Saul Pwanson](https://saul.pw) and made available for use under the MIT License.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "extract files from .zip files over http without downloading entire archive",
    "version": "0.6",
    "project_urls": {
        "Homepage": "https://github.com/saulpw/unzip-http"
    },
    "split_keywords": [
        "http",
        "zip",
        "unzip"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0c4b901d8ab397f89c2079526d8421e62c2fc6b0a78c0522001a59a3c9ddded4",
                "md5": "1978977a51f7045e68af30d54a391e5e",
                "sha256": "2e8049e659b2d212d9135b427cf793032b0c6dcb4f69b83a7e5b1008882d41e4"
            },
            "downloads": -1,
            "filename": "unzip_http-0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1978977a51f7045e68af30d54a391e5e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 13493,
            "upload_time": "2024-07-07T06:10:18",
            "upload_time_iso_8601": "2024-07-07T06:10:18.256585Z",
            "url": "https://files.pythonhosted.org/packages/0c/4b/901d8ab397f89c2079526d8421e62c2fc6b0a78c0522001a59a3c9ddded4/unzip_http-0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d4c8b4253fcf7015cc25e88be74608618abe4b260aca3e2dee96fa884eeb9a08",
                "md5": "e989313b0c879558d95e9a93d0f7fc73",
                "sha256": "4b9dc5bea5e38164fe45110115b10f287440edde8ecb4be661d1c612feb2b2c8"
            },
            "downloads": -1,
            "filename": "unzip-http-0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "e989313b0c879558d95e9a93d0f7fc73",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 6902,
            "upload_time": "2024-07-07T06:10:19",
            "upload_time_iso_8601": "2024-07-07T06:10:19.922078Z",
            "url": "https://files.pythonhosted.org/packages/d4/c8/b4253fcf7015cc25e88be74608618abe4b260aca3e2dee96fa884eeb9a08/unzip-http-0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-07 06:10:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "saulpw",
    "github_project": "unzip-http",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "unzip-http"
}
        
Elapsed time: 0.60321s