Port library of proxy-www in npm (https://github.com/justjavac/proxy-www)
Project description
proxy-www.py
Python port of proxy-www (https://github.com/justjavac/proxy-www). Just purpose of practicing python metaclass and magic method overriding. I don't think this is practical... but it's fun :rofl:
Example
from proxy_www import www, http, https
async def some_func():
resp = await www.github.com # Basic proxy_www request
http_resp = await http.github.com # insecure proxy_www request using http
https_resp = await https.github.com # secure proxy_www request using http
secure_resp = await www.github.com.secure() # secure request with www.secure()
insecure_resp = await www.github.com.insecure() # insecure request with www.insecure()
req = www.github.com
print(req.is_secure) # boolean property indicating proxy_www request object is whether secure(https) or not (http).
path_resp = await www.github.com / 'Lapis0875' # ClassProxy objects (www, http, https) can append paths on url using '/' operator.
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
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for proxy_www-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4219cc4079fec19536dfdf033d1c531c8581c06783fbd04fa5dc98e89d83947a |
|
MD5 | c9ce017c5f837f7262b0274f5901a679 |
|
BLAKE2b-256 | 9145283e51e14579fbe41c0e98e38430946a94141d4be11ab397ab750e5c8994 |