Minimal HTTP fetch — one function, stdlib only.
Project description
plz-get
Single-purpose package: fetch. Thin urllib.request wrapper; no extra dependencies.
Install
pip install .
Usage
from plz-get import fetch
body = fetch("https://example.com")
print(body.status, body.text())
# Optional: method, headers, body bytes, timeout
body = fetch(
"https://httpbin.org/post",
method="POST",
headers={"Content-Type": "application/json"},
data=b'{"hello":"world"}',
timeout=10.0,
)
Public API: fetch only (see plz-get.__all__).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
plz_get-0.1.0.tar.gz
(2.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file plz_get-0.1.0.tar.gz.
File metadata
- Download URL: plz_get-0.1.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d79bd43be5fced9332bb3e3f145c927680a58ac92763d2bc23aa14d2108fd13b
|
|
| MD5 |
f369e55a02c9274aefa920e323aa2973
|
|
| BLAKE2b-256 |
99f3316c47b8dc3bc5df754f928cfc39fe10e15fb098bfcce1980f42c79c421a
|
File details
Details for the file plz_get-0.1.0-py3-none-any.whl.
File metadata
- Download URL: plz_get-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3306f41fce53a7ae5691e1eebe12feb8984290380de0d3458bc6a67bc12941fe
|
|
| MD5 |
b814046c6fc0ab1a4417a1d3b37a3f71
|
|
| BLAKE2b-256 |
bd1d11447cdde44c9b5fe1439511fdc51fefb7d834b54a2d632a3d89aa986753
|