Skip to main content

Simple API proxy that uses Flask/requests/gunicorn.

Project description

Simple API proxy that uses Flask/requests/gunicorn.

Use cases

  • Centralize API requests - Sometimes only a specific IP can access APIs. Run Proxapy on that machine and access the API from everywhere.

  • Implement custom pre/post operation on API request/response - Fork the project, add routes and implement your changes. Common changes include content filtering, add authentication key header not known by the end user.

Usage

  1. Make sure you have virtualenv

  2. make run

  3. Visit http://<proxyhost>:<proxyport>/<API> to access http://<API>

By default <proxyhost> is bound to 0.0.0.0 and <proxyport> to 5000, so for example you could run Proxapy and then visit: http://localhost:5000/api.left-pad.io/?str=proxied&len=20

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

proxapy-0.1.5.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file proxapy-0.1.5.tar.gz.

File metadata

  • Download URL: proxapy-0.1.5.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for proxapy-0.1.5.tar.gz
Algorithm Hash digest
SHA256 221f040953c159ab11d82e00173527f241db58915cb799b251d212c3e6746431
MD5 0ce30a914bf1e14352d839b5c16a33b0
BLAKE2b-256 07891d1904328ce56722ac34c70be51d5158306a90f9c5f7d4668e2fccd1f5d8

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