Skip to main content

requests-raw

PyPI version Downloads PyPI - Python Version

Use requests to send HTTP raw sockets (To Test RFC Compliance)

Logo

Usage

Explicit

import json
import requests_raw

req = b"GET /get HTTP/1.1\r\nHost: httpbin.org\r\n\r\n"
res = requests_raw.raw(url='http://httpbin.org/', data=req)
res_json = res.json()
print(json.dumps(res_json, indent=2))

Implicit (monkey patch)

import json
import requests
import requests_raw
requests_raw.monkey_patch_all()

req = b"GET /cookies/set/name/value HTTP/1.1\r\nHost: httpbin.org\r\n\r\n"
session = requests.Session()
res = session.raw(url='https://httpbin.org/', data=req)
res_json = res.json()
print(json.dumps(res_json, indent=2))

Installation

Prerequisites

  • Python 3.7+
pip3 install requests-raw

Metadata

Release files for requests-raw 2.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for requests-raw 2.0.2
File Size Uploaded Provenance Actions
requests-raw-2.0.2.tar.gz 10.0 kB Without provenance Details for requests-raw-2.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for requests-raw 2.0.2
File Interpreter ABI Platform Actions
requests_raw-2.0.2-py2.py3-none-any.whl Python 3, Python 2 none any Details for requests_raw-2.0.2-py2.py3-none-any.whl

Total release size: 21.0 kB

Release files / requests-raw-2.0.2.tar.gz

Download URL requests-raw-2.0.2.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0524e53439d2272cf9e4d1c51a1919a5d1b43fb66f53168c7d6832f3fbd63a81
BLAKE2b-256 checksum
How to use checksums
5f5ee271acacef5b6941de75ae289fa8d57dea20169e81a8f19689cb4acd4b8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / requests_raw-2.0.2-py2.py3-none-any.whl

Download URL requests_raw-2.0.2-py2.py3-none-any.whl
Size 11.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b5fafdaa3a8fe833be306a18a5581d46d65d9a58b6fd25bed3b233e81e5af47a
BLAKE2b-256 checksum
How to use checksums
13efea9eb00de5156dc082f1307bca501d64bec5810583be0b8d0e7cf74df656
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.7

Security for requests-raw 2.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page