{"id":21867849,"url":"https://github.com/jakbin/flask-ngrokpy","last_synced_at":"2026-02-14T11:02:15.714Z","repository":{"id":57430540,"uuid":"381572706","full_name":"jakbin/flask-ngrokpy","owner":"jakbin","description":"Run flask with ngrok","archived":false,"fork":false,"pushed_at":"2022-06-03T16:24:20.000Z","size":7,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-14T12:26:13.153Z","etag":null,"topics":["flask","flask-example","flask-ngrok","ngrok","port-forwarding","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jakbin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-30T04:16:50.000Z","updated_at":"2024-03-24T11:50:19.000Z","dependencies_parsed_at":"2022-08-26T03:51:14.584Z","dependency_job_id":null,"html_url":"https://github.com/jakbin/flask-ngrokpy","commit_stats":null,"previous_names":["jakbin/flask-ngrok-st"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jakbin/flask-ngrokpy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakbin%2Fflask-ngrokpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakbin%2Fflask-ngrokpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakbin%2Fflask-ngrokpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakbin%2Fflask-ngrokpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakbin","download_url":"https://codeload.github.com/jakbin/flask-ngrokpy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakbin%2Fflask-ngrokpy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29443445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T10:51:12.367Z","status":"ssl_error","status_checked_at":"2026-02-14T10:50:52.088Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","flask-example","flask-ngrok","ngrok","port-forwarding","python"],"created_at":"2024-11-28T05:10:49.505Z","updated_at":"2026-02-14T11:02:15.682Z","avatar_url":"https://github.com/jakbin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flask-ngrokpy\n[![Run it button](https://img.shields.io/badge/-run%20it%20now-brightgreen.svg?longCache=true\u0026style=for-the-badge\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAF96VFh0UmF3IHByb2ZpbGUgdHlwZSBBUFAxAAAImeNKT81LLcpMVigoyk/LzEnlUgADYxMuE0sTS6NEAwMDCwMIMDQwMDYEkkZAtjlUKNEABZiYm6UBoblZspkpiM8FAE+6FWgbLdiMAAAF4ElEQVRYhe2WS2xdVxWGv7X2Pvf6Ppw4dqMAKkFJDWmcpqSxS1RhYVxBZ0Wo0gVUQBmCIhBCnRAmhQl0QFGYIMEQlIAcFcQkiFfd9CHR2qalqZ2octzmVcd52YmN7+OcvReDe6/jxEkoHQASXZOjc/ZZ+1/Pfy14X/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ULjXJFGlaFXea9SfyBcJa7p5pGqwyjRMwkRgt005fDBoHAJjqS1ZrmKEiRPvzh3owPk69dZADop1UwV6kQDMFmWWUdDN/mNjXvsxsyNvokLfxZv4BLMQJYjs7JgTQfG4/gOyYatgIORvF2zgJh1tOyPwTlFv5B0gEnL5yyza0nt4YN9xV8ff89TervVk6tmdTkoSu3Oypcytt2OSYoB3meevtQ8SLe9s8vxKF0cK3wA6QxvYMy9pt2GTCPxWnyIXtVOtZ7Pmo0+5uQY3YyI4AR0CvEq0X1a8BuG1jH7QTD/yQno7vxPmsTox5mT0VxM07avkzqP0Kp6eJ1kUWP0eJT7DcLFqMjKIkLOtL8kh18DZUHBTkX1Px8d0zWvZbmJ6pU7+cx+UznHkKrdIRoGFQtWAiTrAMFY8puI775OH5yfc8jEizgeUOd6549szryNxGqvmU5gwBJWIIghFbPCAEcpJrzqb852V44Xc2ilcZPprZ6JB3A9OHqGYPx3o8qxuSnHY4J4o3aU0z8OrEa8kndDoy5NHSlrHz1M7vslrpOcokFMWh4ogohhBRRBx5cazTHA3OIPlPtcFlmOzfW0gyu4zEF2KUA8n28aM3LCR/KX0Js31YeJC8dKw0cM0M9Di4X1Lu+ok8dLa6ZiG52Yj2+5qVrFA9KR+580pmL27YTCPdQqwWcD4llGblM1emrmNcB7+lvPellDsvpaPccim9o5ihbUAbqbh3c4E9idoIzgzXev7X6f59+d+WfwIud1aCxWHYtAAAAABJRU5ErkJggg==)](https://colab.research.google.com/github/jakbin/flask-ngrokpy/blob/master/examples/flask_ngrok_example.ipynb)\n\n [![PyPI version](https://badge.fury.io/py/flask-ngrokpy.svg)](https://badge.fury.io/py/flask-ngrokpy)\n [![Downloads](https://pepy.tech/badge/flask-ngrokpy/month)](https://pepy.tech/project/flask-ngrokpy)\n [![Downloads](https://static.pepy.tech/personalized-badge/flask-ngrokpy?period=total\u0026units=international_system\u0026left_color=green\u0026right_color=blue\u0026left_text=Total%20Downloads)](https://pepy.tech/project/flask-ngrokpy)\n ![Python 3.6](https://img.shields.io/badge/python-3.6-yellow.svg)\n\n### This inspired from flask-ngrok\n\n## Important :-\nSome time, flask-ngrok need root or sudo permission. so , if you are a non-root user, you can't use it.\n\nAnd flask-ngrok download ngrok in temp directory (/tmp in linux) so if you run it after shutdown or restart, its download ngrok every time.\n\n**In flask-ngrokpy both problems are fixed.**\n\n### Disclaimer:-\nUse it only for educational purpose.\n\n\nA simple way to demo Flask apps from your machine.\nMakes your [Flask](http://flask.pocoo.org/) apps running on localhost available\n over the internet via the excellent [ngrok](https://ngrok.com/) tool.\n\n## Compatability\nPython 3.6+ is required.\n\n## Installation\n\n```bash\npip install flask-ngrokpy\n```\n### Inside Jupyter / Colab Notebooks\nNotebooks have [an issue](https://stackoverflow.com/questions/51180917/python-flask-unsupportedoperation-not-writable) with newer versions of Flask, so force an older version if working in these environments.\n```bash\n!pip install flask\n```\nSee the [example notebook](https://colab.research.google.com/github/gstaff/flask-ngrokpy/blob/master/examples/flask_ngrok_example.ipynb) for a working example.\n\n## Quickstart\n1. Import with ```from flask_ngrokpy import run_with_ngrok```\n2. Add `run_with_ngrok(app)` to make your Flask app available upon running\n```python\n# flask_ngrok_example.py\nfrom flask import Flask\nfrom flask_ngrokpy import run_with_ngrok\n\napp = Flask(__name__)\nrun_with_ngrok(app)  # Start ngrok when app is run\n\n@app.route(\"/\")\ndef hello():\n    return \"Hello World!\"\n\nif __name__ == '__main__':\n    app.run()\n```\nRunning the example:\n```bash\npython flask_ngrok_example.py\n * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)\n * Running on http://\u003crandom-address\u003e.ngrok.io\n * Traffic stats available on http://127.0.0.1:4040 \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakbin%2Fflask-ngrokpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakbin%2Fflask-ngrokpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakbin%2Fflask-ngrokpy/lists"}