PY sample file
py_sample_file_1MB.py
1.0 MB
text/x-python
SHA256 verified
File details
Filename
py_sample_file_1MB.pySize1.0 MB (1048580 bytes)
MIME type
text/x-pythonExtension
.pySHA256
0961bfd90671e8891a0d51ff22e70f9e48233fce787acbdd9d79e2cbd55603e3Download commands
Use in scripts and tests
curl -L -o py_sample_file_1MB.py \
https://samplefile.com/samples/download/code/py/py_sample_file_1MB.py/
wget -O py_sample_file_1MB.py \
https://samplefile.com/samples/download/code/py/py_sample_file_1MB.py/
import requests
url = "https://samplefile.com/samples/download/code/py/py_sample_file_1MB.py/"
resp = requests.get(url)
with open("py_sample_file_1MB.py", "wb") as f:
f.write(resp.content)
const resp = await fetch("https://samplefile.com/samples/download/code/py/py_sample_file_1MB.py/");
const buf = Buffer.from(await resp.arrayBuffer());
require("fs").writeFileSync("py_sample_file_1MB.py", buf);
# Download and verify SHA256
curl -L -o py_sample_file_1MB.py https://samplefile.com/samples/download/code/py/py_sample_file_1MB.py/
echo "0961bfd90671e8891a0d51ff22e70f9e48233fce787acbdd9d79e2cbd55603e3 py_sample_file_1MB.py" | shasum -a 256 -c
# Python
import hashlib, requests
data = requests.get("https://samplefile.com/samples/download/code/py/py_sample_file_1MB.py/").content
assert hashlib.sha256(data).hexdigest() == "0961bfd90671e8891a0d51ff22e70f9e48233fce787acbdd9d79e2cbd55603e3"
More PY files
Other PY Sample Files
| Filename | Size | SHA256 | Download |
|---|---|---|---|
py_sample_file_200KB.py |
200.1 KB | 04e8b9649f1e57f3… |
Download |
py_sample_file_2MB.py |
2.0 MB | 32b2109f1beb1c1b… |
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