Skip to main content

WTSize

On 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).

>>> wtsize https://site.tld/some_big_file.zip
822.24 MiB

Usage

wtsize URL
wtsize URL [--unit=MiB]
wtsize -h | --help
wtsize --version

Install

pip install wtsize

Limitations

  • 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.
  • In some cases the Content-Length cannot be known before accessing the body (dynamic content)
  • Headers can easily be spoofed. Generally, though, there's a good chance that the Content-Length header in the server response is accurate.

Metadata

Release files for wtsize 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wtsize 0.1.0
File Size Uploaded Provenance Actions
wtsize-0.1.0.tar.gz 2.5 kB Without provenance Details for wtsize-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wtsize 0.1.0
File Interpreter ABI Platform Actions
wtsize-0.1.0-py3-none-any.whl Python 3 none any Details for wtsize-0.1.0-py3-none-any.whl

Total release size: 5.8 kB

Release files / wtsize-0.1.0.tar.gz

Download URL wtsize-0.1.0.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
32060cfc50ddf4720bb391ccfda07a38544cd343a8ba2da705fa4a08a7d83eff
BLAKE2b-256 checksum
How to use checksums
a1ca6bcf2b2c046aaed658193e2b9cd9de7f13fd73a7c6320c7ee28360244ba3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / wtsize-0.1.0-py3-none-any.whl

Download URL wtsize-0.1.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe4350a4180743fb85622052ae5a3c563788846ef1dc3b6a0b68b5227ed3bfd9
BLAKE2b-256 checksum
How to use checksums
0f56c74b51616538e1dfa0b771b15e3ddd56d394aaeab66fe638ba30bbf48e4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for wtsize 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page