PY sample file
py_sample_file_50KB.py
50.0 KB
text/x-python
SHA256 verified
File details
Filename
py_sample_file_50KB.pySize50.0 KB (51220 bytes)
MIME type
text/x-pythonExtension
.pySHA256
966c08191c8e16c16de4a323f2f694c958f25550cf8fd300ce91d710217121a7Download commands
Use in scripts and tests
curl -L -o py_sample_file_50KB.py \
https://samplefile.com/samples/download/code/py/py_sample_file_50KB.py/
wget -O py_sample_file_50KB.py \
https://samplefile.com/samples/download/code/py/py_sample_file_50KB.py/
import requests
url = "https://samplefile.com/samples/download/code/py/py_sample_file_50KB.py/"
resp = requests.get(url)
with open("py_sample_file_50KB.py", "wb") as f:
f.write(resp.content)
const resp = await fetch("https://samplefile.com/samples/download/code/py/py_sample_file_50KB.py/");
const buf = Buffer.from(await resp.arrayBuffer());
require("fs").writeFileSync("py_sample_file_50KB.py", buf);
# Download and verify SHA256
curl -L -o py_sample_file_50KB.py https://samplefile.com/samples/download/code/py/py_sample_file_50KB.py/
echo "966c08191c8e16c16de4a323f2f694c958f25550cf8fd300ce91d710217121a7 py_sample_file_50KB.py" | shasum -a 256 -c
# Python
import hashlib, requests
data = requests.get("https://samplefile.com/samples/download/code/py/py_sample_file_50KB.py/").content
assert hashlib.sha256(data).hexdigest() == "966c08191c8e16c16de4a323f2f694c958f25550cf8fd300ce91d710217121a7"
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_2MB.py |
2.0 MB | 32b2109f1beb1c1b… |
Download |
py_sample_file_500KB.py |
500.1 KB | 3f286a093c630a17… |
Download |
py_sample_file_5MB.py |
5.0 MB | 98db380e530ffc90… |
Download |
Learn more