python开发的软件sparrow-如何部署python脚本?

1586010002-jmsa.png

This might sound like a very open ended question, but I am a python enthusiast, and pretty new to this world of development.

I have developed a python script which takes in an input and gives an output based on the algorithm I have put in place in the script. I want to use this script and package it in a way that it can be used by end users having no technical mindset and are only concerned with input they give and the output they get.

I have used Jupyter Notebook to develop this complex code and I want to know a way about how I can package or deploy this code so that the end user can use it without seeing how it works as it might be overwhelming for them.

Can anyone help me with the idea on how to do it?

Something which is Opensource would be preferred.

Thanks

解决方案

I want to round-up this question by suggesting a couple of ways to deploy Python Script or Models:

Docker: This is one of the most popular way of hosting scripts and deploying Machine Learning Models online. You can use Docker to containerize the code and host it as a micro service using different apps.

PEX: PEX is a clever tool being developed at Twitter that allows Python code to be shipped as executable zip files.

AWS: Using AWS, you can create a free account and get started with hosting/deployment. Lot of resources availabel online.

PYSimple, Pyinstaller and Sparrow: As mentioned in the answers above, we can use these packages also to do the task. Please read above.

Flask App: If you dont want to use Docker, using simple flask app, you will be able to host your script online. But there will be a lot of issues as its not containerized. Best to use Docker.

py2exe: If you are looking to convert python file into windows executable, Click here

I will keep adding more content as I find them, but I think the best way to do it using DOCKER. Hope this helps.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值