Skip to main content

Lofor - A reverse proxy for development

Lofor is a lightweight development server which acts as reverse proxy to solve your cors header problems.

CORS is a common problem faced when developing frontend and backend separated projects.

During development, you may like to use a backend in localhost:7777/api/ and frontend in localhost:7777.

This becomes more complex when you use two different frameworks for backend and frontend.

How lofor solves the problem?

In lofor, you can map multiple hosts to single one.

Installation

pip install lofor

Forward command

lofor forward / http://localhost:5173 # Mapping to svelte dev server
lofor forward /api/ https://localhost:8000   # Mapping to django's dev server

# More examples
lofor forward api.localhost /api/ https://localhost:8000
lofor forward localhost http://localhost:3000

# You can also map to any real server
# lofor forward / https://example.com

Start lofor server

The server will be listening at http://localhost:7777

lofor start

To list lofor forwards

lofor list

Remove lofor forwards

lofor remove /api/

Metadata

Release files for lofor 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lofor 0.0.3
File Size Uploaded Provenance Actions
lofor-0.0.3.tar.gz 7.1 kB Without provenance Details for lofor-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lofor 0.0.3
File Interpreter ABI Platform Actions
lofor-0.0.3-py3-none-any.whl Python 3 none any Details for lofor-0.0.3-py3-none-any.whl

Total release size: 15.0 kB

Release files / lofor-0.0.3.tar.gz

Download URL lofor-0.0.3.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7c0ec1be8d70fbcd406bbbb4617e0d45f8bd1fe16689db7e0e7d07d26906796a
BLAKE2b-256 checksum
How to use checksums
8331c78c8699952cabe67eaa774326261e0c6d7780c68a96bb73591515d606f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / lofor-0.0.3-py3-none-any.whl

Download URL lofor-0.0.3-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
511374d66ac8f41b232e15c1f9a6e05368a214a2691adeac19fceec98f3a0ab4
BLAKE2b-256 checksum
How to use checksums
cf748f93ae80404cdc8709d3978d46402a9266d7c7d742c58a6a87ed377fe14e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for lofor 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page