Skip to main content

qaviton proxy

Project description

Qaviton Proxy

logo
version license open issues downloads code size

Proxy functionality, developed for flask applications.

Installation

pip install --upgrade qaviton_proxy  

Requirements

  • Python 3.6+

Features

  • proxy requests ✓

Usage

creating a flask app

# app.py
from flask import Flask
from qaviton_proxy import proxy

app = Flask(__name__)

@app.route("/prox", methods=['GET'])
def client_session():
    return proxy('https://proxied.com')

app.run(port=3000)

run the app

python app.py

send request to app

import requests
response = requests.get('localhost:3000/prox')  # send request to app
print(response.json())  # got response from 'localhost:3000/prox' which proxied 'https://proxied.com'  

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

qaviton_proxy-2019.9.29.7.59.59.460885.tar.gz (2.2 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page