Custom Python web development companies across the globe - ETG - Etisbew Technology Group
ETG one among the best custom Python web development companies across the globe, we cover a wide array of Python web app development services using latest framework like Django, CherryPy, Zope etc. https://bit.ly/2Maf8Hx #pythonwebdevelopmentcompany#djangowebdevelopmentcompany -- https://mail.python.org/mailman/listinfo/python-list
Re: Python web server weirdness SOLVED
Steven D'Aprano wrote: Never mind -- it turned out I had an "index.html" file in the directory which had been wget'ed from LiveJournal. That's okay, then. The other possibility was that your computer had been recruited into an evil botnet set up by LiveJournal to create backup servers for their site... -- Greg -- https://mail.python.org/mailman/listinfo/python-list
Re: Python web server weirdness
On Thu, 07 Jun 2018 13:32:10 +, Steven D'Aprano wrote: > python3.5 -m http.server 8000 [...] Thank you to everyone who responded, pointing out that I should check for an index.html file. That was exactly the problem. And yes, I acknowledge that my original post was lacking in some necessary debugging detail. Mea culpa. -- Steven D'Aprano "Ever since I learned about confirmation bias, I've been seeing it everywhere." -- Jon Ronson -- https://mail.python.org/mailman/listinfo/python-list
Re: Python web server weirdness
On 2018-06-07 13:32, Steven D'Aprano wrote: > I'm following the instructions here: > > https://docs.python.org/3/library/http.server.html > > and running this from the command line as a regular unprivileged > user: > > python3.5 -m http.server 8000 > > What I expected was a directory listing of my current directory. > > What I got was Livejournal's front page. A couple things to check: 1) you don't mention which URL you pointed your browser at. I *presume* it was http://localhost:8000 but without confirmation, it's hard to tell. Also, you don't mention if you had anything in the {path} portion of the URL such as "http://localhost:8000/livejournal_homepage.html; 2) you don't mention whether your command succeeded with "Serving HTTP on 0.0.0.0 port 8000" or if it failed because perhaps something else was listening on that port ("OSError: [Errno 98] Address already in use"). 3) when your browser made the request to that localhost URL, did that command produce output logging the incoming requests? 4) do you have any funky redirection for localhost in your /etc/hosts file (or corresponding file location on Windows) -tkc -- https://mail.python.org/mailman/listinfo/python-list
Re: Python web server weirdness
On 2018-06-07 14:32, Steven D'Aprano wrote: > I'm following the instructions here: > > https://docs.python.org/3/library/http.server.html > > > and running this from the command line as a regular unprivileged user: > > python3.5 -m http.server 8000 > > What I expected was a directory listing of my current directory. > > What I got was Livejournal's front page. > > W.T.F.??? > > Do you have LiveJournal's index.html in your current directory? signature.asc Description: OpenPGP digital signature -- https://mail.python.org/mailman/listinfo/python-list
Re: Python web server weirdness SOLVED
On Thu, 07 Jun 2018 13:32:10 +, Steven D'Aprano wrote: [...] > python3.5 -m http.server 8000 > > What I expected was a directory listing of my current directory. > > What I got was Livejournal's front page. Never mind -- it turned out I had an "index.html" file in the directory which had been wget'ed from LiveJournal. When I deleted that, it worked as expected. -- Steven D'Aprano "Ever since I learned about confirmation bias, I've been seeing it everywhere." -- Jon Ronson -- https://mail.python.org/mailman/listinfo/python-list
Re: Python web server weirdness
On 2018-06-07, Steven D'Aprano wrote: > I'm following the instructions here: > > https://docs.python.org/3/library/http.server.html > > > and running this from the command line as a regular unprivileged user: > > python3.5 -m http.server 8000 > > What I expected was a directory listing of my current directory. > > What I got was Livejournal's front page. That's very odd. What I get is the message below: $ python3.5 -m http.server 8000 Serving HTTP on 0.0.0.0 port 8000 ... -- Grant Edwards grant.b.edwardsYow! I invented skydiving at in 1989! gmail.com -- https://mail.python.org/mailman/listinfo/python-list
Re: Python web server weirdness
On 2018-06-07, Steven D'Aprano wrote: > I'm following the instructions here: > > https://docs.python.org/3/library/http.server.html > > > and running this from the command line as a regular unprivileged user: > > python3.5 -m http.server 8000 > > What I expected was a directory listing of my current directory. > > What I got was Livejournal's front page. Looking into the crystal ball and guessing that "got" means you pointed a browser at "http://localhost:8000/;... Do you have a file named "index.html" in your home directory? https://docs.python.org/3/library/http.server.html If the request was mapped to a directory, the directory is checked for a file named index.html or index.htm (in that order). If found, the file’s contents are returned; -- Grant Edwards grant.b.edwardsYow! I want another at RE-WRITE on my CEASAR gmail.comSALAD!! -- https://mail.python.org/mailman/listinfo/python-list
Python web server weirdness
I'm following the instructions here: https://docs.python.org/3/library/http.server.html and running this from the command line as a regular unprivileged user: python3.5 -m http.server 8000 What I expected was a directory listing of my current directory. What I got was Livejournal's front page. W.T.F.??? -- Steven D'Aprano "Ever since I learned about confirmation bias, I've been seeing it everywhere." -- Jon Ronson -- https://mail.python.org/mailman/listinfo/python-list
Re: Python Web Scrapping : Within href readonly those value that have href in it
To complement what Peter wrote: I'd approach this problem using XPath. XPath is a query language for XML/HTML documents; it's a great tool to have in your web scraping toolbox (among other tasks). With Python's excellent lxml library you can do some XPath processing. Here's how I might tackle this problem: == [ scrape.py ] == from lxml import etree # ...somehow get HTML/XML into the variable xml root = etree.HTML(xml) hrefs = root.xpath("//a[@href and starts-with(@href, 'http://')]/@href") # magic => ^^ print(hrefs) # if you want to see what this looks like == [ end scrape.py ] == The argument to the xpath method here is an XPath expression. The overall form is: //a[.]/@href The '//a' at the beginning means: starting at the root node of the document, find all a (anchor) elements that match the condition specified by ".". The '/@href' at the end means: give me the href attribute of the nodes (if any) that remain. Looking inside the square brackets (what's known as the predicate in the XPath world), we find @href and starts-with(@href, 'http://') The 'and' bit should be clear (there are two conditions that need to be checked). The first part says: the a element should have an href attribute. The second part says that the value of the href element had better start with 'http://'. In fact, we could simplify the predicate to starts-with(@href, 'http://') If an element does not even have an href attribute, its value does not start with 'http://'. It's not an error, and no exception will be thrown, when the XPath evaluator applies the starts-with function to an a element that does not have an href attribute. Hope this helps. Best regards, Jesse -- Jesse Alama http://xml.sh -- https://mail.python.org/mailman/listinfo/python-list
Re: Python Web Scrapping : Within href readonly those value that have href in it
shahs...@gmail.com wrote: > I am trying to scrape a webpage just for learning. In that webpage there > are multiple "a" tags. consider the below code > > Something > > Something These are probaly all forward slashes. > Now i want to read only those href in which there is http. My Current code > is > > for link in soup.find_all("a"): > print link.get("href") > > i would like to change it to read only http links. You mean href values that start with "http://;? While you can do that with a callback def check_scheme(href): return href is not None and href.startswith("http://;) for a in soup.find_all("a", href=check_scheme): print(a["href"]) or a regular expression import re for a in soup.find_all("a", href=re.compile("^http://;)): print(a["href"]) why not keep things simple and check before printing? Like for a in soup.find_all("a"): href = a.get("href", "") # empty string if href is missing if href.startswith("http://;): print(href) -- https://mail.python.org/mailman/listinfo/python-list
Python Web Scrapping : Within href readonly those value that have href in it
I am trying to scrape a webpage just for learning. In that webpage there are multiple "a" tags. consider the below code Something Something Now i want to read only those href in which there is http. My Current code is for link in soup.find_all("a"): print link.get("href") i would like to change it to read only http links. -- https://mail.python.org/mailman/listinfo/python-list
Django (Python Web Framework) Tutorial
So I am using Mac OS X Yosemite Version 10.10.2, going through the django tutorial : https://docs.djangoproject.com/en/1.8/intro/tutorial01/ and learning to use it. Am currently on the 2nd chapter "Creating a Project" and got a question to ask : This is the series of steps I took to reach this point : A) I created a folder called "Weiqi" in my home directory. (named after the game I am best at!) B) Then I typed the command $ cd Weiqi in the "Terminal" CaiGengYangs-MacBook-Pro:~ CaiGengYang$ cd Weiqi --- input and got this output : CaiGengYangs-MacBook-Pro:Weiqi CaiGengYang$ --- output C) Then I ran the following command in the Terminal : $ django-admin startproject mysite. This created a mysite folder which appeared inside the original Weiqi folder in my home directory. When I clicked on the mysite folder, there is a manage.py file and another mysite folder inside the original mysite folder. When I click on the mysite folder, there are 4 files in it : __init__.py , settings.py , urls.py and wsgi.py. D) The next chapter of the tutorial says this : "Where should this code live? If your background is in plain old PHP (with no use of modern frameworks), you're probably used to putting code under the Web server's document root (in a place such as /var/www). With Django, you don't do that. It's not a good idea to put any of this Python code within your Web server's document root, because it risks the possibility that people may be able to view your code over the Web. That's not good for security. Put your code in some directory outside of the document root, such as /home/mycode." Question : I am a little confused about the last paragraph : What exactly is a "directory outside of the document root, such as /home/mycode." and how do you "Put your code in this directory" ? Thanks a lot ! Appreciate it Cai Gengyang -- https://mail.python.org/mailman/listinfo/python-list
Re: Django (Python Web Framework) Tutorial
On Sunday, September 27, 2015 at 11:46:13 AM UTC+8, John Gordon wrote: > In <1421a34f-d8cc-4367-adab-2c2b46504...@googlegroups.com> Cai Gengyang >writes: > > > Question : I am a little confused about the last paragraph : What exactly > > is a "directory outside of the document root, such as /home/mycode." and > > how do you "Put your code in this directory" ? > > Django is a web application framework. So, you have to use it together with > a web server. The "document root" is the directory where the web server > expects to find files to be served as web pages. > > You said you put the Django project code in a subdirectory of your home > directory. That should be fine. > > -- > John Gordon A is for Amy, who fell down the stairs > gor...@panix.com B is for Basil, assaulted by bears > -- Edward Gorey, "The Gashlycrumb Tinies" Ok. As for the next chapter(Database setup), I opened up mysite/settings.py as per the instructions on the Django tutorial. However, when I try to run the following command : $ python manage.py migrate to create the tables in the database, CaiGengYangs-MacBook-Pro:Weiqi CaiGengYang$ python manage.py migrate input I get the following error message : /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'manage.py': [Errno 2] No such file or directory output Any idea how to solve this issue? Thanks a lot ! Gengyang -- https://mail.python.org/mailman/listinfo/python-list
Re: Django (Python Web Framework) Tutorial
In <1421a34f-d8cc-4367-adab-2c2b46504...@googlegroups.com> Cai Gengyangwrites: > Question : I am a little confused about the last paragraph : What exactly > is a "directory outside of the document root, such as /home/mycode." and > how do you "Put your code in this directory" ? Django is a web application framework. So, you have to use it together with a web server. The "document root" is the directory where the web server expects to find files to be served as web pages. You said you put the Django project code in a subdirectory of your home directory. That should be fine. -- John Gordon A is for Amy, who fell down the stairs gor...@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies" -- https://mail.python.org/mailman/listinfo/python-list
How may I learn Python Web Frameworks
Dear Group, I am slightly new in Python Web Frameworks. I could learn bit of Django, Flask and Bottle. But I am looking for a good web based tutorial like Python or NLTK. Somehow, I did not find documentations for web frameworks are very good, one has to do lot of experiments even to learn basic things. I am looking for a good book like Dive into Python or some good web based tutorials. I tried to search but unfortunately could not find. I am using Python2.7+ on Windows 7. If any one of the members may kindly suggest. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list
Re: How may I learn Python Web Frameworks
web2py http://www.web2py.com/ has extensive tutorials, videos, and a book. Laura -- https://mail.python.org/mailman/listinfo/python-list
Re: How may I learn Python Web Frameworks
The official Django docs is pretty detailed https://docs.djangoproject.com/en/1.8/ You could also look at the Django book but it confesses to being written for version 1.4 even though it goes ahead to assure us that it's not outdated https://django-book.readthedocs.org/en/latest/ -- https://mail.python.org/mailman/listinfo/python-list
Re: How may I learn Python Web Frameworks
you'll find a very extensive Flask tutorial at http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world . -- https://mail.python.org/mailman/listinfo/python-list
Re: emacs for python web development
Thanks, got the python bit down is just the Web for flask and django. Getting the templates and snippets to work in a good flow is where I am looking for advice. Cheers Sayth -- https://mail.python.org/mailman/listinfo/python-list
emacs for python web development
Has anyone got a good configuration or advice for setting up a good python web development environment in emacs? Sayth -- https://mail.python.org/mailman/listinfo/python-list
Re: emacs for python web development
Sayth flebber.c...@gmail.com writes: Has anyone got a good configuration or advice for setting up a good python web development environment in emacs? You can start at the Python Wiki page on Emacs as an editor URL:https://wiki.python.org/moin/EmacsEditor. -- \ “… a Microsoft Certified System Engineer is to information | `\ technology as a McDonalds Certified Food Specialist is to the | _o__) culinary arts.” —Michael Bacarella | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list
Re: How to create python web framework for ERP
On Tuesday, 9 September 2014 13:55:24 UTC+5:30, Vimal Rughani wrote: Hi All, Greetings ! I am bit familiar with Django and Python. I want to create ERP on python. Initially I feel Django will be good option for My Own ERP, but after working bit on that I feel it doesn't fit with my requirement. So I decided to create my own python based web framework for ERP. Can you please suggest me better book / video / resources / content which help me to build proper web framework for ERP. Thanks Thanks to all for your kind support. I looking into different suggestions given by you. Thanks again for your time -- https://mail.python.org/mailman/listinfo/python-list
How to create python web framework for ERP
Hi All, Greetings ! I am bit familiar with Django and Python. I want to create ERP on python. Initially I feel Django will be good option for My Own ERP, but after working bit on that I feel it doesn't fit with my requirement. So I decided to create my own python based web framework for ERP. Can you please suggest me better book / video / resources / content which help me to build proper web framework for ERP. Thanks -- https://mail.python.org/mailman/listinfo/python-list
Re: How to create python web framework for ERP
On 9 Sep 2014, at 10:25, Vimal Rughani wrote: Hi All, Greetings ! I am bit familiar with Django and Python. I want to create ERP on python. Initially I feel Django will be good option for My Own ERP, but after working bit on that I feel it doesn't fit with my requirement. So I decided to create my own python based web framework for ERP. Can you please suggest me better book / video / resources / content which help me to build proper web framework for ERP. Thanks -- https://mail.python.org/mailman/listinfo/python-list Use Odoo. -- Stéphane Wirtel - http://wirtel.be - @matrixise -- https://mail.python.org/mailman/listinfo/python-list
Re: How to create python web framework for ERP
On Tuesday, 9 September 2014 14:09:48 UTC+5:30, Stéphane Wirtel wrote: On 9 Sep 2014, at 10:25, Vimal Rughani wrote: Hi All, Greetings ! I am bit familiar with Django and Python. I want to create ERP on python. Initially I feel Django will be good option for My Own ERP, but after working bit on that I feel it doesn't fit with my requirement. So I decided to create my own python based web framework for ERP. Can you please suggest me better book / video / resources / content which help me to build proper web framework for ERP. Thanks -- https://mail.python.org/mailman/listinfo/python-list Use Odoo. -- Stéphane Wirtel - http://wirtel.be - @matrixise Thanks Stéphane, for your suggestion. I know about Odoo and Odoo is good choice for domain related to Business. I am developing solution for Education / schools / colleges. Requirements are bit complex so I want to have own framework. -- https://mail.python.org/mailman/listinfo/python-list
Re: How to create python web framework for ERP
I would say you can still use Django. See django-oscar for instance, it is 'ecommerce framework', based od Django. I would highly recommend to stick around Django, because of its huge ecosystem. You can still add/write some missing parts yourself. Can you be more specific, why Django does not suit your needs? 2014-09-09 12:06 GMT+02:00 Vimal Rughani vimal.rugh...@gmail.com: On Tuesday, 9 September 2014 14:09:48 UTC+5:30, Stéphane Wirtel wrote: On 9 Sep 2014, at 10:25, Vimal Rughani wrote: Hi All, Greetings ! I am bit familiar with Django and Python. I want to create ERP on python. Initially I feel Django will be good option for My Own ERP, but after working bit on that I feel it doesn't fit with my requirement. So I decided to create my own python based web framework for ERP. Can you please suggest me better book / video / resources / content which help me to build proper web framework for ERP. Thanks -- https://mail.python.org/mailman/listinfo/python-list Use Odoo. -- Stéphane Wirtel - http://wirtel.be - @matrixise Thanks Stéphane, for your suggestion. I know about Odoo and Odoo is good choice for domain related to Business. I am developing solution for Education / schools / colleges. Requirements are bit complex so I want to have own framework. -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: How to create python web framework for ERP
Use the only odoo framework.. without addons .. will be the best choice .. do not reinvent the whell if you do not need web interface, you can have a look at http://www.tryton.org/ otherwise you could have flask for the top of flexibility regards, Matteo Il 09/09/2014 12:06, Vimal Rughani ha scritto: On Tuesday, 9 September 2014 14:09:48 UTC+5:30, Stéphane Wirtel wrote: On 9 Sep 2014, at 10:25, Vimal Rughani wrote: Hi All, Greetings ! I am bit familiar with Django and Python. I want to create ERP on python. Initially I feel Django will be good option for My Own ERP, but after working bit on that I feel it doesn't fit with my requirement. So I decided to create my own python based web framework for ERP. Can you please suggest me better book / video / resources / content which help me to build proper web framework for ERP. Thanks -- https://mail.python.org/mailman/listinfo/python-list Use Odoo. -- Stéphane Wirtel - http://wirtel.be - @matrixise Thanks Stéphane, for your suggestion. I know about Odoo and Odoo is good choice for domain related to Business. I am developing solution for Education / schools / colleges. Requirements are bit complex so I want to have own framework. -- https://mail.python.org/mailman/listinfo/python-list
Re: How to create python web framework for ERP
On Tuesday, September 9, 2014 6:53:37 AM UTC-4, Adam Nešpůrek wrote: I would highly recommend to stick around Django, because of its huge ecosystem. Django's ORM layer does not perform intelligent object creation does it? It naively creates two instances for the same row and does not handle commits gracefully, often resulting in stale object errors? it's been awhile since I used it. But I think SQLAlchemy has solved all the problems the Django ORM has not and can't solve? -- https://mail.python.org/mailman/listinfo/python-list
Re: How to create python web framework for ERP
Vimal, Django is a more generic framework(was built initialy for content management). Odoo is a valid sugestion but take some time to see Frappe.io. ERPNext was built on top of this framework and is a great application for small bussiness. []'s André -- https://mail.python.org/mailman/listinfo/python-list
Re: How to create python web framework for ERP
Am Dienstag, 9. September 2014 10:25:24 UTC+2 schrieb Vimal Rughani: Hi All, Greetings ! I am bit familiar with Django and Python. I want to create ERP on python. Initially I feel Django will be good option for My Own ERP, but after working bit on that I feel it doesn't fit with my requirement. So I decided to create my own python based web framework for ERP. Can you please suggest me better book / video / resources / content which help me to build proper web framework for ERP. Thanks Take a look at www.web2py.com Actively developed and a great community here at google groups - https://groups.google.com/forum/#!forum/web2py best regards Gerd -- https://mail.python.org/mailman/listinfo/python-list
Gunstar - Another python web framework.
It's a recent project, check this out: http://github.com/allisson/gunstar -- http://mail.python.org/mailman/listinfo/python-list
Re: Best python web framework to build university/academic website
b.kris...@gmail.com wrote: I got a chance to build an university website, within very short period of time. I know web2py, little bit of Django, so please suggest me the best to build rapidly. Web2py rocks like nothing else for getting up fast. If you already know it, problem solved. That said, Django has more available production-quality (free) utility apps. You might might want to check whether someone else has already done your work for you. I'm leaning toward Django because it's ahead of Web2py in Python 3 support. -- --Bryan -- http://mail.python.org/mailman/listinfo/python-list
Best python web framework to build university/academic website
Hi, I got a chance to build an university website, within very short period of time. I know web2py, little bit of Django, so please suggest me the best to build rapidly. Thanks in advance Raghu -- http://mail.python.org/mailman/listinfo/python-list
Authomatic - New Authorization / Authentication Client Package for Python WEB Applications
Hi there, I would like to introduce Authomatic, an authorization / authentication client library for Python WEB applications. project home: http://peterhudec.github.io/authomatic code: https://github.com/peterhudec/authomatic live demo: http://authomatic-example.appspot.com/ Features: * Loosely coupled. * Tiny but powerfull interface. * The python-openid library is the only optional dependency. * CSRF protection. * Framework agnostic thanks to adapters. * Ready to accommodate future authorization/authentication protocols. * Makes calls to provider APIs a breeze. * Supports asynchronous requests. * JavaScript library as a bonus. * Out of the box support for: * Authorization with 10 OAuth 1.0a providers * Authorization with 16 OAuth 2.0 providers * python-openid and Google App Engine based OpenID authentication. It's my first Python project, so feedback of any kind is very welcome. Use and enjoy Peter Hudec peterhu...@peterhude.com http://peterhude.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
Re: Screencast: Creating and deploying an advanced python web application in under 15 minutes!
I apologize for the audio from the original screen cast, it was really sub-par. I bought a new microphone and re-recorded it: http://www.youtube.com/watch?v=0L8TsmrZPLgfeature=youtu.be Thanks! Timothy On Tuesday, March 26, 2013 4:54:15 AM UTC-4, timothy crosley wrote: Hi, I've created a screen cast showing how a message board with live-validation and Ajax calls written in python can be built and deployed in under 15 minutes. You can view it here: http://www.youtube.com/watch?v=ucougrZK9wI I hope some of you find it useful, Thanks! Timothy -- http://mail.python.org/mailman/listinfo/python-list
Re: Screencast: Creating and deploying an advanced python web application in under 15 minutes!
On 29/03/2013 14:53, timothy crosley wrote: I apologize for the audio from the original screen cast, it was really sub-par. I bought a new microphone and re-recorded it: http://www.youtube.com/watch?v=0L8TsmrZPLgfeature=youtu.be Thanks! Timothy On Tuesday, March 26, 2013 4:54:15 AM UTC-4, timothy crosley wrote: Hi, I've created a screen cast showing how a message board with live-validation and Ajax calls written in python can be built and deployed in under 15 minutes. You can view it here: http://www.youtube.com/watch?v=ucougrZK9wI I hope some of you find it useful, Thanks! Timothy Hi Timothy, Very interesting! Thx a lot! Cheers Karim -- http://mail.python.org/mailman/listinfo/python-list
Re: Screencast: Creating and deploying an advanced python web application in under 15 minutes!
Thanks Karim! On Friday, March 29, 2013 10:47:41 AM UTC-4, Karim wrote: On 29/03/2013 14:53, timothy crosley wrote: I apologize for the audio from the original screen cast, it was really sub-par. I bought a new microphone and re-recorded it: http://www.youtube.com/watch?v=0L8TsmrZPLgfeature=youtu.be Thanks! Timothy On Tuesday, March 26, 2013 4:54:15 AM UTC-4, timothy crosley wrote: Hi, I've created a screen cast showing how a message board with live-validation and Ajax calls written in python can be built and deployed in under 15 minutes. You can view it here: http://www.youtube.com/watch?v=ucougrZK9wI I hope some of you find it useful, Thanks! Timothy Hi Timothy, Very interesting! Thx a lot! Cheers Karim -- http://mail.python.org/mailman/listinfo/python-list
Screencast: Creating and deploying an advanced python web application in under 15 minutes!
Hi, I've created a screen cast showing how a message board with live-validation and Ajax calls written in python can be built and deployed in under 15 minutes. You can view it here: http://www.youtube.com/watch?v=ucougrZK9wI I hope some of you find it useful, Thanks! Timothy -- http://mail.python.org/mailman/listinfo/python-list
Re: Suitable software stacks for simple python web service
On Thursday, November 22, 2012 1:42:42 AM UTC-5, Kev Dwyer wrote: Steve Petrie wrote: On Wednesday, November 21, 2012 2:32:40 AM UTC-5, Kev Dwyer wrote: Hello List, I have to build a simple web service which will: - receive queries from our other servers - forward the requests to a third party SOAP service - process the response from the third party - send the result back to the original requester From the point of view of the requester, this will happen within the scope of a single request. The data exchanged with the original requester will likely be encoded as JSON; the SOAP service will be handled by SUDS. The load is likely to be quite light, say a few requests per hour, though this may increase in the future. Given these requirements, what do you think might be a suitable software stack, i.e. webserver and web framework (if a web framework is even necessary)? Candidates should be compatible with Python2.7, though I'd be happy to consider Python 3 if anyone knows of a Python3 SOAP library that has good WSDL support. Cheers, Kev I'm using the Bottle web framework (http://bottlepy.org) to integrate requests and replies originating in a Drupal site, a Beanstream (payment processor) account, and a Salesforce instance. Communication with Salesforce is done through the Salesforce Python Toolkit (http://code.google.com/p/salesforce-python-toolkit/), which uses Suds. Communication with the Drupal site uses Python's (and PHP's on the Drupal side) native JSON support. This is under Python 2.6.8 and Apache 2.2.23 running on an AWS EC2 instance. No (major) problems so far, though still in the early stages of this project. Steve I chose Bottle after trying a few other frameworks because, well, I can't remember exactly why, though thinking back it's probably because of the clarity of Bottle's approach and the simplicity of the documentation. Hello Steve, Thanks for your comment. I'm curious, did you consider any web servers other than Apache? Kev You're telling me that there are other web servers? ;) I didn't try any others seriously, no. My experience is with Apache and IIS, and I try to stay away from Windows. I should mention, given Dieter Maurer's comment, that Bottle is a (fairly thin) layer built over WSGI. I've built applications directly over WSGI as well; that's another way to go, it's quite straightforward. mod_python is no longer supported: http://blog.dscpl.com.au/2010/05/modpython-project-soon-to-be-officially.html. -- http://mail.python.org/mailman/listinfo/python-list
Re: Suitable software stacks for simple python web service
Steve Petrie wrote: On Thursday, November 22, 2012 1:42:42 AM UTC-5, Kev Dwyer wrote: Steve Petrie wrote: On Wednesday, November 21, 2012 2:32:40 AM UTC-5, Kev Dwyer wrote: Hello List, I have to build a simple web service which will: - receive queries from our other servers - forward the requests to a third party SOAP service - process the response from the third party - send the result back to the original requester From the point of view of the requester, this will happen within the scope of a single request. The data exchanged with the original requester will likely be encoded as JSON; the SOAP service will be handled by SUDS. The load is likely to be quite light, say a few requests per hour, though this may increase in the future. Given these requirements, what do you think might be a suitable software stack, i.e. webserver and web framework (if a web framework is even necessary)? Candidates should be compatible with Python2.7, though I'd be happy to consider Python 3 if anyone knows of a Python3 SOAP library that has good WSDL support. Cheers, Kev I'm using the Bottle web framework (http://bottlepy.org) to integrate requests and replies originating in a Drupal site, a Beanstream (payment processor) account, and a Salesforce instance. Communication with Salesforce is done through the Salesforce Python Toolkit (http://code.google.com/p/salesforce-python-toolkit/), which uses Suds. Communication with the Drupal site uses Python's (and PHP's on the Drupal side) native JSON support. This is under Python 2.6.8 and Apache 2.2.23 running on an AWS EC2 instance. No (major) problems so far, though still in the early stages of this project. Steve I chose Bottle after trying a few other frameworks because, well, I can't remember exactly why, though thinking back it's probably because of the clarity of Bottle's approach and the simplicity of the documentation. Hello Steve, Thanks for your comment. I'm curious, did you consider any web servers other than Apache? Kev You're telling me that there are other web servers? ;) I didn't try any others seriously, no. My experience is with Apache and IIS, and I try to stay away from Windows. I should mention, given Dieter Maurer's comment, that Bottle is a (fairly thin) layer built over WSGI. I've built applications directly over WSGI as well; that's another way to go, it's quite straightforward. mod_python is no longer supported: http://blog.dscpl.com.au/2010/05/modpython-project-soon-to-be- officially.html. Based on Dieter's comment I'm using Bottle as a framework, with gunicorn (behind nginx) as the webserver. Even Bottle is probably overkill for my use case, but my time is rather limited, so I'm happy to use an off the shelf solution. And I must say, configuring gunicorn and nginx contrasted pleasantly with my memories of struggling with httpd.conf :) -- http://mail.python.org/mailman/listinfo/python-list
Re: Suitable software stacks for simple python web service
Dieter Maurer wrote: snip From your description (so far), you would not need a web framework but could use any way to integrate Python scripts into a web server, e.g. mod_python, cgi, WSGI, Check what ways your web server will suport. Hello Dieter Thanks for your comment. I certainly want a lightweight solution so CGI or one of the micro-frameworks are what I am considering. Cheers Kev -- http://mail.python.org/mailman/listinfo/python-list
Re: Suitable software stacks for simple python web service
On Wednesday, November 21, 2012 2:32:40 AM UTC-5, Kev Dwyer wrote: Hello List, I have to build a simple web service which will: - receive queries from our other servers - forward the requests to a third party SOAP service - process the response from the third party - send the result back to the original requester From the point of view of the requester, this will happen within the scope of a single request. The data exchanged with the original requester will likely be encoded as JSON; the SOAP service will be handled by SUDS. The load is likely to be quite light, say a few requests per hour, though this may increase in the future. Given these requirements, what do you think might be a suitable software stack, i.e. webserver and web framework (if a web framework is even necessary)? Candidates should be compatible with Python2.7, though I'd be happy to consider Python 3 if anyone knows of a Python3 SOAP library that has good WSDL support. Cheers, Kev I'm using the Bottle web framework (http://bottlepy.org) to integrate requests and replies originating in a Drupal site, a Beanstream (payment processor) account, and a Salesforce instance. Communication with Salesforce is done through the Salesforce Python Toolkit (http://code.google.com/p/salesforce-python-toolkit/), which uses Suds. Communication with the Drupal site uses Python's (and PHP's on the Drupal side) native JSON support. This is under Python 2.6.8 and Apache 2.2.23 running on an AWS EC2 instance. No (major) problems so far, though still in the early stages of this project. Steve I chose Bottle after trying a few other frameworks because, well, I can't remember exactly why, though thinking back it's probably because of the clarity of Bottle's approach and the simplicity of the documentation. -- http://mail.python.org/mailman/listinfo/python-list
Re: Suitable software stacks for simple python web service
Kev Dwyer kevin.p.dw...@gmail.com writes: I have to build a simple web service which will: - receive queries from our other servers - forward the requests to a third party SOAP service - process the response from the third party - send the result back to the original requester From the point of view of the requester, this will happen within the scope of a single request. The data exchanged with the original requester will likely be encoded as JSON; the SOAP service will be handled by SUDS. The load is likely to be quite light, say a few requests per hour, though this may increase in the future. Given these requirements, what do you think might be a suitable software stack, i.e. webserver and web framework (if a web framework is even necessary)? From your description (so far), you would not need a web framework but could use any way to integrate Python scripts into a web server, e.g. mod_python, cgi, WSGI, Check what ways your web server will suport. -- http://mail.python.org/mailman/listinfo/python-list
Re: Suitable software stacks for simple python web service
Steve Petrie wrote: On Wednesday, November 21, 2012 2:32:40 AM UTC-5, Kev Dwyer wrote: Hello List, I have to build a simple web service which will: - receive queries from our other servers - forward the requests to a third party SOAP service - process the response from the third party - send the result back to the original requester From the point of view of the requester, this will happen within the scope of a single request. The data exchanged with the original requester will likely be encoded as JSON; the SOAP service will be handled by SUDS. The load is likely to be quite light, say a few requests per hour, though this may increase in the future. Given these requirements, what do you think might be a suitable software stack, i.e. webserver and web framework (if a web framework is even necessary)? Candidates should be compatible with Python2.7, though I'd be happy to consider Python 3 if anyone knows of a Python3 SOAP library that has good WSDL support. Cheers, Kev I'm using the Bottle web framework (http://bottlepy.org) to integrate requests and replies originating in a Drupal site, a Beanstream (payment processor) account, and a Salesforce instance. Communication with Salesforce is done through the Salesforce Python Toolkit (http://code.google.com/p/salesforce-python-toolkit/), which uses Suds. Communication with the Drupal site uses Python's (and PHP's on the Drupal side) native JSON support. This is under Python 2.6.8 and Apache 2.2.23 running on an AWS EC2 instance. No (major) problems so far, though still in the early stages of this project. Steve I chose Bottle after trying a few other frameworks because, well, I can't remember exactly why, though thinking back it's probably because of the clarity of Bottle's approach and the simplicity of the documentation. Hello Steve, Thanks for your comment. I'm curious, did you consider any web servers other than Apache? Kev -- http://mail.python.org/mailman/listinfo/python-list
RE: Python Web Routing Benchmark
Web Routing Benchmark has been updated with latest version of various web frameworks. http://mindref.blogspot.com/2012/10/python-web-routing-benchmark.html Note, wheezy.web seo routing benchmark has been improved by approximately 40%. Thanks. Andriy Kornatskyy From: andriy.kornats...@live.com To: python-list@python.org Subject: Python Web Routing Benchmark Date: Wed, 10 Oct 2012 17:05:08 +0300 How fast web frameworks process routing (URL dispatch)? Here is a benchmark for various web frameworks (bottle, django, flask, pyramid, tornado and wheezy.web) running the following routing: static, dynamic, SEO and missing... with a trivial 'hello world' application (all routes are pointing to the same handler). http://mindref.blogspot.com/2012/10/python-web-routing-benchmark.html Benchmark is executed in isolated environment using CPython 2.7. Source is here: https://bitbucket.org/akorn/helloworld/src/tip/02-routing Comments or suggestions are welcome. Thanks. Andriy Kornatskyy -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Suitable software stacks for simple python web service
Hello List, I have to build a simple web service which will: - receive queries from our other servers - forward the requests to a third party SOAP service - process the response from the third party - send the result back to the original requester From the point of view of the requester, this will happen within the scope of a single request. The data exchanged with the original requester will likely be encoded as JSON; the SOAP service will be handled by SUDS. The load is likely to be quite light, say a few requests per hour, though this may increase in the future. Given these requirements, what do you think might be a suitable software stack, i.e. webserver and web framework (if a web framework is even necessary)? Candidates should be compatible with Python2.7, though I'd be happy to consider Python 3 if anyone knows of a Python3 SOAP library that has good WSDL support. Cheers, Kev -- http://mail.python.org/mailman/listinfo/python-list
Python Web Frameworks PEP8 Consistency
The code is read much more often than it is written. The PEP8 guidelines are intended to improve the readability of code. We will take a look at web frameworks source code readability (bottle, cherrypy, circuits, django, flask, pyramid, tornado, web.py, web2py and wheezy.web): http://mindref.blogspot.com/2012/10/python-web-pep8-consistency.html The ratio between a web framework total python source lines to PEP8 errors found represents PEP8 error rate in respectful framework. Readability counts, no doubt, but readability consistency is important, it is equally important to know when to be inconsistent. The report makes excuse for the following: E501 line too long ( 79 characters) E231 missing whitespace after ',:' W291 trailing whitespace W293 blank line contains whitespace Comments or suggestions are welcome. Thanks. Andriy Kornatskyy -- http://mail.python.org/mailman/listinfo/python-list
Python Web Routing Benchmark
How fast web frameworks process routing (URL dispatch)? Here is a benchmark for various web frameworks (bottle, django, flask, pyramid, tornado and wheezy.web) running the following routing: static, dynamic, SEO and missing... with a trivial 'hello world' application (all routes are pointing to the same handler). http://mindref.blogspot.com/2012/10/python-web-routing-benchmark.html Benchmark is executed in isolated environment using CPython 2.7. Source is here: https://bitbucket.org/akorn/helloworld/src/tip/02-routing Comments or suggestions are welcome. Thanks. Andriy Kornatskyy -- http://mail.python.org/mailman/listinfo/python-list
Re: Running Python web apps on shared ASO servers?
On Sun, 12 Aug 2012 02:03:33 +0200, Gilles nos...@nospam.com wrote: Does it mean that ASO only supports writing Python web apps as long-running processes (CGI, FCGI, WSGI, SCGI) instead of embedded Python à la PHP? I need to get the big picture about the different solutions to run a Python web application. From what I read, it seems like this is the way things involved over the years: CGI : original method. Slow because the server has to spawn a new process to run the interpreter + script every time a script is run. mod_python : Apache module alternative to CGI. The interpreter is loaded once, and running a script means just handling the script mod_wsgi : mod_python is no longer developped, and mod_wsgi is its new reincarnation FastCGI and SCGI: Faster alternativees to CGI; Run as independent programs, and communicate with the web server through either a Unix socket (located on the same host) or a TCP socket (remote host) Is this correct? Thank you. -- http://mail.python.org/mailman/listinfo/python-list
Re: Running Python web apps on shared ASO servers?
On 8/16/2012 7:01 AM Gilles said... On Sun, 12 Aug 2012 02:03:33 +0200, Gilles nos...@nospam.com wrote: Does it mean that ASO only supports writing Python web apps as long-running processes (CGI, FCGI, WSGI, SCGI) instead of embedded Python à la PHP? I need to get the big picture about the different solutions to run a Python web application. From what I read, it seems like this is the way things involved over the years: CGI : original method. Slow because the server has to spawn a new process to run the interpreter + script every time a script is run. mod_python : Apache module alternative to CGI. The interpreter is loaded once, and running a script means just handling the script mod_wsgi : mod_python is no longer developped, and mod_wsgi is its new reincarnation FastCGI and SCGI: Faster alternativees to CGI; Run as independent programs, and communicate with the web server through either a Unix socket (located on the same host) or a TCP socket (remote host) Is this correct? Thank you. I'm sure there's no single correct answer to this. Consider (python 2.6]: emile@paj39:~$ mkdir web emile@paj39:~$ cd web emile@paj39:~/web$ cat test.html hello from test.html emile@paj39:~/web$ python -m SimpleHTTPServer Then browse to localhost:8000/test.html Emile -- http://mail.python.org/mailman/listinfo/python-list
Re: Running Python web apps on shared ASO servers?
On Sun, 12 Aug 2012 22:26:19 +0100, Tim Golden m...@timgolden.me.uk wrote: Just to make a point: one person's isn't a good solution is another person's works perfectly well for me. Modern servers are really quite quick: the cost of starting up a Python process and generating an HTML page can be really quite low. I've certainly had low-traffic production websites running for years on CGI without anyone complaining. Thanks Tim for the input. I'll try the different solutions available and see if CGI is good enough for my needs. -- http://mail.python.org/mailman/listinfo/python-list
Re: Running Python web apps on shared ASO servers?
On Sun, 12 Aug 2012 07:56:26 +0200, Dieter Maurer die...@handshake.de wrote: You should probably read the mentioned forum resources to learn details about the Python support provided by your web site hoster. Yup, but so far, no answer, so I figured someone here might now. Those articles seem to indicate that CGI isn't a good solution when mod_python isn't available, so it looks like I'll have to investigate FastCGI, WSGI, etc. http://docs.python.org/howto/webservers.html http://stackoverflow.com/questions/219110/how-python-web-frameworks-wsgi-and-cgi-fit-together Thank you. -- http://mail.python.org/mailman/listinfo/python-list
Re: Running Python web apps on shared ASO servers?
On 12/08/2012 21:52, Gilles wrote: On Sun, 12 Aug 2012 07:56:26 +0200, Dieter Maurer die...@handshake.de wrote: You should probably read the mentioned forum resources to learn details about the Python support provided by your web site hoster. Yup, but so far, no answer, so I figured someone here might now. Those articles seem to indicate that CGI isn't a good solution when mod_python isn't available Just to make a point: one person's isn't a good solution is another person's works perfectly well for me. Modern servers are really quite quick: the cost of starting up a Python process and generating an HTML page can be really quite low. I've certainly had low-traffic production websites running for years on CGI without anyone complaining. If speed was an issue or if I thought that I'd be getting more requests than I am then I'd consider a more sophisticated solution. TJG -- http://mail.python.org/mailman/listinfo/python-list
Running Python web apps on shared ASO servers?
Hello I use A Small Orange (ASO) as my web provider. Asking the question in their forum so far didn't work, so I figured I might have a faster answer by asking here. Support replied this in an old thread: Just a CGI option. We don't have enough users to justify adding mod_python support. http://forums.asmallorange.com/topic/4672-python-support/page__hl__python http://forums.asmallorange.com/topic/4918-python-fcgi-verses-mod-python/ Does it mean that ASO only supports writing Python web apps as long-running processes (CGI, FCGI, WSGI, SCGI) instead of embedded Python à la PHP? If that's the case, which smallest tool would you recomment to write basic apps, eg. handling forms, etc.? Thank you. -- http://mail.python.org/mailman/listinfo/python-list
Re: Running Python web apps on shared ASO servers?
Gilles nos...@nospam.com writes: ... Support replied this in an old thread: Just a CGI option. We don't have enough users to justify adding mod_python support. http://forums.asmallorange.com/topic/4672-python-support/page__hl__python http://forums.asmallorange.com/topic/4918-python-fcgi-verses-mod-python/ Does it mean that ASO only supports writing Python web apps as long-running processes (CGI, FCGI, WSGI, SCGI) instead of embedded Python à la PHP? It looks as if you could use CGI to activate Python scripts. There seems to be no mod_python support. You should probably read the mentioned forum resources to learn details about the Python support provided by your web site hoster. -- http://mail.python.org/mailman/listinfo/python-list
Python web-framework+db with the widest scalability?
I am building a project requiring high performance and scalability, entailing: • Role-based authentication with API-key licensing to access data of specific users • API exposed with REST (XML, JSON), XMLRPC, JSONRPC and SOAP • Easily configurable getters and setters to create APIs accessing the same data but with input/output in different schemas A conservative estimate of the number of tables—often whose queries require joins—is: 20. Which database type—e.g.: NoSQL or DBMS—key-value data store or object-relational database—e.g.: Redis or PostgreSQL—and web-framework—e.g. Django, Web2Py or Flask—would you recommend? Thanks for all suggestions, Alec Taylor -- http://mail.python.org/mailman/listinfo/python-list
Re: Python web-framework+db with the widest scalability?
Hi, From my experience while NoSQL databases are very fast and scalable, there is lack of _good_ support for popular frameworks. I've try with django and mongoengine, but results was poor. In my company we're building now large api-driven application with django and postgresql as a base. Django has two great api engines - piston and tastypie. Consider looking to nosql eg. mongodb as caching engine and session storage. Django is mature and stable framework, it has some limitations but there are good and documented use cases for doing almost everything You may need. Look also at server layer - popular apache and cgi-like solutions has very poor performance. Maybe You have use-cases to develop with messages queues like celery. W dniu sobota, 12 maja 2012 10:32:09 UTC+2 użytkownik Alec Taylor napisał: I am building a project requiring high performance and scalability, entailing: • Role-based authentication with API-key licensing to access data of specific users • API exposed with REST (XML, JSON), XMLRPC, JSONRPC and SOAP • Easily configurable getters and setters to create APIs accessing the same data but with input/output in different schemas A conservative estimate of the number of tables—often whose queries require joins—is: 20. Which database type—e.g.: NoSQL or DBMS—key-value data store or object-relational database—e.g.: Redis or PostgreSQL—and web-framework—e.g. Django, Web2Py or Flask—would you recommend? Thanks for all suggestions, Alec Taylor -- http://mail.python.org/mailman/listinfo/python-list
Python web-framework with the widest scalability?
I am building a project requiring high performance and scalability, entailing: - Role-based authenticationhttp://en.wikipedia.org/wiki/Role-based_access_controlwith API-keyhttp://en.wikipedia.org/wiki/Application_programming_interface_keylicensing to access data of specific users - API http://en.wikipedia.org/wiki/Application_programming_interfaceexposed with REST http://en.wikipedia.org/wiki/REST (XMLhttp://en.wikipedia.org/wiki/XML, JSON http://en.wikipedia.org/wiki/JSON), XMLRPChttp://en.wikipedia.org/wiki/XMLRPC, JSONRPC http://en.wikipedia.org/wiki/JSONRPC and SOAPhttp://en.wikipedia.org/wiki/SOAP - Easily configurable getters and settershttp://en.wikipedia.org/wiki/Mutator_methodto create APIs accessing the same data but with input/output in different schemas http://en.wikipedia.org/wiki/Database_schema A conservative estimate of the number of tables—often whose queries require joins—is: 20. Which database type—e.g.: NoSQL http://en.wikipedia.org/wiki/NoSQL or DBMShttp://en.wikipedia.org/wiki/Database_management_system —key-value data store http://en.wikipedia.org/wiki/Key-value_data_storeor object-relational database http://en.wikipedia.org/wiki/Object-relational_database—e.g.: Redis http://en.wikipedia.org/wiki/Redis or PostgreSQLhttp://en.wikipedia.org/wiki/PostgreSQL—and web-framework http://en.wikipedia.org/wiki/Web_application_framework—e.g. Django http://en.wikipedia.org/wiki/Django_%28web_framework%29, Web2Pyhttp://www.web2py.com/or Flask http://flask.pocoo.org/—would you recommend? -- http://mail.python.org/mailman/listinfo/python-list
Re: Python web-framework with the widest scalability?
On 05/12/12 03:30, Alec Taylor wrote: I am building a project requiring high performance and scalability, entailing: Most of the frameworks are sufficiently scalable. Scalability usually stems from design decisions (architecture and algorithm) and caching, and you'll usually hit bandwidth or algorithm/architecture limits long before the frameworks are your primary bottleneck. -tkc -- http://mail.python.org/mailman/listinfo/python-list
Re: standalone python web server
Rita rmorgan...@gmail.com writes: I am building a small intranet website and I would like to use Python. I was wondering if there was a easy and medium performance python based web server available. Are you going to use a framework? Most of these ship with a light web server implementation… You probably want to check these out too… I got a pretty robust setup via + nginx, + supervisord, + the web server shipped with Pyramid If you want to use the WSGI standard I'd recommend to read http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/deployment.html This document describes several possible set ups to serve an WSGI application… Regards, vince -- http://mail.python.org/mailman/listinfo/python-list
Re: standalone python web server
yes, I would like to use a framework. I like the twisted method the user posted. Are there any examples of it using a framework, get/post, etc..? On Thu, Feb 9, 2012 at 6:28 AM, Thomas Bach thb...@students.uni-mainz.dewrote: Rita rmorgan...@gmail.com writes: I am building a small intranet website and I would like to use Python. I was wondering if there was a easy and medium performance python based web server available. Are you going to use a framework? Most of these ship with a light web server implementation… You probably want to check these out too… I got a pretty robust setup via + nginx, + supervisord, + the web server shipped with Pyramid If you want to use the WSGI standard I'd recommend to read http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/deployment.html This document describes several possible set ups to serve an WSGI application… Regards, vince -- --- Get your facts first, then you can distort them as you please.-- -- http://mail.python.org/mailman/listinfo/python-list
standalone python web server
I am building a small intranet website and I would like to use Python. I was wondering if there was a easy and medium performance python based web server available. I would like to run it on port :8080 since I wont have root access also I prefer something easy to deploy meaning I would like to move the server from one physical host to another without too much fuss. Currently, I am using flask (development server) and everything is ok but the performance is really bad. -- --- Get your facts first, then you can distort them as you please.-- -- http://mail.python.org/mailman/listinfo/python-list
Re: standalone python web server
On Feb 8, 2012, at 11:01 PM, Rita rmorgan...@gmail.com wrote: I am building a small intranet website and I would like to use Python. I was wondering if there was a easy and medium performance python based web server available. I would like to run it on port :8080 since I wont have root access also I prefer something easy to deploy meaning I would like to move the server from one physical host to another without too much fuss. Currently, I am using flask (development server) and everything is ok but the performance is really bad. Checkout TwistedWeb it's an HTTP server that can be used as a library or standalone server. $ twistd web --path . --port 8080 -- --- Get your facts first, then you can distort them as you please.-- -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: standalone python web server
In article mailman.5563.1328760741.27778.python-l...@python.org, Rodrick Brown rodrick.br...@gmail.com wrote: On Feb 8, 2012, at 11:01 PM, Rita rmorgan...@gmail.com wrote: I am building a small intranet website and I would like to use Python. I was wondering if there was a easy and medium performance python based web server available. I would like to run it on port :8080 since I wont have root access also I prefer something easy to deploy meaning I would like to move the server from one physical host to another without too much fuss. Currently, I am using flask (development server) and everything is ok but the performance is really bad. Checkout TwistedWeb it's an HTTP server that can be used as a library or standalone server. $ twistd web --path . --port 8080 Another one to look at is gunicorn. -- http://mail.python.org/mailman/listinfo/python-list
Re: standalone python web server
I am building a small intranet website and I would like to use Python. I was wondering if there was a easy and medium performance python based web server available. I would like to run it on port :8080 since I wont have root access also I prefer something easy to deploy meaning I would like to move the server from one physical host to another without too much fuss. Currently, I am using flask (development server) and everything is ok but the performance is really bad. How about cherrypy? Best, anonhung -- Viktor Orban Prime minister of Hungary http://spreadingviktororban.weebly.com -- http://mail.python.org/mailman/listinfo/python-list
Re: How to select Python web frameworks and which one is the best framework ?
On Thu, May 19, 2011 at 9:23 AM, VGNU Linux vgnuli...@gmail.com wrote: On Tue, May 17, 2011 at 1:20 PM, VGNU Linux vgnuli...@gmail.com wrote: Hi all, I am confused on which web framework to select for developing a small data driven web application. Application will have features generally found in now-a-days web application like security, database connectivity, authentication etc. I found few web frameworks over the net like django, zope 2/3, pylons, turbogears, web2py, grok etc. etc. I just want to know that how developers/managers/organizations select a framework which best suits their needs ? what are the parameters for selection ? also which is the best and widely used web framework for python ? I apologize if this is a repeated question. Please guys help as I am novice to web development. Search the list archives. This topic has been discussed many many times. -- regards, kushal -- http://mail.python.org/mailman/listinfo/python-list
Re: How to select Python web frameworks and which one is the best framework ?
On Tue, May 17, 2011 at 1:20 PM, VGNU Linux vgnuli...@gmail.com wrote: Hi all, I am confused on which web framework to select for developing a small data driven web application. Application will have features generally found in now-a-days web application like security, database connectivity, authentication etc. I found few web frameworks over the net like django, zope 2/3, pylons, turbogears, web2py, grok etc. etc. I just want to know that how developers/managers/organizations select a framework which best suits their needs ? what are the parameters for selection ? also which is the best and widely used web framework for python ? I apologize if this is a repeated question. Regards, VGNU Please guys help as I am novice to web development. Regards, VGNU -- http://mail.python.org/mailman/listinfo/python-list
How to select Python web frameworks and which one is the best framework ?
Hi all, I am confused on which web framework to select for developing a small data driven web application. Application will have features generally found in now-a-days web application like security, database connectivity, authentication etc. I found few web frameworks over the net like django, zope 2/3, pylons, turbogears, web2py, grok etc. etc. I just want to know that how developers/managers/organizations select a framework which best suits their needs ? what are the parameters for selection ? also which is the best and widely used web framework for python ? I apologize if this is a repeated question. Regards, VGNU -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Web App
@Katie Thank you I considered this option until I realized it wouldn't let me do anything other than ping from the command line. The rest of you all make valid points after doing a little more research on my own I found some really nice web based text editors but they didn't have any testing abilities which meant learning in that environment wasn't feasible in my opinion. I am inclined to agree that chrome OS will probably not do as well as they want it to but with the kind of capital Google has they could easily flood the market. In the end I wound up giving the notebook to my mom because all she really does is check her email and Facebook so it was perfect for her. Thank You for all the responses they were a great help with me testing the notebook. On Dec 25, 9:02 pm, Katie T ka...@coderstack.co.uk wrote: On Wed, Dec 22, 2010 at 9:43 PM, Sean secr...@gmail.com wrote: Anybody know where I can find a Python Development Environment in the form of a web app for use with Chrome OS. I have been looking for a few days and all i have been able to find is some old discussions with python developers talking about they will want one for the OS to be a success with them. Your best bet is probably just to SSH to a *nix box and use something like vim or emacs. None of the web solutions are anywhere near acceptable. Katie -- CoderStackhttp://www.coderstack.co.uk/python-jobs The Software Developer Job Board -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Web App
On Wed, Dec 22, 2010 at 9:43 PM, Sean secr...@gmail.com wrote: Anybody know where I can find a Python Development Environment in the form of a web app for use with Chrome OS. I have been looking for a few days and all i have been able to find is some old discussions with python developers talking about they will want one for the OS to be a success with them. Your best bet is probably just to SSH to a *nix box and use something like vim or emacs. None of the web solutions are anywhere near acceptable. Katie -- CoderStack http://www.coderstack.co.uk/python-jobs The Software Developer Job Board -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Web App
Anybody know where I can find a Python Development Environment in the form of a web app for use with Chrome OS. I have been looking for a few days and all i have been able to find is some old discussions with python developers talking about they will want one for the OS to be a success with them. Personally, I think a web app based IDE would be ghastly; but, you might have a look at Mozilla Skywriter (formerly Bespin): Why grashtly? I don't personally think the web makes a good framework for highly interactive applications as they must work within the constraints of the browser and IDEs are highly interactive applications by their very nature. Perhaps HTML5/CSS3 will change things; but, standard DOM manipulation, as I am accustomed to seeing it, cannot generate the kind of rendering that is available from native applications. Attempts to do so end up being kludgy. It also cannot handle the kinds of desktop integrations that are common for native applications without opening up serious security trust issues. (Can everybody say ActiveX fiasco?) So, in essence, you are predicting that google's chrome OS will be a failure, right? Finally, there are difficulties in handling keystrokes without conflicting with the browser's native key bindings. I seldom ever touch a mouse and I am a huge fan of vi, mutt, slrn, screen, ratpoison, etc. where the primary interface is totally accessable through the keyboard without having to tab through many options. Well, implementing vi or other text based tools in the browser is trivial. I mean it will function in exactly the same way as a native vi. Cheers, Daniel -- Psss, psss, put it down! - http://www.cafepress.com/putitdown -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Web App
From: Daniel Fetchinson fetchin...@googlemail.com Anybody know where I can find a Python Development Environment in the form of a web app for use with Chrome OS. I have been looking for a few days and all i have been able to find is some old discussions with python developers talking about they will want one for the OS to be a success with them. Personally, I think a web app based IDE would be ghastly; but, you might have a look at Mozilla Skywriter (formerly Bespin): Why grashtly? I don't personally think the web makes a good framework for highly interactive applications as they must work within the constraints of the browser and IDEs are highly interactive applications by their very nature. Perhaps HTML5/CSS3 will change things; but, standard DOM manipulation, as I am accustomed to seeing it, cannot generate the kind of rendering that is available from native applications. Attempts to do so end up being kludgy. It also cannot handle the kinds of desktop integrations that are common for native applications without opening up serious security trust issues. (Can everybody say ActiveX fiasco?) So, in essence, you are predicting that google's chrome OS will be a failure, right? It will surely be. But it won't, because Google's monopoly in an important field will help it to promote that OS, not because that OS will be so great. Finally, there are difficulties in handling keystrokes without conflicting with the browser's native key bindings. I seldom ever touch a mouse and I am a huge fan of vi, mutt, slrn, screen, ratpoison, etc. where the primary interface is totally accessable through the keyboard without having to tab through many options. Well, implementing vi or other text based tools in the browser is trivial. I mean it will function in exactly the same way as a native vi. Not exactly. Because not all the computer users can see, and the browsers don't offer the same accessibility features for screen readers as the standard GUIS. (And Google's software is very poor in this field anyway.) Octavian -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Web App
On 2010-12-23, Daniel Fetchinson fetchin...@googlemail.com wrote: I don't personally think the web makes a good framework for highly interactive applications as they must work within the constraints of the browser and IDEs are highly interactive applications by their very nature. Perhaps HTML5/CSS3 will change things; but, standard DOM manipulation, as I am accustomed to seeing it, cannot generate the kind of rendering that is available from native applications. Attempts to do so end up being kludgy. It also cannot handle the kinds of desktop integrations that are common for native applications without opening up serious security trust issues. (Can everybody say ActiveX fiasco?) So, in essence, you are predicting that google's chrome OS will be a failure, right? No, most people are happy using web based email interfaces and never even know that native email clients exist. More is the pity. Finally, there are difficulties in handling keystrokes without conflicting with the browser's native key bindings. I seldom ever touch a mouse and I am a huge fan of vi, mutt, slrn, screen, ratpoison, etc. where the primary interface is totally accessable through the keyboard without having to tab through many options. Well, implementing vi or other text based tools in the browser is trivial. I mean it will function in exactly the same way as a native vi. Not exactly. I occassionally use web based terminals (Ajaxterm, Anyterm, Shellinabox, etc) to access my systems. This works only partially since many of the keystrokes I use conflict with keystrokes that the browser uses or which cause signals that the browser either does not catch or does not pass on to be accessed by client side scripting. The terminals must therefore place buttons or synthetic keyboards on the screen to allow you to simulate the keystrokes. That kind of negates the advantages of keystrokes in the first place. It doesn't make fore a pleasant experience. -- http://mail.python.org/mailman/listinfo/python-list
Python Web App
Anybody know where I can find a Python Development Environment in the form of a web app for use with Chrome OS. I have been looking for a few days and all i have been able to find is some old discussions with python developers talking about they will want one for the OS to be a success with them. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Web App
I am creating one, is on test, what kind of app do you want create? 2010/12/22, Sean secr...@gmail.com: Anybody know where I can find a Python Development Environment in the form of a web app for use with Chrome OS. I have been looking for a few days and all i have been able to find is some old discussions with python developers talking about they will want one for the OS to be a success with them. -- http://mail.python.org/mailman/listinfo/python-list -- Enviado desde mi dispositivo móvil Diego I. Hidalgo D. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Web App
On 2010-12-22, Sean secr...@gmail.com wrote: Anybody know where I can find a Python Development Environment in the form of a web app for use with Chrome OS. I have been looking for a few days and all i have been able to find is some old discussions with python developers talking about they will want one for the OS to be a success with them. Personally, I think a web app based IDE would be ghastly; but, you might have a look at Mozilla Skywriter (formerly Bespin): https://mozillalabs.com/skywriter/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Web App
Why grashtly? 2010/12/22, Tim Harig user...@ilthio.net: On 2010-12-22, Sean secr...@gmail.com wrote: Anybody know where I can find a Python Development Environment in the form of a web app for use with Chrome OS. I have been looking for a few days and all i have been able to find is some old discussions with python developers talking about they will want one for the OS to be a success with them. Personally, I think a web app based IDE would be ghastly; but, you might have a look at Mozilla Skywriter (formerly Bespin): https://mozillalabs.com/skywriter/ -- http://mail.python.org/mailman/listinfo/python-list -- Enviado desde mi dispositivo móvil Diego I. Hidalgo D. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Web App
I am wanting to learn python and I am test a Chrome OS notebook at the same time so I need something that will atleast tell me if I have any syntax errors. Although the more features the better that way learning is an easier experience. On Dec 22, 7:05 pm, Hidura hid...@gmail.com wrote: I am creating one, is on test, what kind of app do you want create? 2010/12/22, Sean secr...@gmail.com: Anybody know where I can find a Python Development Environment in the form of a web app for use with Chrome OS. I have been looking for a few days and all i have been able to find is some old discussions with python developers talking about they will want one for the OS to be a success with them. -- http://mail.python.org/mailman/listinfo/python-list -- Enviado desde mi dispositivo móvil Diego I. Hidalgo D. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Web App
Forgot to point out that Chrome OS has no local storage accessable to the user. Hence why I need a web based solution. On Dec 22, 8:51 pm, Sean secr...@gmail.com wrote: I am wanting to learn python and I am test a Chrome OS notebook at the same time so I need something that will atleast tell me if I have any syntax errors. Although the more features the better that way learning is an easier experience. On Dec 22, 7:05 pm, Hidura hid...@gmail.com wrote: I am creating one, is on test, what kind of app do you want create? 2010/12/22, Sean secr...@gmail.com: Anybody know where I can find a Python Development Environment in the form of a web app for use with Chrome OS. I have been looking for a few days and all i have been able to find is some old discussions with python developers talking about they will want one for the OS to be a success with them. -- http://mail.python.org/mailman/listinfo/python-list -- Enviado desde mi dispositivo móvil Diego I. Hidalgo D. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Web App
Use editarea, that's the best option if you want something small, but as i said before i am developing a framework that allows you to create app's from the web and is much more complete than editarea. 2010/12/22, Sean secr...@gmail.com: I am wanting to learn python and I am test a Chrome OS notebook at the same time so I need something that will atleast tell me if I have any syntax errors. Although the more features the better that way learning is an easier experience. On Dec 22, 7:05 pm, Hidura hid...@gmail.com wrote: I am creating one, is on test, what kind of app do you want create? 2010/12/22, Sean secr...@gmail.com: Anybody know where I can find a Python Development Environment in the form of a web app for use with Chrome OS. I have been looking for a few days and all i have been able to find is some old discussions with python developers talking about they will want one for the OS to be a success with them. -- http://mail.python.org/mailman/listinfo/python-list -- Enviado desde mi dispositivo móvil Diego I. Hidalgo D. -- http://mail.python.org/mailman/listinfo/python-list -- Enviado desde mi dispositivo móvil Diego I. Hidalgo D. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Web App
My framework let you store online on a hosting server that the same framework provide. 2010/12/22, Hidura hid...@gmail.com: Use editarea, that's the best option if you want something small, but as i said before i am developing a framework that allows you to create app's from the web and is much more complete than editarea. 2010/12/22, Sean secr...@gmail.com: I am wanting to learn python and I am test a Chrome OS notebook at the same time so I need something that will atleast tell me if I have any syntax errors. Although the more features the better that way learning is an easier experience. On Dec 22, 7:05 pm, Hidura hid...@gmail.com wrote: I am creating one, is on test, what kind of app do you want create? 2010/12/22, Sean secr...@gmail.com: Anybody know where I can find a Python Development Environment in the form of a web app for use with Chrome OS. I have been looking for a few days and all i have been able to find is some old discussions with python developers talking about they will want one for the OS to be a success with them. -- http://mail.python.org/mailman/listinfo/python-list -- Enviado desde mi dispositivo móvil Diego I. Hidalgo D. -- http://mail.python.org/mailman/listinfo/python-list -- Enviado desde mi dispositivo móvil Diego I. Hidalgo D. -- Enviado desde mi dispositivo móvil Diego I. Hidalgo D. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Web App
[Reordered to preserve context in bottom posting] On 2010-12-23, Hidura hid...@gmail.com wrote: 2010/12/22, Tim Harig user...@ilthio.net: On 2010-12-22, Sean secr...@gmail.com wrote: Anybody know where I can find a Python Development Environment in the form of a web app for use with Chrome OS. I have been looking for a few days and all i have been able to find is some old discussions with python developers talking about they will want one for the OS to be a success with them. Personally, I think a web app based IDE would be ghastly; but, you might have a look at Mozilla Skywriter (formerly Bespin): Why grashtly? I don't personally think the web makes a good framework for highly interactive applications as they must work within the constraints of the browser and IDEs are highly interactive applications by their very nature. Perhaps HTML5/CSS3 will change things; but, standard DOM manipulation, as I am accustomed to seeing it, cannot generate the kind of rendering that is available from native applications. Attempts to do so end up being kludgy. It also cannot handle the kinds of desktop integrations that are common for native applications without opening up serious security trust issues. (Can everybody say ActiveX fiasco?) Finally, there are difficulties in handling keystrokes without conflicting with the browser's native key bindings. I seldom ever touch a mouse and I am a huge fan of vi, mutt, slrn, screen, ratpoison, etc. where the primary interface is totally accessable through the keyboard without having to tab through many options. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Web App
Ok, but you are comparing a web-based framework with a native-based framework that use the components of the system to make all the things that need, a web-based framewok use the resourses of the browser to make it all, so the developer that use a framework on the web can't expect get the same results, in my case i beleive that a web-based framework adjust better to the needs if you'll make a web-app, otherwise use eclipse or netbeans. 2010/12/22, Tim Harig user...@ilthio.net: [Reordered to preserve context in bottom posting] On 2010-12-23, Hidura hid...@gmail.com wrote: 2010/12/22, Tim Harig user...@ilthio.net: On 2010-12-22, Sean secr...@gmail.com wrote: Anybody know where I can find a Python Development Environment in the form of a web app for use with Chrome OS. I have been looking for a few days and all i have been able to find is some old discussions with python developers talking about they will want one for the OS to be a success with them. Personally, I think a web app based IDE would be ghastly; but, you might have a look at Mozilla Skywriter (formerly Bespin): Why grashtly? I don't personally think the web makes a good framework for highly interactive applications as they must work within the constraints of the browser and IDEs are highly interactive applications by their very nature. Perhaps HTML5/CSS3 will change things; but, standard DOM manipulation, as I am accustomed to seeing it, cannot generate the kind of rendering that is available from native applications. Attempts to do so end up being kludgy. It also cannot handle the kinds of desktop integrations that are common for native applications without opening up serious security trust issues. (Can everybody say ActiveX fiasco?) Finally, there are difficulties in handling keystrokes without conflicting with the browser's native key bindings. I seldom ever touch a mouse and I am a huge fan of vi, mutt, slrn, screen, ratpoison, etc. where the primary interface is totally accessable through the keyboard without having to tab through many options. -- http://mail.python.org/mailman/listinfo/python-list -- Enviado desde mi dispositivo móvil Diego I. Hidalgo D. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Web App
On 2010-12-23, Hidura hid...@gmail.com wrote: Ok, but you are comparing a web-based framework with a native-based framework that use the components of the system to make all the things that need, a web-based framewok use the resourses of the browser to Right. That is exactly what I am comparing. make it all, so the developer that use a framework on the web can't expect get the same results, in my case i beleive that a web-based Which is exactly the problem with web apps that are highly interactive. My suggestion, is not to develope a web based IDE or use one. It just isn't something that the web was designed to do well. expect get the same results, in my case i beleive that a web-based framework adjust better to the needs if you'll make a web-app, Most IDEs that are targeted at web developement have a built in web browser or strong integration with one to run the web app as you are developing it. I don't see any advantage or the necessity of actually running the IDE code itself in the browser. otherwise use eclipse or netbeans. I would; but then, I wouldn't purchase an operating system that is entirely based on a web browser. -- http://mail.python.org/mailman/listinfo/python-list
Re: Re: Python Web App
Which is exactly the problem with web apps that are highly interactive. My suggestion, is not to develope a web based IDE or use one. It just isn't something that the web was designed to do well. Is not a problem of the IDE, the problem is on what the developer expect as i said i you want something to the desktop well use an IDE that creates apps for desktop, but if you need something for the web you can try on a web-based IDE. Most IDEs that are targeted at web developement have a built in web browser or strong integration with one to run the web app as you are developing it. I don't see any advantage or the necessity of actually running the IDE code itself in the browser. That's the problem an integration with one, my IDE works on all of them and the result is the same in IE and Chrome or FF, a web page cannot be designed to one browser it has to be designed to all the browser and have to be same. On the visualization is more difficult but nobody could control perfectly that but on the results of the data is has to be the same. I would; but then, I wouldn't purchase an operating system that is entirely based on a web browser. I support that, but the target of those OS are use the share resources of the pc, smartphone, etc and the server. On Dec 22, 2010 11:54pm, Tim Harig user...@ilthio.net wrote: On 2010-12-23, Hidura hid...@gmail.com wrote: Ok, but you are comparing a web-based framework with a native-based framework that use the components of the system to make all the things that need, a web-based framewok use the resourses of the browser to Right. That is exactly what I am comparing. make it all, so the developer that use a framework on the web can't expect get the same results, in my case i beleive that a web-based Which is exactly the problem with web apps that are highly interactive. My suggestion, is not to develope a web based IDE or use one. It just isn't something that the web was designed to do well. expect get the same results, in my case i beleive that a web-based framework adjust better to the needs if you'll make a web-app, Most IDEs that are targeted at web developement have a built in web browser or strong integration with one to run the web app as you are developing it. I don't see any advantage or the necessity of actually running the IDE code itself in the browser. otherwise use eclipse or netbeans. I would; but then, I wouldn't purchase an operating system that is entirely based on a web browser. -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: The Python Web Authoring and Application Pages
Travis, Great job - thanks for sharing your research! Note: you may want to add cherrypy.org to your framework page. This is an excellent, light weight, template agnostic framework. Turbogears runs on top of CherryPy. Malcolm -- http://mail.python.org/mailman/listinfo/python-list
The Python Web Authoring and Application Pages
I've got five pages of information linked to from here: http://www.subspacefield.org/~travis/ LWMLs template systems static web page generators microframeworks web app frameworks It seems like many web app programmers and web authors know one system, or possibly two, and so you don't often get good answers to the questions like which one should I choose?, and what features would make me choose one over the other? I suppose this is because most people just have to use whatever their employer is using, and few are in the enviable position of being able to choose. Man, that is a lot of work. And it just keeps growing; as I track down web app frameworks, for example, I discover new templating systems, and have to go back and update _that_ information, and then have to figure out if the other web app frameworks support it, and it also references some more templating languages as influencing it, and it just goes on and on... If I hadn't scrapped the idea of covering this for all languages, ruby and PHP would have given a combinatorial explosion beyond all measure.. For those who'd like to see such information overload, my initial attempt at this is here: http://www.subspacefield.org/~travis/static_blog_generators.html -- A Weapon of Mass Construction My emails do not have attachments; it's a digital signature that your mail program doesn't understand. | http://www.subspacefield.org/~travis/ If you are a spammer, please email j...@subspacefield.org to get blacklisted. pgphjoCNOQFVg.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list
Re: python web service or Apache?
On Sun, Oct 25, 2009 at 11:09 PM, Simon Forman sajmik...@gmail.com wrote: On Sun, Oct 25, 2009 at 4:47 PM, Peng Yu pengyu...@gmail.com wrote: Although, python can be used to provide web service. The following webpage also mentioned, Apache the best and most widely used web server on the Internet today, check it out. If you want to run your own web server this is the one to get, you can get binaries for both Windows and Unix. You can download the entire sourcecode if you want to check how it was made. Therefore, it would be better to use Apache rather than python to provide web service, right? http://fragments.turtlemeat.com/pythonwebserver.php Both best and better (that website and you, respectively) omit mention of the criteria used for the evaluation. To determine what is best you must first answer for what? (Also, it is reasonable to use /both/ apache and python together, with mod_python or mod_wsgi, etc...) I have never made a web server before. So I don't know what criterion I should use? If possible, would you please let me know what pros and cons you can think of? How to use apache and python together? Does each of them offer some functions that are not available in the other? Thank you! -- http://mail.python.org/mailman/listinfo/python-list
Re: python web service or Apache?
On Mon, Oct 26, 2009 at 10:00 AM, Peng Yu pengyu...@gmail.com wrote: On Sun, Oct 25, 2009 at 11:09 PM, Simon Forman sajmik...@gmail.com wrote: On Sun, Oct 25, 2009 at 4:47 PM, Peng Yu pengyu...@gmail.com wrote: Although, python can be used to provide web service. The following webpage also mentioned, Apache the best and most widely used web server on the Internet today, check it out. If you want to run your own web server this is the one to get, you can get binaries for both Windows and Unix. You can download the entire sourcecode if you want to check how it was made. Therefore, it would be better to use Apache rather than python to provide web service, right? http://fragments.turtlemeat.com/pythonwebserver.php Both best and better (that website and you, respectively) omit mention of the criteria used for the evaluation. To determine what is best you must first answer for what? (Also, it is reasonable to use /both/ apache and python together, with mod_python or mod_wsgi, etc...) I have never made a web server before. So I don't know what criterion I should use? If possible, would you please let me know what pros and cons you can think of? Well, criteria like, how much traffic do you need to support? How often will you be changing your code? Do you have your own server or are you using some sort of hosting plan with another company? Those are pretty general. I'm not a web server expert. I recently wrote a small server script. It's only job was to listen for POST requests from a third-party SVN repository service that indicated a commit had been made and then trigger a buildbot build/test cycle. For this the BaseHTTPServer module was sufficient. Apache is highly regarded, but I've heard Nginx is, or can be, faster (I don't know if that's true, but I've heard it...) Apache has a /lot/ of features and capabilities, which can mean it will have a steep learning curve (again depending on what you want to do with it.) But if you're using an OS with good package support, like Ubuntu linux, getting a basic Apache installation up and running takes one command. (And some time understanding the default configuration...) There are also options like CherryPy (http://www.cherrypy.org/) or Twisted Web (http://twistedmatrix.com/trac/) which are HTTP servers (and more) written in python. Probably the most important question to answer is, How much do you want to learn? How to use apache and python together? Does each of them offer some functions that are not available in the other? Thank you! You're welcome. :) Possibly the simplest method is to write a CGI script in python. I've already mentioned mod_python and mod_wsgi which are Apache modules that let you use python with Apache. There are also web frameworks like Django and TurboGears which can work with Apache. These options all offer different functions while providing essentially the same functionality. You'll have to do your own homework to figure out which is the best for you. Regards, ~Simon -- http://mail.python.org/mailman/listinfo/python-list
Re: python web service or Apache?
On 10/26/2009 08:00 AM, Peng Yu wrote: On Sun, Oct 25, 2009 at 11:09 PM, Simon Forman sajmik...@gmail.com wrote: On Sun, Oct 25, 2009 at 4:47 PM, Peng Yu pengyu...@gmail.com wrote: Although, python can be used to provide web service. The following webpage also mentioned, Apache the best and most widely used web server on the Internet today, check it out. If you want to run your own web server this is the one to get, you can get binaries for both Windows and Unix. You can download the entire sourcecode if you want to check how it was made. Therefore, it would be better to use Apache rather than python to provide web service, right? http://fragments.turtlemeat.com/pythonwebserver.php Both best and better (that website and you, respectively) omit mention of the criteria used for the evaluation. To determine what is best you must first answer for what? (Also, it is reasonable to use /both/ apache and python together, with mod_python or mod_wsgi, etc...) I have never made a web server before. So I don't know what criterion I should use? If possible, would you please let me know what pros and cons you can think of? Apache requires root access to the server machine, is quite complex and requires some learning and work to setup and use. On the other hand it is very powerful, will handle high traffic, and can handle the requirements of most any web site, so even if you start with a simple site you can be pretty sure it will handle your needs in the future as your web site grows. Because Apache is widely used, there an many places and people that can provide help and advice on how to run it. A small simple custom web server built with Python will likely only work well with a very small traffic volume and will have very limited capabilities but is very quick to get up and running. You can run it on a non-privileged port if you do not have root access to your server machine. How to use apache and python together? Does each of them offer some functions that are not available in the other? Thank you! Apache, like most general purpose web servers, supports the CGI protocol. You can setup Apache so that when a request is made for a file ending with .py, it will run the python file and send the program's output to the client browser. This allows you to generate html output from the Python program. Python's standard lib contains the cgi module that will help in writing python code for this. There are other more efficient ways of using Python with a web server such as mod_python, or wsgi, but cgi is probably the simplest, and has the most how-to info available. HTH -- http://mail.python.org/mailman/listinfo/python-list
Re: python web service or Apache?
ru...@yahoo.com writes: Apache requires root access to the server machine, Only to access the privileged ports. A small simple custom web server built with Python will likely... You can run it on a non-privileged port if you do not have root access to your server machine. You can do that with apache as well. Which is more complicated is a little bit subjective. I use both, and for something simple I generally find it easier to throw together a custom server with SocketServer.py, but it takes some familiarity with Python networking to be able to do that. -- http://mail.python.org/mailman/listinfo/python-list
Re: python web service or Apache?
En Sun, 25 Oct 2009 17:47:43 -0300, Peng Yu pengyu...@gmail.com escribió: Although, python can be used to provide web service. The following webpage also mentioned, Apache the best and most widely used web server on the Internet today, check it out. If you want to run your own web server this is the one to get, you can get binaries for both Windows and Unix. You can download the entire sourcecode if you want to check how it was made. Therefore, it would be better to use Apache rather than python to provide web service, right? Note that web server != web service. Apache is a web server; it handles HTTP requests to serve web pages, typically HTML documents, images, videos, etc. Usually those requests come from a human browsing the web. Apache is highly optimized to serve static documents (those that are already prebuilt, and aren't dependent on specific details of the current request, e.g. a photo). dynamic documents (e.g. your bank account statement) have to be generated for each specific request - there is a program behind those dynamic documents, and that program may be written in Python (or Perl, or PHP, or whatever). That is, Python is used to build dynamic content -- pages that cannot be prebuilt. Although you can write a web server in Python itself, and it works fine for low-volume sites, it cannot compete (in speed, number of concurrent transactions, and other features) with Apache or lighttpd. A web service is a program that exposes some sort of API that can be accessed thru a web interfase, mostly intended to be used by other programs, not humans. Web services usually are built on top of HTTP as the transport layer, so they run behind Apache or other web server. Python is perfectly adequate to write web services. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list
python web service or Apache?
Although, python can be used to provide web service. The following webpage also mentioned, Apache the best and most widely used web server on the Internet today, check it out. If you want to run your own web server this is the one to get, you can get binaries for both Windows and Unix. You can download the entire sourcecode if you want to check how it was made. Therefore, it would be better to use Apache rather than python to provide web service, right? http://fragments.turtlemeat.com/pythonwebserver.php -- http://mail.python.org/mailman/listinfo/python-list
Re: python web service or Apache?
On Sun, Oct 25, 2009 at 4:47 PM, Peng Yu pengyu...@gmail.com wrote: Although, python can be used to provide web service. The following webpage also mentioned, Apache the best and most widely used web server on the Internet today, check it out. If you want to run your own web server this is the one to get, you can get binaries for both Windows and Unix. You can download the entire sourcecode if you want to check how it was made. Therefore, it would be better to use Apache rather than python to provide web service, right? http://fragments.turtlemeat.com/pythonwebserver.php Both best and better (that website and you, respectively) omit mention of the criteria used for the evaluation. To determine what is best you must first answer for what? (Also, it is reasonable to use /both/ apache and python together, with mod_python or mod_wsgi, etc...) Regards, ~Simon -- http://mail.python.org/mailman/listinfo/python-list
python web mail clients, are there any decent ones?
Hi, I've been looking but it seems I cannot find a decent web mail client on a python platform. I'm looking for something like roundcube or conjoon or thehorde, but I don't want to use a PHP solution mostly because the web app is python (django) and I want to continue using the apache worker mpm (php needs prefork, as it's not thread safe). Doesn't matter if imap or pop3, although I'd prefer direct maildir access. Has anyone come along anything nice? Thanks, BL -- http://mail.python.org/mailman/listinfo/python-list
[ANN] Pyjamas 0.6pre2 Python Web Widget Set and Javascript Compiler
http://pyjs.org this is a pre-release announcement, 0.6pre2, of the pyjamas widget set and python-to-javascript compiler. there are over 110 entries in the CHANGELOG since the last stable release, 0.5p1, and so it was deemed sensible to invite people to test this version before its next stable release, 0.6. pyjamas, being a port of GWT to python, comprises four main components: * a stand-alone python-to-javascript compiler * a desktop-based wrapper around python-xpcom or pywebkitgtk * a browser DOM model wrapper interface * a widget set similar to pygtk2 / pyqt4, based on DOM manipulation significantly in the 0.6 series, pyjamas-desktop has been incorporated into the build: python Hello.py will start a stand-alone app (just as you would with pygtk2 or pyqt4) and pyjsbuild Hello will compile the javascript version(s). the combination means that pyjamas can run python applications - unmodified - in all major web browsers, or on the desktop (using gecko or webkit) in a similar fashion to adobe AIR. in the javascript version: somewhere along the line, a massive performance hit was introduced by accident. this has now been fixed. however, random desperate attempts to improve performance, before the mistake was corrected, mean that the pyjamas 0.6pre2 python-to-javascript compiler produces code that is stunningly quick. also in the 0.6pre2 release, strict python options have now been introduced, so that developers can expect much more support for the standard python 2.5 / 2.6 language semantics. the -O option disables many of these features, bringing a quite significant speed increase, by sacrificing python compatibility. that's just the way it has to be. downloads can be found by following the links from http://pyjs.org - sourceforge, code.google.com, pypi, all the usual places. lastly - thank you to everyone who's helped with pyjamas: bernd, bernd, jurgen, christian, kees, ondrej and many more, and especially thank you to the people who helped out by pointing out bugs in the 0.6pre1 release, please keep it up! l. -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
[ANN] Pyjamas 0.6pre2 Python Web Widget Set and Javascript Compiler
http://pyjs.org this is a pre-release announcement, 0.6pre2, of the pyjamas widget set and python-to-javascript compiler. there are over 110 entries in the CHANGELOG since the last stable release, 0.5p1, and so it was deemed sensible to invite people to test this version before its next stable release, 0.6. pyjamas, being a port of GWT to python, comprises four main components: * a stand-alone python-to-javascript compiler * a desktop-based wrapper around python-xpcom or pywebkitgtk * a browser DOM model wrapper interface * a widget set similar to pygtk2 / pyqt4, based on DOM manipulation significantly in the 0.6 series, pyjamas-desktop has been incorporated into the build: python Hello.py will start a stand-alone app (just as you would with pygtk2 or pyqt4) and pyjsbuild Hello will compile the javascript version(s). the combination means that pyjamas can run python applications - unmodified - in all major web browsers, or on the desktop (using gecko or webkit) in a similar fashion to adobe AIR. in the javascript version: somewhere along the line, a massive performance hit was introduced by accident. this has now been fixed. however, random desperate attempts to improve performance, before the mistake was corrected, mean that the pyjamas 0.6pre2 python-to-javascript compiler produces code that is stunningly quick. also in the 0.6pre2 release, strict python options have now been introduced, so that developers can expect much more support for the standard python 2.5 / 2.6 language semantics. the -O option disables many of these features, bringing a quite significant speed increase, by sacrificing python compatibility. that's just the way it has to be. downloads can be found by following the links from http://pyjs.org - sourceforge, code.google.com, pypi, all the usual places. lastly - thank you to everyone who's helped with pyjamas: bernd, bernd, jurgen, christian, kees, ondrej and many more, and especially thank you to the people who helped out by pointing out bugs in the 0.6pre1 release, please keep it up! l. -- http://mail.python.org/mailman/listinfo/python-list
Re: Best Python Web Framework ?
On 21 Nisan, 23:56, laplacia...@gmail.com laplacia...@gmail.com wrote: On Apr 21, 2:46 pm, SKYLAB zky...@gmail.com wrote: Greetings.. First , my english is not good . I heard that was written in python ( Youtube Programming Language : PYTHON :S ) Correct ? That's not correct ? Then youtube is PHP application ? That's correct ; Which python web framework in friendfeed ? Web.py ? Django ? web2py ? Thanks.. There may not be a best web framework -- only one that is best for you and what you need to do with it. If you want a large and feature-rich framework, try django. If you want something smaller and simpler, maybe try Karrigell. Also, Werkzeughttp://werkzeug.pocoo.org/seems actively developed and well- documented. Dunno what youtube or friendfeed use. Google might tell you. Enjoy experimenting. :) Thanks. Django 4EVER :) -- http://mail.python.org/mailman/listinfo/python-list
Re: Best Python Web Framework ?
On Apr 21, 11:46 am, SKYLAB zky...@gmail.com wrote: Greetings.. First , my english is not good . I heard that was written in python ( Youtube Programming Language : PYTHON :S ) Correct ? That's not correct ? Then youtube is PHP application ? That's correct ; Which python web framework in friendfeed ? Web.py ? Django ? web2py ? Thanks.. FriendFeed has an in-house framework inspired by web.py and Appengine's webapp. It was written by Bret Taylor, who was the PM of appengine when it started, but is now working for FriendFeed. http://news.ycombinator.com/item?id=523544 -- http://mail.python.org/mailman/listinfo/python-list