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

- [x] GET
- [x] 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

| Version |          |
| ------- |----------|
| v0.1.0  |  - [x]   |

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.1.tar.gz (4.0 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.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xrzz-0.1.1.tar.gz
  • Upload date:
  • Size: 4.0 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.1.tar.gz
Algorithm Hash digest
SHA256 313e62d3d7bcfbef8e15f72e9e4f755093aeee981a4d71753a1435198ae93705
MD5 77b5b12c7f52844b4f2f0277fad7f078
BLAKE2b-256 73e42e36b8f557a62e2ec51fc18b9738765b02d03c08ad714e29fdcd116654da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xrzz-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 81b0f83c28cdbaee37f9b9b7cc8d3ea73179c94eac845e766aedd2b72dec7aee
MD5 48386f199eae135ba3e19dc0908cd81f
BLAKE2b-256 88a3b7453751b91480d439fc481e196c45e62e135567261a2f29b6c638f5a7eb

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