Skip to main content

A simple, clean library for making HTTP requests — no dependencies needed.

This project has been quarantined.

PyPI Admins need to review this project before it can be restored. While in quarantine, the project is not installable by clients, and cannot be being modified by its maintainers.

Read more in the project in quarantine help article.

Project description

easyrequests

A simple, lightweight Python library for making HTTP requests — with zero external dependencies.

Installation

pip install easyrequests

Usage

import easyrequests

# GET request
response = easyrequests.get("https://api.example.com/users")
print(response.status)       # 200
print(response.text)         # raw text body
print(response.json())       # parsed JSON

# GET with query params
response = easyrequests.get("https://api.example.com/search", params={"q": "python"})

# POST with JSON body
response = easyrequests.post("https://api.example.com/users", json={"name": "Alice"})

# Custom headers
response = easyrequests.get(
    "https://api.example.com/private",
    headers={"Authorization": "Bearer YOUR_TOKEN"}
)

# PUT, PATCH, DELETE
easyrequests.put("https://api.example.com/users/1", json={"name": "Bob"})
easyrequests.patch("https://api.example.com/users/1", json={"name": "Charlie"})
easyrequests.delete("https://api.example.com/users/1")

Response Object

Property / Method Description
.status HTTP status code (e.g. 200)
.text Response body as a string
.content Response body as raw bytes
.json() Parse response body as JSON
.headers Response headers as a dict
.url Final URL after any redirects

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

sf_vmeval_requests-0.2.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file sf_vmeval_requests-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sf_vmeval_requests-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d168dd852f5ab1bc408f9577e95f8fda5694db3c7480c95c91b8f8a000e8d275
MD5 0b1bc70fe2c3b977a387c0f8ca616e7d
BLAKE2b-256 87a1c8f124419233769b2df3acb55a7679a10b73e705363b7c7a84274e40f867

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