Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plz_get-0.1.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

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

Hashes for plz_get-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d79bd43be5fced9332bb3e3f145c927680a58ac92763d2bc23aa14d2108fd13b
MD5 f369e55a02c9274aefa920e323aa2973
BLAKE2b-256 99f3316c47b8dc3bc5df754f928cfc39fe10e15fb098bfcce1980f42c79c421a

See more details on using hashes here.

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

Hashes for plz_get-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3306f41fce53a7ae5691e1eebe12feb8984290380de0d3458bc6a67bc12941fe
MD5 b814046c6fc0ab1a4417a1d3b37a3f71
BLAKE2b-256 bd1d11447cdde44c9b5fe1439511fdc51fefb7d834b54a2d632a3d89aa986753

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page