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
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 Distributions
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 sf_vmeval_requests-0.2.0-py3-none-any.whl.
File metadata
- Download URL: sf_vmeval_requests-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d168dd852f5ab1bc408f9577e95f8fda5694db3c7480c95c91b8f8a000e8d275
|
|
| MD5 |
0b1bc70fe2c3b977a387c0f8ca616e7d
|
|
| BLAKE2b-256 |
87a1c8f124419233769b2df3acb55a7679a10b73e705363b7c7a84274e40f867
|