Skip to main content

Python package utilizing Cloudflare Workers to proxy requests

Project description

cf_proxy

Python package utilizing Cloudflare Workers to proxy requests

Prerequisites

  • Python 3.8+
  • Node.js
  • Cloudflare account (100k request/day free)

Setup (Cloudflare)

  1. Deploy the Cloudflare worker

    cd worker
    npx wrangler@latest deploy
    
  2. Grab your worker URL After successful deployment, Wrangler will output your worker URL. It will look like:

    https://cf_proxy.<username>.workers.dev
    

Getting Started

  1. Install the package

    pip install cf-proxy
    
  2. Run an example

    pip install httpx
    cd example
    python sync_example.py
    

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

cf_proxy-0.2.0.tar.gz (35.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cf_proxy-0.2.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file cf_proxy-0.2.0.tar.gz.

File metadata

  • Download URL: cf_proxy-0.2.0.tar.gz
  • Upload date:
  • Size: 35.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for cf_proxy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b3e1a9b72670b21db1cf7e4ee2cd6f06981b73660de3e3f12a9a2c75df954518
MD5 ffb196d8b816881d20c21cea29566d9d
BLAKE2b-256 e9882555d0eda8540b3745aef76b4fc509893a6b268bf14fd12c7a48629eda88

See more details on using hashes here.

File details

Details for the file cf_proxy-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: cf_proxy-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for cf_proxy-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 815a6e631db17435df6e98db848fdf4e5c316d997a14c1d6693b0d8963cc6855
MD5 8cc2d26ee1e0ae348a6c5f74413bb548
BLAKE2b-256 bcadd6bef5c7a1e056cde732ecd67a64ae2ff4d02895981865c610194e136766

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