{ "info": { "author": "David Hamann", "author_email": "dh@davidhamann.de", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.6" ], "description": "# WTSize\n\nOn the road with a limited data plan or bad network and want to know if it's safe to download a particular remote file? WTSize (what the size) is a small Python 3 CLI app which checks the size of remote files without downloading them (by looking at the Content-Length header).\n\n```\n>>> wtsize https://site.tld/some_big_file.zip\n822.24 MiB\n```\n\n## Usage\n\n```\nwtsize URL\nwtsize URL [--unit=MiB]\nwtsize -h | --help\nwtsize --version\n```\n\n## Install\n\n```\npip install wtsize\n```\n\n## Limitations\n\n- Not all servers return a Content-Length header so you might be unable to get the actual file size without, well, downloading the file. `wtsize` will tell you if that's the case.\n- In some cases the Content-Length cannot be known before accessing the body (dynamic content)\n- Headers can easily be spoofed. Generally, though, there's a good chance that the Content-Length header in the server response is accurate.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/davidhamann/wtsize", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "wtsize", "package_url": "https://pypi.org/project/wtsize/", "platform": "", "project_url": "https://pypi.org/project/wtsize/", "project_urls": { "Homepage": "https://github.com/davidhamann/wtsize" }, "release_url": "https://pypi.org/project/wtsize/0.1.0/", "requires_dist": [ "requests", "docopt" ], "requires_python": "", "summary": "WTSize let's you check the size of a remote file without downloading it.", "version": "0.1.0" }, "last_serial": 3937524, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "53b930d05490f6d57ad88ba4aa6a6aae", "sha256": "fe4350a4180743fb85622052ae5a3c563788846ef1dc3b6a0b68b5227ed3bfd9" }, "downloads": -1, "filename": "wtsize-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "53b930d05490f6d57ad88ba4aa6a6aae", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3268, "upload_time": "2018-06-06T21:54:01", "url": "https://files.pythonhosted.org/packages/0f/56/c74b51616538e1dfa0b771b15e3ddd56d394aaeab66fe638ba30bbf48e4c/wtsize-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "23d2c3b234c9f10cd09bb107a709156a", "sha256": "32060cfc50ddf4720bb391ccfda07a38544cd343a8ba2da705fa4a08a7d83eff" }, "downloads": -1, "filename": "wtsize-0.1.0.tar.gz", "has_sig": false, "md5_digest": "23d2c3b234c9f10cd09bb107a709156a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2545, "upload_time": "2018-06-06T21:54:02", "url": "https://files.pythonhosted.org/packages/a1/ca/6bcf2b2c046aaed658193e2b9cd9de7f13fd73a7c6320c7ee28360244ba3/wtsize-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "53b930d05490f6d57ad88ba4aa6a6aae", "sha256": "fe4350a4180743fb85622052ae5a3c563788846ef1dc3b6a0b68b5227ed3bfd9" }, "downloads": -1, "filename": "wtsize-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "53b930d05490f6d57ad88ba4aa6a6aae", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3268, "upload_time": "2018-06-06T21:54:01", "url": "https://files.pythonhosted.org/packages/0f/56/c74b51616538e1dfa0b771b15e3ddd56d394aaeab66fe638ba30bbf48e4c/wtsize-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "23d2c3b234c9f10cd09bb107a709156a", "sha256": "32060cfc50ddf4720bb391ccfda07a38544cd343a8ba2da705fa4a08a7d83eff" }, "downloads": -1, "filename": "wtsize-0.1.0.tar.gz", "has_sig": false, "md5_digest": "23d2c3b234c9f10cd09bb107a709156a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2545, "upload_time": "2018-06-06T21:54:02", "url": "https://files.pythonhosted.org/packages/a1/ca/6bcf2b2c046aaed658193e2b9cd9de7f13fd73a7c6320c7ee28360244ba3/wtsize-0.1.0.tar.gz" } ] }