Skip to main content

Fast GET/POST HTTP Request

Project description

XRZZ {GET / POST} HTTP Request

Description

 Just a simple module for HTTP Request 

 supports : {

 	 1: GET,
 	 2: POST (next release)

 }

Todo

Accept Cookies
Persistent Connection to server
Auto Encode url 
proxy support
Auto Redirect facility
POST; PUT; PATCH; TRACE; CONNECT
optimization needed

Supports

GET
1x better than Httpx

Installation

till now it doesn't need any external modules

pip install xrzz

Usage

import xrzz

a = xrzz.http("get", 
		url="https://httpbin.org/get", 
		headers={"user-agent": "Xrzz/v1"},
		tls=True)
print(a.body())


# output (Bytes)

		b'{\n"args": {},\n"headers": {\n"Host": "httpbin.org",\n "User-Agent": "Xrzz/v1", \n
		"X-Amzn-Trace-Id": "Root=1-606b416e-79346cf934ed2d6f4aa2cbf7"\n  },\n  "origin": "45.103.157.9", \n 
		"url": "https://httpbin.org/get"\n}\n'

		Usually it returns in bytes 

# output (decoded)

		{
		  "args": {},
		  "headers": {
		    "Host": "httpbin.org",
		    "User-Agent": "Xrzz/v1",
		    "X-Amzn-Trace-Id": "Root=1-606b416e-79346cf934ed2d6f4aa2cbf7"
		  },
		  "origin": "45.103.157.9",
		  "url": "https://httpbin.org/get"
		}


print(a.head() 

# output (dict)

		{
			'Date': 'Mon, 05 Apr 2021 17:06:13 GMT', 
			'Content-Type': 'application/json', 
			'Content-Length': '242', 
			'Connection': 'close', 
			'Server': 'gunicorn/19.9.0', 
			'Access-Control-Allow-Origin': '*', 
			'Access-Control-Allow-Credentials': 'true'
		}

Version

 v0.1.3

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

xrzz-0.1.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

xrzz-0.1.3-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file xrzz-0.1.3.tar.gz.

File metadata

  • Download URL: xrzz-0.1.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for xrzz-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6bd29c99ba0a8f1c94313e3252d9fbd9cdaf83aa69009c12dfee6ce19a273046
MD5 e29b16c6bfc775777f0d9fd4ab1a03fe
BLAKE2b-256 c86b4ad595ec6079e1146e68972013f96b95abcf4902e608fac634108687efda

See more details on using hashes here.

File details

Details for the file xrzz-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: xrzz-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for xrzz-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 02926a60feef1b3f8f28aeeb96900dcf8f721d91335d2bb390a56b2a502fbb56
MD5 94e78a0fe94ebd5f9f3cec2d22b37a1a
BLAKE2b-256 6c0b3fa767350a8635518afb553dc60165e09e63a7387c83c4946f49285aabe6

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