非常简单的网络服务:采取投入,电子邮件结果 [英] Very simple web service: take inputs, email results

查看:128
本文介绍了非常简单的网络服务:采取投入,电子邮件结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一家小型创业公司担任数据科学家工作,我正在寻找方法来使我的分析更加可见/对于组织有用。我想要建立一个简单的Web服务,允许内部用户远程运行我的脚本。他们应该能够通过一个非常简单的UI输入几个参数,他们应该可以选择让浏览器窗口中显示结果(等待很长时间),或者通过电子邮件发送。结果可能是一些pdf数据,他们可能是Excel电子表格(可能在将来更有异国情调,但现在是现在)。



脚本将全部在Python中,它将处理分析。



所以,我想知道使用C#/ WCF与Django或Python之类的优点和缺点。我在C#中有丰富的经验,在这里的客户端代码库中工作,但是我对WCF的经验要少得多。我所有的分析工作都是用Python(而R,在较小的程度上)完成的。主要目标是不要把我所有的时间建立在一个花哨的网络服务/ UI ---前端只需要足够友好,不要恐吓营销人员。我不必担心加密,服务器将在我们的防火墙后面。我很不平凡的平台,但我认为这些服务器都是基于Windows的,如果这有帮助的话。



提前感谢






对于额外的信用,如果我的一些脚本在F#中,您的答案如何更改?

解决方案

您可以考虑使用Django Web框架。您可以使用您的python脚本设置一个小应用程序作为不同的视图。 https://www.djangoproject.com/



如果你不想把这么多的努力创造一个友好的UI,你可以使用twitter引导。 http://twitter.github.com/bootstrap/



然后只需在内部运行应用程序即可通过HTTP GET或通过电子邮件收集和显示数据。



编辑:对不起,我没有仔细阅读利弊利用C#/ WCF与Django之类的东西。我最近做了一个Django应用程序,这是相当简单的。


I work at a small startup as a Data Scientist, and I'm looking for ways to make my analysis a bit more visible/useful to the organization. I'd like to be able to put up a simple web service which allows internal users to run my scripts remotely. They should be able to input a few parameters via a very simple UI, and they should have the option to have the results appear in the browser window (after a possibly long wait), or have them emailed. Results may be a few pdf figures, and they may be Excel spreadsheets (maybe more exotic in the future, but this is it for now).

The scripts are going to be all in Python, which will handle the analysis.

So, I'd like to know what the pros and cons are of using C#/WCF vs. something like Django or Python. I have significant experience in C# working in the Client-side code base here, but I have much less experience with WCF. All of my analysis work is done in Python (and R, to a lesser extent). The main goal is to not take all of my time building a fancy web service/UI---the front end just has to be friendly enough to not intimidate the marketing people. I don't have to worry about encryption, the server will be behind our firewall. I'm pretty platform agnostic, but I think the servers are all Windows based, if this helps.

Thanks in advance.


For extra credit, how does your answer change if some of my scripts are in F#?

解决方案

You might consider using the Django web framework. You could set up a small app with your python scripts as different views. https://www.djangoproject.com/

And if you don't want to put that much effort into creating a friendly UI you could use twitter bootstrap. http://twitter.github.com/bootstrap/

Then just run the app internally to gather and display data either via HTTP GETs or via e-mail.

edit: I'm sorry I did not read carefully "pros and cons are of using C#/WCF vs. something like Django". I recently made a Django app and it was fairly straight forward.

这篇关于非常简单的网络服务:采取投入,电子邮件结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆