[英]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
port将
8080
替换为您的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
或任何能够加载到您的页面
Run it locally and publish it online with ngrok.在本地运行并使用 ngrok 在线发布。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.