Skip to main content

qaviton proxy

Project description

Qaviton Proxy

logo
version 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

Built Distribution

qaviton_proxy-2019.9.26.18.36.49.804439-py2.py3-none-any.whl (6.7 kB view hashes)

Uploaded Python 2 Python 3

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