pyg-downloader


Namepyg-downloader JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/GrayHat12/pyg-downloader
Summarypython download manager
upload_time2023-03-12 17:07:48
maintainer
docs_urlNone
authorGrayHat12
requires_python>=3.6
license
keywords download manager downloader file downloader
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pyg-downloader

Uses multiple parallel connections to download a file.

## Testing
```bash
pytest
```

## Install
```bash
pip install pyg-downloader
```
**OR** if you want to show progress
```bash
pip install pyg-downloader[atpbar]
```

## Usage

### CLI
```bash
pyg-downloader https://download.samplelib.com/mp4/sample-15s.mp4 -o test.mp4 --max-connections 8 --progress
```

### To Download to disk
```py
from pyg_download_manager import DownloadManager

manager = DownloadManager(max_connections=8, show_progress=True)

# Download to disk and returns the path to the file
# destination_path is the path to the folder for download
# filename is the name of the file to save to. Default is the filename from url.
path = manager.download("https://download.samplelib.com/mp4/sample-15s.mp4", destination_path='./', filename=None)
```

### To Download to memory
```py
from pyg_download_manager import DownloadManager

manager = DownloadManager(max_connections=8, show_progress=True)

# Download data to an BytesIO object and returns the object
# task_name is used to log progress. Default is the filename from url.
data = manager.get("https://download.samplelib.com/mp4/sample-15s.mp4", task_name='Test Task')
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/GrayHat12/pyg-downloader",
    "name": "pyg-downloader",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "download manager downloader file downloader",
    "author": "GrayHat12",
    "author_email": "grayhathacks10@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/69/d3/7f408a0df4870871a30c454f40bd6d7125ad8bcd1842af53d06bd9f68aee/pyg-downloader-0.0.2.tar.gz",
    "platform": null,
    "description": "# pyg-downloader\n\nUses multiple parallel connections to download a file.\n\n## Testing\n```bash\npytest\n```\n\n## Install\n```bash\npip install pyg-downloader\n```\n**OR** if you want to show progress\n```bash\npip install pyg-downloader[atpbar]\n```\n\n## Usage\n\n### CLI\n```bash\npyg-downloader https://download.samplelib.com/mp4/sample-15s.mp4 -o test.mp4 --max-connections 8 --progress\n```\n\n### To Download to disk\n```py\nfrom pyg_download_manager import DownloadManager\n\nmanager = DownloadManager(max_connections=8, show_progress=True)\n\n# Download to disk and returns the path to the file\n# destination_path is the path to the folder for download\n# filename is the name of the file to save to. Default is the filename from url.\npath = manager.download(\"https://download.samplelib.com/mp4/sample-15s.mp4\", destination_path='./', filename=None)\n```\n\n### To Download to memory\n```py\nfrom pyg_download_manager import DownloadManager\n\nmanager = DownloadManager(max_connections=8, show_progress=True)\n\n# Download data to an BytesIO object and returns the object\n# task_name is used to log progress. Default is the filename from url.\ndata = manager.get(\"https://download.samplelib.com/mp4/sample-15s.mp4\", task_name='Test Task')\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "python download manager",
    "version": "0.0.2",
    "split_keywords": [
        "download",
        "manager",
        "downloader",
        "file",
        "downloader"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cf7bbd1016e3fe6ce81741952e6a0ad84a956dd552a94936d0796565738b925b",
                "md5": "4321e64a8b09efd35e888eb85d1fbcef",
                "sha256": "042cc8ffb8bdb74372e87057d303d6bf90f1fd223090c7efb7fcf5bb02125736"
            },
            "downloads": -1,
            "filename": "pyg_downloader-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4321e64a8b09efd35e888eb85d1fbcef",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 6219,
            "upload_time": "2023-03-12T17:07:46",
            "upload_time_iso_8601": "2023-03-12T17:07:46.999453Z",
            "url": "https://files.pythonhosted.org/packages/cf/7b/bd1016e3fe6ce81741952e6a0ad84a956dd552a94936d0796565738b925b/pyg_downloader-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "69d37f408a0df4870871a30c454f40bd6d7125ad8bcd1842af53d06bd9f68aee",
                "md5": "bb0585895824dc48403a90b7d02fc990",
                "sha256": "64b167cbcdd926d302f15881fcfbf874348057bc362e6e4953cb617f846ca4a8"
            },
            "downloads": -1,
            "filename": "pyg-downloader-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "bb0585895824dc48403a90b7d02fc990",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 5363,
            "upload_time": "2023-03-12T17:07:48",
            "upload_time_iso_8601": "2023-03-12T17:07:48.835342Z",
            "url": "https://files.pythonhosted.org/packages/69/d3/7f408a0df4870871a30c454f40bd6d7125ad8bcd1842af53d06bd9f68aee/pyg-downloader-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-12 17:07:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "GrayHat12",
    "github_project": "pyg-downloader",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "pyg-downloader"
}
        
Elapsed time: 0.04338s