Skip to main content

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). Implemented additional functionalities!

How to install

pip install proxy-www

Example

from proxy_www import www, http, https, GET

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.


    # New in 1.1.0 : HTTP methods with [], request parameters with ()
    # Syntax : (www,http,https)[HTTPMethod or str](*args, **kwargs)
    # Example :
    get_req = await (https.api.koreanbots.dev / 'v1/bots/get/541645954256863252')[GET](
        headers={"content-type": "application/json"}
    )
    print(await resp.json())

Project details


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

proxy_www-1.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file proxy_www-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: proxy_www-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.7

File hashes

Hashes for proxy_www-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 39b98dd6147fcb7e0e49c96e4e885cf1cd538afaaf43ef4334c24c195c99820f
MD5 89f290ab616d53f4a5b90e3f57bc6f49
BLAKE2b-256 86dd8a60dbc24574297914a0245ee711888eebc656735b0ec890d11026e12cef

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page