Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jakbin/flask-localtunnel
Run flask with localtunnel
https://github.com/jakbin/flask-localtunnel
expose-localhost flask flask-localtunnel flask-web hacktoberfest hacktoberfest2022 localtunnel localtunnel-client port-forwarding python
Last synced: 28 days ago
JSON representation
Run flask with localtunnel
- Host: GitHub
- URL: https://github.com/jakbin/flask-localtunnel
- Owner: jakbin
- License: other
- Created: 2021-11-26T09:45:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-27T15:52:50.000Z (8 months ago)
- Last Synced: 2024-04-28T15:52:17.186Z (8 months ago)
- Topics: expose-localhost, flask, flask-localtunnel, flask-web, hacktoberfest, hacktoberfest2022, localtunnel, localtunnel-client, port-forwarding, python
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 13
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flask-localtunnel
[![PyPI version](https://badge.fury.io/py/flask-localtunnel.svg)](https://badge.fury.io/py/flask-localtunnel)
[![Downloads](https://pepy.tech/badge/flask-localtunnel/month)](https://pepy.tech/project/flask-localtunnel)
[![Downloads](https://static.pepy.tech/personalized-badge/flask-localtunnel?period=total&units=international_system&left_color=green&right_color=blue&left_text=Total%20Downloads)](https://pepy.tech/project/flask-localtunnel)
![Python 3.6](https://img.shields.io/badge/python-3.6-yellow.svg)### This inspired from flask-ngrok
### Disclaimer:-
Use it only for educational purpose.A simple way to demo Flask apps from your machine.
Makes your [Flask](http://flask.pocoo.org/) apps running on localhost available
over the internet via the excellent [localtunnel](https://github.com/localtunnel/localtunnel) tool.## Compatability
Python 3.6+ is required.## Installation
```bash
pip install flask-localtunnel
```
### Inside Jupyter / Colab Notebooks```bash
!pip install flask
```## Quickstart
1. Import with ```from flask_localtunnel import run_with_lt```
2. Add `run_with_lt(app)` to make your Flask app available upon running
```python
# flask_ngrok_example.py
from flask import Flask
from flask_lt import run_with_ltapp = Flask(__name__)
run_with_lt(app)@app.route("/")
def hello():
return "Hello World!"if __name__ == '__main__':
app.run()
```
Running the example:
```bash
python flask_lt_example.py
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* localtunnel is alreadty installed.
* your url is: https://.loca.lt
```## Tutorial
[Watch Here](https://youtu.be/yaJoZjg9B5k)### Support my work :-
BTC - bc1qx2p08qtsxxdzj0yfr2cm7yy3g5ydv3mt2753le\
ETH - 0x40e69DaEC18cD199535b055BDA6582daa5978145### Contributer :-
- [@henk717](https://github.com/henk717)
- [@NobreHD](https://github.com/NobreHD) : subdomain support