PY sample file
py_sample_file_2MB.py
2.0 MB
text/x-python
SHA256 verified
File details
Filename
py_sample_file_2MB.pySize2.0 MB (2097195 bytes)
MIME type
text/x-pythonExtension
.pySHA256
32b2109f1beb1c1bbf2468644cf683f759e446332959c65d6fc017283e6ddef0Download commands
Use in scripts and tests
curl -L -o py_sample_file_2MB.py \
https://samplefile.com/samples/download/code/py/py_sample_file_2MB.py/
wget -O py_sample_file_2MB.py \
https://samplefile.com/samples/download/code/py/py_sample_file_2MB.py/
import requests
url = "https://samplefile.com/samples/download/code/py/py_sample_file_2MB.py/"
resp = requests.get(url)
with open("py_sample_file_2MB.py", "wb") as f:
f.write(resp.content)
const resp = await fetch("https://samplefile.com/samples/download/code/py/py_sample_file_2MB.py/");
const buf = Buffer.from(await resp.arrayBuffer());
require("fs").writeFileSync("py_sample_file_2MB.py", buf);
# Download and verify SHA256
curl -L -o py_sample_file_2MB.py https://samplefile.com/samples/download/code/py/py_sample_file_2MB.py/
echo "32b2109f1beb1c1bbf2468644cf683f759e446332959c65d6fc017283e6ddef0 py_sample_file_2MB.py" | shasum -a 256 -c
# Python
import hashlib, requests
data = requests.get("https://samplefile.com/samples/download/code/py/py_sample_file_2MB.py/").content
assert hashlib.sha256(data).hexdigest() == "32b2109f1beb1c1bbf2468644cf683f759e446332959c65d6fc017283e6ddef0"
More PY files
Other PY Sample Files
| Filename | Size | SHA256 | Download |
|---|---|---|---|
py_sample_file_1MB.py |
1.0 MB | 0961bfd90671e889… |
Download |
py_sample_file_200KB.py |
200.1 KB | 04e8b9649f1e57f3… |
Download |
py_sample_file_500KB.py |
500.1 KB | 3f286a093c630a17… |
Download |
py_sample_file_50KB.py |
50.0 KB | 966c08191c8e16c1… |
Download |
py_sample_file_5MB.py |
5.0 MB | 98db380e530ffc90… |
Download |
Learn more