Skip to main content

Add your description here

Project description

pyreqwests

Usage

Calling HTTP methods (get, post, put, patch, delete) creates a request to be sent. When user wants to actually send it, it should call "send()" and it will return a response object which has the headers and the body of the response.


Simple usage example:

import pyreqwests

r = rrequests.get("http://google.com", headers={"accept": "text/html"}).send()
print(r.text())

Raising for invalid status code

import rrequests

r = rrequests.post("http://google.com").send()
r.raise_for_status()

Checking response headers

import rrequests

r = rrequests.get("http://google.com").send()
print(r.headers)

Checking status code

import rrequests

r = rrequests.get("http://google.com").send()
print(r.status_code)

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

ruquests-0.1.0.tar.gz (17.1 kB view details)

Uploaded Source

Built Distributions

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

ruquests-0.1.0-cp312-none-win_amd64.whl (1.3 MB view details)

Uploaded CPython 3.12Windows x86-64

ruquests-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl (3.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

Details for the file ruquests-0.1.0.tar.gz.

File metadata

  • Download URL: ruquests-0.1.0.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.7.1

File hashes

Hashes for ruquests-0.1.0.tar.gz
Algorithm Hash digest
SHA256 284fbdcab000714219cd5876311e69de5b88bc312b675b0ee855889940211ef3
MD5 5a40b381c13af7df0920d902878c8886
BLAKE2b-256 f85de21d6f84e0d6f66ec30d840e0d7f070323a7b7d1943ca59356d753ad17f0

See more details on using hashes here.

File details

Details for the file ruquests-0.1.0-cp312-none-win_amd64.whl.

File metadata

  • Download URL: ruquests-0.1.0-cp312-none-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.7.1

File hashes

Hashes for ruquests-0.1.0-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 fbf6698ffa4ef575c24d8ea4d5e361fad369cbbee6be3788bd2f77c3c32f1131
MD5 c72fcc8d909108c2ea14885fa84724cb
BLAKE2b-256 2f5d357568ed977ad57a29fb75dbce0866d906d2d1c94ffd756fbadd498b7c19

See more details on using hashes here.

File details

Details for the file ruquests-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for ruquests-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 f431bb1260db4cb37157c496d31007418f3b7e02e6f44c083510939f301591d3
MD5 eecbaee305cce66ab6fdba2502803ec0
BLAKE2b-256 3ce94588f79097f3f41828e41055d21268fd3035df1b1907fe262b8f16cd91f4

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