简体   繁体   English

是否可以将我的 Python 应用程序使用 Eel 制作成网站

[英]Would it be possible to make my Python App made using Eel a Website

I just finished making an eel application and I really like the module since it allows you to communicate with Javascript while using Python.我刚刚完成了一个 eel 应用程序,我非常喜欢这个模块,因为它允许您在使用 Python 的同时与 Javascript 进行通信。 I know that eel hosts a local server and basically uses chrome to make it like an app but I want to be able to upload my files on a VPS.我知道 eel 托管一个本地服务器,并且基本上使用 chrome 使其像一个应用程序,但我希望能够在 VPS 上上传我的文件。 My app is like a social media bot that automates a couple of things by just providing a username.我的应用程序就像一个社交媒体机器人,只需提供一个用户名就可以自动完成一些事情。 I want to host it as like a site so my friends could access it through a link rather than downloading my files or exe I can package.我想像网站一样托管它,这样我的朋友可以通过链接访问它,而不是下载我的文件或 exe 我可以 package。 (I DON'T WANT TO USE FLASK OR DJANGO) I'm just looking if there is a way of hosting my eel project as a website or modules that do similar things. (我不想使用 FLASK 或 DJANGO)我只是想看看是否有办法将我的 eel 项目托管为一个网站或模块来做类似的事情。

Eel https://github.com/samuelhwilliams/Eel鳗鱼https://github.com/samuelhwilliams/Eel

Yes, you can use ngrok .是的,您可以使用ngrok

After you have a localhost set up, you can host with:设置好localhost后,您可以使用以下命令进行托管:

$ ngrok http 8080

Replace 8080 with your localhost port8080替换为您的localhost端口

Then you will be given a WAN link to access your page's root directory.然后,您将获得一个 WAN 链接以访问您页面的根目录。 Make sure to append /index.html or whatever to be able to load into your page确保 append /index.html或任何能够加载到您的页面

ngrok getting started ngrok入门

Run it locally and publish it online with ngrok.在本地运行并使用 ngrok 在线发布。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 有没有办法添加使用Eel Python制作的GUI应用程序的徽标? - Is there any way to add a logo of the GUI application made by using Eel Python? 无法从 python 中的 eel 应用程序生成可执行文件 - Can't make executable file from eel app in python 使用带有鳗鱼的 Python 函数的 Javascript - Javascript using Python function with eel 是否可以打开一个网站,然后使用 Python 在其中运行 JavaScript? - Would it be possible to open a website and then run JavaScript in it using Python? 如何使用鳗鱼 python 启动另一个 window? - How to start another window using eel python? 使用 EEL 将数据从 Python 发送到 Javascript - Sending data from Python to Javascript using EEL 是否可以使用python截取网站的屏幕截图而无需在我的电脑上实际打开网站? - Is it possible to take a screenshot of a website using python without having to actually open the website on my pc? 使用 JavaScript 显示 python 结果为 html | python 鳗鱼 - Display python result in html using JavaScript | python eel 是否可以使用 python 和 django 制作数学公式应用程序? - Is it possible to make a maths formula app using python and django? 如何正确使用 eel 将下拉值从 javascrpt 传递到 python? - How to pass dropdown value from javascrpt to python using eel correctly?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM