1

I created a nice RSS application in Python. It took a while and most of the code just does heavy work, like formatting XML, downloading feeds, etc. To the application itself requires very little user interaction, just a initial list of RSS feeds and some parameters.

What would be really nice, is if I was able to have a web front-end which allowed me to have the user edit their feeds and parameters, then they could click a create button and it runs.

I don't really want to have to rewrite the thing in a web framework. Is there anything that will allow me to build a nice front-end allowing it to interact with the normal Python underneath?

1
  • "Is there anything that will allow me to build a nice front-end allowing it to interact with the normal Python underneath?" I was under the impression that this is indeed the purpose of pretty much every python web framework. Commented Jan 24, 2010 at 20:31

3 Answers 3

5

It depends on your needs, free time, etc.

I recommend two solutions:

  • Django - a very rich framework which allows you to create full featured sites using only accessible components (in most cases they are good enough)
  • http://werkzeug.pocoo.org/ - collections of tools if you want to have possibility to control everything from the low level
Sign up to request clarification or add additional context in comments.

Comments

3

web.py is a very lightweight 'library' (not framework) that you can put as a front end to your app. Just import your app within the main controller and use it as you would.

The Python standard library also includes a builting SimpleHTTPServer module which might be what you need to create a front end for your app.

Comments

0

You may also either deploy your Python code as CGI script on a webserver of your choice, e.g. Tomcat:

The CGI (Common Gateway Interface) defines a way for a web server to interact with external content-generating programs, which are often referred to as CGI programs or CGI scripts.

According to a Qura-question this might be appropriate only for small projects, but I do not say anything wrong with that since it worked well for me for perl-scripts. The same source suggests a Python WSGI (web-service gateway) service like uwsgi another service dedicated to running Python code.

Last but not least, there is the solution to encapsulate your Python into Java-code: I stumbled upon the Quora-question "How do I run Java and Python in Tomcat?" which refered to using Jython and plyJy, the latter project is not alive anymore. However, there is also a related question on the topic of bundling Python and Java..

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.