[issue34981] Unable to install Python from web-based installer and executable installer

2019-02-22 Thread Inada Naoki


Change by Inada Naoki :


--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34981] Unable to install Python from web-based installer and executable installer

2018-10-15 Thread Steve Dower


Steve Dower  added the comment:

When you run the installer, it should create log files in your %TEMP% 
directory. Could you find and attach those here please?

There's a chance it is detecting that your system is unsupported. If you are 
still using Windows Vista, ensure you have installed all available updates and 
service packs, and then try installing Python 3.6 (the latest version, 3.7, 
does not support Windows Vista any more).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34981] Unable to install Python from web-based installer and executable installer

2018-10-14 Thread Eric V. Smith


Change by Eric V. Smith :


--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34981] Unable to install Python from web-based installer and executable installer

2018-10-14 Thread skycraper


New submission from skycraper :

I have a PC with 2 HDD with 2 Vista OS at each other. One system is old and it 
has Python 3.7 installed and working successfully. The second system is 
new-installed and it has a problems with running web-based installers and 
executable-installer of the latest Python`s version from there: 
https://www.python.org/downloads/windows/ 

So I can run an install from any MSI-package for every version, but 3.5-3.7 
versions don`t have it. When I`m trying to install wb-inst or exe-inst nothing 
happens: no error window, no system lags etc. 

I suppose that this problem connected with Microsoft libraries or extensions. I 
installed all Visual Studio C++ packages, but it didn`t help. 

Could you tell me which components I forgot to intall.

--
components: Installation
messages: 327704
nosy: skycraper
priority: normal
severity: normal
status: open
title: Unable to install Python from web-based installer and executable 
installer
type: crash
versions: Python 3.7

___
Python tracker 
<https://bugs.python.org/issue34981>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Python for WEB-page !?

2017-01-19 Thread Johann Spies
It might be worth while to look at web2py (http://web2py.com).

Here is a good tutorial: http://killer-web-development.com/

Regards
Johann

-- 
Because experiencing your loyal love is better than life itself,
my lips will praise you.  (Psalm 63:3)
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python for WEB-page !?

2017-01-08 Thread Eric S. Johansson
On 1/5/2017 7:48 PM, Michael Torrie wrote:
> While Python can do that, using a web framework to process HTTP requests
> and generate HTML to display in the browser, I don't believe Python is
> the appropriate language for the task at hand.  Most web sites that do
> interactive formula calculations like you describe do it all in the
> browser using Javascript.  No need to have a web server do all that
> heavy lifting at all.  A simple html file would contain everything you need.
>
> Even if you want to use Python to generate the web page and process
> events, you'll still have to master Javascript at some point to make the
> webpages more interactive.

There are a few implementations of Python that generate code that can
run the browser. I'm currently using brython and its significantly
easier than struggling with JavaScript. It's not perfect by any means,
it has its own quirks and bugs but the developer is very responsive, the
product is getting better every month and I like to see the Python
community give it a bit more love

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python for WEB-page !?

2017-01-06 Thread Michael Torrie
On 01/05/2017 04:53 PM, Victor Porton wrote:
> Ionut Predoiu wrote:
>
>> I am a beginner in programming language.
>> I want to know what version of Python I must to learn to use, beside of
>> basic language, because I want to integrate in my site 1 page in which
>> users to can made calculus based on my formulas already write behind (the
>> users will only complete some field, and after push "Calculate" button
>> will see the results in form of: table, graphic, and so on ...). Please
>> take into account that behind will be more mathematical
>> equations/formulas, so the speed I think must be take into account.
>
> Consider PyPi. I never used it, but they say, it is faster than usual
> CPython interpreter.

With respect, I don't think it's appropriate to direct a python beginner to 
PyPi.  Far better to direct him to the relevant resources (like Django) and 
focus him on the standard Python interpreter, hopefully version 3.

Besides that, there's the old expression. Premature optimization is the root of 
all evil.  Until Python is shown to be too slow for a given task, it's 
premature to think about speedups like Cython or even PyPi.

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python for WEB-page !?

2017-01-06 Thread Michael Torrie
On 01/05/2017 05:57 AM, Ionut Predoiu wrote:
> Good afternoon,
>
> I am a beginner in programming language. I want to know what version
> of Python I must to learn to use, beside of basic language, because I
> want to integrate in my site 1 page in which users to can made
> calculus based on my formulas already write behind (the users will
> only complete some field, and after push "Calculate" button will see
> the results in form of: table, graphic, and so on ...). Please take
> into account that behind will be more mathematical
> equations/formulas, so the speed I think must be take into account.

While Python can do that, using a web framework to process HTTP requests and 
generate HTML to display in the browser, I don't believe Python is the 
appropriate language for the task at hand.  Most web sites that do interactive 
formula calculations like you describe do it all in the browser using 
Javascript.  No need to have a web server do all that heavy lifting at all.  A 
simple html file would contain everything you need.

Even if you want to use Python to generate the web page and process events, 
you'll still have to master Javascript at some point to make the webpages more 
interactive.

-- 
https://mail.python.org/mailman/listinfo/python-list


RE: Python for WEB-page !?

2017-01-06 Thread Deborah Swanson
Ionut Predoiu wrote, on January 05, 2017 11:07 PM
>
> Good morning,
>
> Thanks to all for feedback and advice.
> Because I am a beginner I will read more about versions of
> Python recommended by you.
>
> On the other side I am interested to know if exist some sites
> which have develop platform where can be use for free Python
> from browsers, without have it installed on PC/laptop. As
> beginner I want to practice from everywhere.

There's a website called Python Tutor where you can write Python programs and 
it will show you the structures built in memory as it executes. It's  very 
useful for seeing how recursive functions work, or any function or class you 
call. It will also work for simple programs and it has an output console you 
can print to.  (Well, it's more like a print window, but it works.) Very good 
for beginners, I used it all the time when I was first learning, and I still 
use it for recursive functions, since PyCharm doesn't step through recursion in 
a clear way.

http://pythontutor.com/


> I waiting with higher interest your feedback.
>
> Thanks to all members of community for support and advice.
> Keep in touch.
> Kind regards.
>
>
>
> On Thursday, January 5, 2017 at 2:57:23 PM UTC+2, Ionut Predoiu wrote:
> > Good afternoon,
> >
> > I am a beginner in programming language.
> > I want to know what version of Python I must to learn to
> use, beside of basic language, because I want to integrate in
> my site 1 page in which users to can made calculus based on
> my formulas already write behind (the users will only
> complete some field, and after push "Calculate" button will
> see the results in form of: table, graphic, and so on ...).
> > Please take into account that behind will be more
> mathematical equations/formulas, so the speed I think must be
> take into account.
> >
> > I waiting with higher interest your feedback.
> >
> > Thanks to all members of community for support and advice. Keep in
> > touch. Kind regards.
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python for WEB-page !?

2017-01-06 Thread Victor Porton
Ionut Predoiu wrote:

> I am a beginner in programming language.
> I want to know what version of Python I must to learn to use, beside of
> basic language, because I want to integrate in my site 1 page in which
> users to can made calculus based on my formulas already write behind (the
> users will only complete some field, and after push "Calculate" button
> will see the results in form of: table, graphic, and so on ...). Please
> take into account that behind will be more mathematical
> equations/formulas, so the speed I think must be take into account.

Consider PyPi. I never used it, but they say, it is faster than usual CPython 
interpreter.

> I waiting with higher interest your feedback.
>
> Thanks to all members of community for support and advice.
> Keep in touch.
> Kind regards.

--
Victor Porton - http://portonvictor.org

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python for WEB-page !?

2017-01-06 Thread Ionut Predoiu
Good morning,

Thanks to all for feedback and advice. Because I am a beginner I will read more 
about versions of Python recommended by you.

On the other side I am interested to know if exist some sites which have 
develop platform where can be use for free Python from browsers, without have 
it installed on PC/laptop. As beginner I want to practice from everywhere.

I waiting with higher interest your feedback.

Thanks to all members of community for support and advice. Keep in touch.
Kind regards.



On Thursday, January 5, 2017 at 2:57:23 PM UTC+2, Ionut Predoiu wrote:
> Good afternoon,
>
> I am a beginner in programming language.
> I want to know what version of Python I must to learn to use, beside of basic
language, because I want to integrate in my site 1 page in which users to can 
made calculus based on my formulas already write behind (the users will only 
complete some field, and after push "Calculate" button will see the results in 
form of: table, graphic, and so on ...).
> Please take into account that behind will be more mathematical
equations/formulas, so the speed I think must be take into account.
>
> I waiting with higher interest your feedback.
>
> Thanks to all members of community for support and advice.
> Keep in touch.
> Kind regards.

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python for WEB-page !?

2017-01-06 Thread Ionut Predoiu
Good afternoon,

Thank you for advice and promptitude in answer.

Keep in touch for further questions.
Kind regards.

On Thursday, January 5, 2017 at 2:57:23 PM UTC+2, Ionut Predoiu wrote:
> Good afternoon,
> 
> I am a beginner in programming language. 
> I want to know what version of Python I must to learn to use, beside of basic 
> language, because I want to integrate in my site 1 page in which users to can 
> made calculus based on my formulas already write behind (the users will only 
> complete some field, and after push "Calculate" button will see the results 
> in form of: table, graphic, and so on ...). 
> Please take into account that behind will be more mathematical 
> equations/formulas, so the speed I think must be take into account.
> 
> I waiting with higher interest your feedback.
> 
> Thanks to all members of community for support and advice.
> Keep in touch.
> Kind regards.

-- 
https://mail.python.org/mailman/listinfo/python-list


RE: Python for WEB-page !?

2017-01-06 Thread Deborah Swanson
Ionut Predoiu wrote, on January 05, 2017 11:07 PM
> 
> Good morning,
> 
> Thanks to all for feedback and advice.
> Because I am a beginner I will read more about versions of 
> Python recommended by you.
> 
> On the other side I am interested to know if exist some sites 
> which have develop platform where can be use for free Python 
> from browsers, without have it installed on PC/laptop. As 
> beginner I want to practice from everywhere.

There's a website called Python Tutor where you can write Python
programs and it will show you the structures built in memory as it
executes. It's  very useful for seeing how recursive functions work, or
any function or class you call. It will also work for simple programs
and it has an output console you can print to.  (Well, it's more like a
print window, but it works.) Very good for beginners, I used it all the
time when I was first learning, and I still use it for recursive
functions, since PyCharm doesn't step through recursion in a clear way.

http://pythontutor.com/

 
> I waiting with higher interest your feedback. 
> 
> Thanks to all members of community for support and advice. 
> Keep in touch. 
> Kind regards. 
> 
> 
> 
> On Thursday, January 5, 2017 at 2:57:23 PM UTC+2, Ionut Predoiu wrote:
> > Good afternoon,
> > 
> > I am a beginner in programming language.
> > I want to know what version of Python I must to learn to 
> use, beside of basic language, because I want to integrate in 
> my site 1 page in which users to can made calculus based on 
> my formulas already write behind (the users will only 
> complete some field, and after push "Calculate" button will 
> see the results in form of: table, graphic, and so on ...). 
> > Please take into account that behind will be more 
> mathematical equations/formulas, so the speed I think must be 
> take into account.
> > 
> > I waiting with higher interest your feedback.
> > 
> > Thanks to all members of community for support and advice. Keep in 
> > touch. Kind regards.
> 
> -- 
> https://mail.python.org/mailman/listinfo/python-list
> 

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python for WEB-page !?

2017-01-06 Thread Ionut Predoiu
Good morning,

Thanks to all for feedback and advice.
Because I am a beginner I will read more about versions of Python recommended 
by you.

On the other side I am interested to know if exist some sites which have 
develop platform where can be use for free Python from browsers, without have 
it installed on PC/laptop. As beginner I want to practice from everywhere.

I waiting with higher interest your feedback. 

Thanks to all members of community for support and advice. 
Keep in touch. 
Kind regards. 



On Thursday, January 5, 2017 at 2:57:23 PM UTC+2, Ionut Predoiu wrote:
> Good afternoon,
> 
> I am a beginner in programming language. 
> I want to know what version of Python I must to learn to use, beside of basic 
> language, because I want to integrate in my site 1 page in which users to can 
> made calculus based on my formulas already write behind (the users will only 
> complete some field, and after push "Calculate" button will see the results 
> in form of: table, graphic, and so on ...). 
> Please take into account that behind will be more mathematical 
> equations/formulas, so the speed I think must be take into account.
> 
> I waiting with higher interest your feedback.
> 
> Thanks to all members of community for support and advice.
> Keep in touch.
> Kind regards.

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python for WEB-page !?

2017-01-05 Thread breamoreboy
On Thursday, January 5, 2017 at 11:53:51 PM UTC, Victor Porton wrote:
> Ionut Predoiu wrote:
> 
> > I am a beginner in programming language.
> > I want to know what version of Python I must to learn to use, beside of
> > basic language, because I want to integrate in my site 1 page in which
> > users to can made calculus based on my formulas already write behind (the
> > users will only complete some field, and after push "Calculate" button
> > will see the results in form of: table, graphic, and so on ...). Please
> > take into account that behind will be more mathematical
> > equations/formulas, so the speed I think must be take into account.
> 
> Consider PyPi. I never used it, but they say, it is faster than usual 
> CPython interpreter.
> 

Really?  I'd strongly contrast the Python Package Index 
https://pypi.python.org/pypi with the Python implementation pypy at 
http://pypy.org/ :)

> -- 
> Victor Porton - http://portonvictor.org

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python for WEB-page !?

2017-01-05 Thread Michael Torrie
On 01/05/2017 05:57 AM, Ionut Predoiu wrote:
> Good afternoon,
> 
> I am a beginner in programming language. I want to know what version
> of Python I must to learn to use, beside of basic language, because I
> want to integrate in my site 1 page in which users to can made
> calculus based on my formulas already write behind (the users will
> only complete some field, and after push "Calculate" button will see
> the results in form of: table, graphic, and so on ...). Please take
> into account that behind will be more mathematical
> equations/formulas, so the speed I think must be take into account.

While Python can do that, using a web framework to process HTTP requests
and generate HTML to display in the browser, I don't believe Python is
the appropriate language for the task at hand.  Most web sites that do
interactive formula calculations like you describe do it all in the
browser using Javascript.  No need to have a web server do all that
heavy lifting at all.  A simple html file would contain everything you need.

Even if you want to use Python to generate the web page and process
events, you'll still have to master Javascript at some point to make the
webpages more interactive.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python for WEB-page !?

2017-01-05 Thread Michael Torrie
On 01/05/2017 04:53 PM, Victor Porton wrote:
> Ionut Predoiu wrote:
> 
>> I am a beginner in programming language.
>> I want to know what version of Python I must to learn to use, beside of
>> basic language, because I want to integrate in my site 1 page in which
>> users to can made calculus based on my formulas already write behind (the
>> users will only complete some field, and after push "Calculate" button
>> will see the results in form of: table, graphic, and so on ...). Please
>> take into account that behind will be more mathematical
>> equations/formulas, so the speed I think must be take into account.
> 
> Consider PyPi. I never used it, but they say, it is faster than usual 
> CPython interpreter.

With respect, I don't think it's appropriate to direct a python beginner
to PyPi.  Far better to direct him to the relevant resources (like
Django) and focus him on the standard Python interpreter, hopefully
version 3.

Besides that, there's the old expression. Premature optimization is the
root of all evil.  Until Python is shown to be too slow for a given
task, it's premature to think about speedups like Cython or even PyPi.


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python for WEB-page !?

2017-01-05 Thread Victor Porton
Ionut Predoiu wrote:

> I am a beginner in programming language.
> I want to know what version of Python I must to learn to use, beside of
> basic language, because I want to integrate in my site 1 page in which
> users to can made calculus based on my formulas already write behind (the
> users will only complete some field, and after push "Calculate" button
> will see the results in form of: table, graphic, and so on ...). Please
> take into account that behind will be more mathematical
> equations/formulas, so the speed I think must be take into account.

Consider PyPi. I never used it, but they say, it is faster than usual 
CPython interpreter.

> I waiting with higher interest your feedback.
> 
> Thanks to all members of community for support and advice.
> Keep in touch.
> Kind regards.

-- 
Victor Porton - http://portonvictor.org
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python for WEB-page !?

2017-01-05 Thread Uri Even-Chen
I recommend starting with Python 3, I also use it (3.5.2) for my Django
projects - Speedy Net and Speedy Match.

Uri.


*Uri Even-Chen*
[image: photo] Phone: +972-54-3995700
Email: u...@speedy.net
Website: http://www.speedysoftware.com/uri/en/
  
    


On Thu, Jan 5, 2017 at 5:18 PM, Chris Angelico  wrote:

> On Thu, Jan 5, 2017 at 11:57 PM, Ionut Predoiu 
> wrote:
> > I am a beginner in programming language.
> > I want to know what version of Python I must to learn to use, beside of
> basic language, because I want to integrate in my site 1 page in which
> users to can made calculus based on my formulas already write behind (the
> users will only complete some field, and after push "Calculate" button will
> see the results in form of: table, graphic, and so on ...).
> > Please take into account that behind will be more mathematical
> equations/formulas, so the speed I think must be take into account.
> >
>
> Building a web site can be done with Flask, Django, aiohttp, or a
> number of other frameworks. Generating graphs can be done with
> matplotlib. Speed won't be a problem - a computer can do a LOT of
> mathematical calculations in the time it takes to request something
> over the internet.
>
> Have fun exploring!
>
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python for WEB-page !?

2017-01-05 Thread Chris Angelico
On Thu, Jan 5, 2017 at 11:57 PM, Ionut Predoiu  wrote:
> I am a beginner in programming language.
> I want to know what version of Python I must to learn to use, beside of basic 
> language, because I want to integrate in my site 1 page in which users to can 
> made calculus based on my formulas already write behind (the users will only 
> complete some field, and after push "Calculate" button will see the results 
> in form of: table, graphic, and so on ...).
> Please take into account that behind will be more mathematical 
> equations/formulas, so the speed I think must be take into account.
>

Building a web site can be done with Flask, Django, aiohttp, or a
number of other frameworks. Generating graphs can be done with
matplotlib. Speed won't be a problem - a computer can do a LOT of
mathematical calculations in the time it takes to request something
over the internet.

Have fun exploring!

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Python for WEB-page !?

2017-01-05 Thread Ionut Predoiu
Good afternoon,

I am a beginner in programming language. 
I want to know what version of Python I must to learn to use, beside of basic 
language, because I want to integrate in my site 1 page in which users to can 
made calculus based on my formulas already write behind (the users will only 
complete some field, and after push "Calculate" button will see the results in 
form of: table, graphic, and so on ...). 
Please take into account that behind will be more mathematical 
equations/formulas, so the speed I think must be take into account.

I waiting with higher interest your feedback.

Thanks to all members of community for support and advice.
Keep in touch.
Kind regards.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Moving to Python for web

2013-09-05 Thread Wayne Werner


On Thu, 29 Aug 2013, Andreas Ecaz wrote:


I've decided to go with Flask! It's now running on UWSGI with NGINX. Hopefully 
I can get some stuff done :)


@Chris “Kwpolska” Warrick

I just don't like the big frameworks, for me there is too much magic going on.


I'm a huge fan of Flask - I also find that when you start to learn more 
and more about Flask you can see how Django would be super useful, if you 
need all the bells and whistles.


-W-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Moving to Python for web

2013-08-29 Thread sepatan
Here, for example, take a look:
http://www.clips.ua.ac.be/pages/pattern

 So, I have been working in PHP for several years but I want to learn
 something new. That something new is Python. But since I'm a web developer
 I want to build stuff for the web.

 I don't want to use Django because it's too bloated, it seem to do
 everything for you. I don't like that. I want to do the plumbing. But at
 the same time I have no idea how I would write something that could handle
 cookies, sessions, post, get etc etc; so I assume I have to use some kind
 of web framework.

 So, can you recommend a minimal web framework that still allows me to
 write in Python? Furthermore, do I even need one? I am currently running
 NGINX and I have UWSGI installed. I'm just worried about how I would
 handle form submissions, get requests and sessions/cookies.

 Any advice would be greatly appreciated.
 --
 http://mail.python.org/mailman/listinfo/python-list


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Moving to Python for web

2013-08-29 Thread Sam Fourman Jr.
On Wed, Aug 28, 2013 at 4:14 PM, ecazs@gmail.com wrote:

 So, I have been working in PHP for several years but I want to learn
 something new. That something new is Python. But since I'm a web developer
 I want to build stuff for the web.

 I don't want to use Django because it's too bloated, it seem to do
 everything for you. I don't like that. I want to do the plumbing. But at
 the same time I have no idea how I would write something that could handle
 cookies, sessions, post, get etc etc; so I assume I have to use some kind
 of web framework.

 So, can you recommend a minimal web framework that still allows me to
 write in Python? Furthermore, do I even need one? I am currently running
 NGINX and I have UWSGI installed. I'm just worried about how I would handle
 form submissions, get requests and sessions/cookies.

 Any advice would be greatly appreciated.
 --
 http://mail.python.org/mailman/listinfo/python-list



I am in the same boat as you, I need to rid myself of php, and ruby doesn't
feel right..
I like python for system admin stuff.. it seems everything has python
bindings :)

there are MANY micro frameworks, I have been following these guys for a few
years
http://www.pocoo.org/

specifically jinja2 and flask looks to be the best choice out of all the
options out there

-- 

Sam Fourman Jr.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Moving to Python for web

2013-08-29 Thread Chris “Kwpolska” Warrick
On Thu, Aug 29, 2013 at 4:18 AM, Sam Fourman Jr. sfour...@gmail.com wrote:
 there are MANY micro frameworks, I have been following these guys for a few
 years
 http://www.pocoo.org/

+1.  The Pocoo team makes many awesome things.

 specifically jinja2 and flask looks to be the best choice out of all the
 options out there

Jinja2 is a standalone templating engine, something like Smarty for
PHP.  And Flask is a microframework, which adds on top of Jinja2 (not
mandatory) and Werkzeug (another Pocoo project) to make a nice and
easy webdevelopment base.  IMO it is the best choice in terms of
microframeworks.

But microframeworks are, as the name states, micro.  The big
frameworks include tons of abstractions and fancy features.  Some
people may like them, others may not.  (Those features can obviously
be implemented in the microframeworks on one’s own or through existing
open-source code.)

-- 
Chris “Kwpolska” Warrick http://kwpolska.tk
PGP: 5EAAEA16
stop html mail | always bottom-post | only UTF-8 makes sense
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Moving to Python for web

2013-08-29 Thread Andreas Ecaz
I've decided to go with Flask! It's now running on UWSGI with NGINX. Hopefully 
I can get some stuff done :)


@Chris “Kwpolska” Warrick

I just don't like the big frameworks, for me there is too much magic going on.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Moving to Python for web

2013-08-29 Thread Chris “Kwpolska” Warrick
On Thu, Aug 29, 2013 at 2:45 PM, Andreas Ecaz ecazs@gmail.com wrote:
 I've decided to go with Flask! It's now running on UWSGI with NGINX. 
 Hopefully I can get some stuff done :)

How are you running uWSGI?  On sane (non-Windows) OSes, I recommend
using the uWSGI Emperor, which will protect you from your website
going down when something crashes.  You run the Emperor through your
OS’s init system (e.g. upstart in Ubuntu, systemd in many others).

-- 
Chris “Kwpolska” Warrick http://kwpolska.tk
PGP: 5EAAEA16
stop html mail | always bottom-post | only UTF-8 makes sense
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Moving to Python for web

2013-08-29 Thread Andreas Ecaz
On Thursday, August 29, 2013 3:10:03 PM UTC+2, Chris “Kwpolska” Warrick wrote:
 On Thu, Aug 29, 2013 at 2:45 PM, Andreas Ecaz ecaz wrote:
 
  I've decided to go with Flask! It's now running on UWSGI with NGINX. 
  Hopefully I can get some stuff done :)
 
 
 
 How are you running uWSGI?  On sane (non-Windows) OSes, I recommend
 
 using the uWSGI Emperor, which will protect you from your website
 
 going down when something crashes.  You run the Emperor through your
 
 OS’s init system (e.g. upstart in Ubuntu, systemd in many others).
 
 
 
 -- 
 
 Chris “Kwpolska” Warrick http://kwpolska.tk
 
 PGP: 5EAAEA16
 
 stop html mail | always bottom-post | only UTF-8 makes sense

Well, I know I'm not using Emperor. I'm fairly new to managing servers myself 
but I'll take a look at how to set that up.
-- 
http://mail.python.org/mailman/listinfo/python-list


Moving to Python for web

2013-08-28 Thread ecazs . net
So, I have been working in PHP for several years but I want to learn something 
new. That something new is Python. But since I'm a web developer I want to 
build stuff for the web.

I don't want to use Django because it's too bloated, it seem to do everything 
for you. I don't like that. I want to do the plumbing. But at the same time I 
have no idea how I would write something that could handle cookies, sessions, 
post, get etc etc; so I assume I have to use some kind of web framework.

So, can you recommend a minimal web framework that still allows me to write in 
Python? Furthermore, do I even need one? I am currently running NGINX and I 
have UWSGI installed. I'm just worried about how I would handle form 
submissions, get requests and sessions/cookies.

Any advice would be greatly appreciated.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Moving to Python for web

2013-08-28 Thread Joel Goldstick
On Wed, Aug 28, 2013 at 4:14 PM,  ecazs@gmail.com wrote:
 So, I have been working in PHP for several years but I want to learn 
 something new. That something new is Python. But since I'm a web developer I 
 want to build stuff for the web.

 I don't want to use Django because it's too bloated, it seem to do everything 
 for you. I don't like that. I want to do the plumbing. But at the same time 
 I have no idea how I would write something that could handle cookies, 
 sessions, post, get etc etc; so I assume I have to use some kind of web 
 framework.

 So, can you recommend a minimal web framework that still allows me to write 
 in Python? Furthermore, do I even need one? I am currently running NGINX and 
 I have UWSGI installed. I'm just worried about how I would handle form 
 submissions, get requests and sessions/cookies.

 Any advice would be greatly appreciated.

I like django, but you may want to google python micro web framework

There are a handful with some following so that there are communities,
docs, etc available

As to get/cookies/sessions check out the requests module (3rd party -
well received) http://docs.python-requests.org/en/latest/
 --
 http://mail.python.org/mailman/listinfo/python-list



-- 
Joel Goldstick
http://joelgoldstick.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Moving to Python for web

2013-08-28 Thread Andreas Ecaz
On Wednesday, August 28, 2013 11:08:52 PM UTC+2, Joel Goldstick wrote:
 On Wed, Aug 28, 2013 at 4:14 PM,  Ecaz wrote:
 
  So, I have been working in PHP for several years but I want to learn 
  something new. That something new is Python. But since I'm a web developer 
  I want to build stuff for the web.
 
 
 
  I don't want to use Django because it's too bloated, it seem to do 
  everything for you. I don't like that. I want to do the plumbing. But at 
  the same time I have no idea how I would write something that could handle 
  cookies, sessions, post, get etc etc; so I assume I have to use some kind 
  of web framework.
 
 
 
  So, can you recommend a minimal web framework that still allows me to write 
  in Python? Furthermore, do I even need one? I am currently running NGINX 
  and I have UWSGI installed. I'm just worried about how I would handle form 
  submissions, get requests and sessions/cookies.
 
 
 
  Any advice would be greatly appreciated.
 
 
 
 I like django, but you may want to google python micro web framework
 
 
 
 There are a handful with some following so that there are communities,
 
 docs, etc available
 
 
 
 As to get/cookies/sessions check out the requests module (3rd party -
 
 well received) http://docs.python-requests.org/en/latest/
 
  --
 
  http://mail.python.org/mailman/listinfo/python-list
 
 
 
 
 
 
 
 -- 
 
 Joel Goldstick
 
 http://joelgoldstick.com

I've looked at Flask, Bottle and Web.py. I quite like the look of Bottle. I'll 
keep looking for some other microframeworks, maybe I can find something else 
that interests me.

Thank you.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Moving to Python for web

2013-08-28 Thread Andreas Ecaz
On Wednesday, August 28, 2013 11:25:44 PM UTC+2, Andreas Ecaz wrote:
 I've looked at Flask, Bottle and Web.py. I quite like the look of Bottle. 
 I'll keep looking for some other microframeworks, maybe I can find something 
 else that interests me.
 
 
 
 Thank you.

At the moment I'm worried about writing more framework than python (if that 
makes sense) which seems unlikely with MOST microframeworks.
-- 
http://mail.python.org/mailman/listinfo/python-list


Python in web development

2013-03-03 Thread Sarbjit singh
Hello All,

I have been using Python as a scripting language for my office tasks. Now I 
have been thinking of using (and learning as well) for web development. For my 
tasks, I need to perform some tasks and report on the web. Now I have no 
experience of web development with Python. So, I want to conform first whether 
Python is best for web development. Python is my personal choice for my 
automation works and I want to extend it for web development.

REQUIREMENT:
I need to develop a html form which would take user input and perform some 
operations (generate intermediate files) and report result on web.

 Some guys in my organization are using Perl for this purpose and thus I 
 could get the setup for free.But I want to learn and use Python as 
 substitute for Perl. (PHP could also be an option. I have worked on PHP once 
 for handling the form data.)

So my questions are:-

1. Can I use Python (I want to use personally :)) over PHP/Perl?

2. If Yes, I want to know the modules that I should learn for achieving my 
requirement. I searched internet and found Python provides CGI, Django etc.

I don't much about Django/CGI, please suggest which module I should learn and 
use.

Thanks
Sarbjit
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python in web development

2013-03-03 Thread becky_lewis
1) Python is absolutely fine for web development. It's just as good, if not 
better than PHP or Perl for this sort of work (that's my opinion anyway).

2) I've used Django quite extensively and it can certainly handle your 
requirements. You might want to have a look at Flask (http://flask.pocoo.org/) 
as it's not quite as heavy as Django so would possibly suit your needs a little 
better.


On Sunday, March 3, 2013 2:18:00 PM UTC, Sarbjit singh wrote:
 Hello All,
 
 
 
 I have been using Python as a scripting language for my office tasks. Now I 
 have been thinking of using (and learning as well) for web development. For 
 my tasks, I need to perform some tasks and report on the web. Now I have no 
 experience of web development with Python. So, I want to conform first 
 whether Python is best for web development. Python is my personal choice for 
 my automation works and I want to extend it for web development.
 
 
 
 REQUIREMENT:
 
 I need to develop a html form which would take user input and perform some 
 operations (generate intermediate files) and report result on web.
 
 
 
  Some guys in my organization are using Perl for this purpose and thus I 
  could get the setup for free.But I want to learn and use Python as 
  substitute for Perl. (PHP could also be an option. I have worked on PHP 
  once for handling the form data.)
 
 
 
 So my questions are:-
 
 
 
 1. Can I use Python (I want to use personally :)) over PHP/Perl?
 
 
 
 2. If Yes, I want to know the modules that I should learn for achieving my 
 requirement. I searched internet and found Python provides CGI, Django etc.
 
 
 
 I don't much about Django/CGI, please suggest which module I should learn and 
 use.
 
 
 
 Thanks
 
 Sarbjit

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python in web development

2013-03-03 Thread Michael Torrie
On 03/03/2013 07:18 AM, Sarbjit singh wrote:
 1. Can I use Python (I want to use personally :)) over PHP/Perl?

Yes of course.

 2. If Yes, I want to know the modules that I should learn for
 achieving my requirement. I searched internet and found Python
 provides CGI, Django etc.
 
 I don't much about Django/CGI, please suggest which module I should
 learn and use.

There are literally dozens of frameworks you can use.  You could use
straight CGI if you wanted, but I recommend a framework with a decent
templating engine for HTML code generation.

Anyway, a list--not exhaustive--of frameworks can be found here:

http://wiki.python.org/moin/WebFrameworks

Django is one of the most popular.  Web2Py is another.  Though they
might seem overkill, it's well worth it to use them and learn them.
They both have good documentation.  So start there at their individual
sites.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python in web development

2013-03-03 Thread Michael Herman
If Python is your personal choice, then it's the *best* for you. If
you are literally just going to be processing an HTML form, then CGI
is your best bet. However, if you think this functionally will grow,
then it's worth learning a web framework.

I would go with a micro framework. bottle.py is a perfect starting
point. I am a huge Flask fan, but it's a little higher level. I have
tutorials here for Flask -
http://www.youtube.com/playlist?list=PLLjmbh6XPGK5pM1QJ8I1ccdGiCTHa1IC8

Also, check out realpythonfortheweb.com for more tutorials.

Good luck! :)

On Sun, Mar 3, 2013 at 6:18 AM, Sarbjit singh sarbjit1...@gmail.com wrote:

 Hello All,

 I have been using Python as a scripting language for my office tasks. Now
 I have been thinking of using (and learning as well) for web development.
 For my tasks, I need to perform some tasks and report on the web. Now I have
 no experience of web development with Python. So, I want to conform first
 whether Python is best for web development. Python is my personal choice for
 my automation works and I want to extend it for web development.

 REQUIREMENT:
 I need to develop a html form which would take user input and perform some
 operations (generate intermediate files) and report result on web.

  Some guys in my organization are using Perl for this purpose and thus I
  could get the setup for free.But I want to learn and use Python as
  substitute for Perl. (PHP could also be an option. I have worked on PHP 
  once
  for handling the form data.)

 So my questions are:-

 1. Can I use Python (I want to use personally :)) over PHP/Perl?

 2. If Yes, I want to know the modules that I should learn for achieving my
 requirement. I searched internet and found Python provides CGI, Django etc.

 I don't much about Django/CGI, please suggest which module I should learn
 and use.

 Thanks
 Sarbjit
 --
 http://mail.python.org/mailman/listinfo/python-list
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python in web development

2013-03-03 Thread Roy Smith
In article f1b02b78-62d6-4aa0-a532-eff8921cf...@googlegroups.com,
 Sarbjit singh sarbjit1...@gmail.com wrote:

 Hello All,
 
 I have been using Python as a scripting language for my office tasks. Now I 
 have been thinking of using (and learning as well) for web development. For 
 my tasks, I need to perform some tasks and report on the web. Now I have no 
 experience of web development with Python. So, I want to conform first 
 whether Python is best for web development. Python is my personal choice for 
 my automation works and I want to extend it for web development.
 
 REQUIREMENT:
 I need to develop a html form which would take user input and perform some 
 operations (generate intermediate files) and report result on web.

It's got a bit of a steep learning curve, but django might be what 
you're looking for.  I would start with the tutorial:

https://docs.djangoproject.com/en/1.5/intro/tutorial01/

and eventually work your way to class-based views and forms:

https://docs.djangoproject.com/en/1.5/topics/class-based-views/generic-ed
iting/
-- 
http://mail.python.org/mailman/listinfo/python-list


python simple web server

2012-03-06 Thread queency jones
hello pythonist

i'm developing using the simple / basic http server
i got very bad performance regarding to request time .
9 sec for each request replay.

i tried to test this with this:
python -m SimpleHTTPServer 8080
but no better.

any sugestions ? that i can use ?
my final goal is to serv 5 people on the lan network only .
can't i stick with the python server ?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Books to lean Python 3 Web Programming?

2011-10-24 Thread moijes12
On Oct 23, 3:18 am, Jonathan Loescher jonat...@jloescher.com wrote:
 Can anyone recommend a good book to learn the web programming aspects
 of Python 3?

Hi

You can check Dive into Python 3 by Mark Pilgrim. It does cover some
aspects of web programming. I haven't read it myself,but I've been
reading Dive into Python.

I hope this helps.

regards
Alexander

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Books to lean Python 3 Web Programming?

2011-10-23 Thread moijes12
On Oct 23, 3:18 am, Jonathan Loescher jonat...@jloescher.com wrote:
 Can anyone recommend a good book to learn the web programming aspects
 of Python 3?

Hi

Try out Dive into Python 3 for an introduction to HTTP services.

regards
Moses
-- 
http://mail.python.org/mailman/listinfo/python-list


Books to lean Python 3 Web Programming?

2011-10-22 Thread Jonathan Loescher
Can anyone recommend a good book to learn the web programming aspects
of Python 3?
-- 
http://mail.python.org/mailman/listinfo/python-list


Python selenium web driver

2011-10-07 Thread Yesudian Rajkumar Johnkoilpillai
Hi,

I am looking into using Selenium 2.0 for launching Firefox and browse few
sites. I am using Python APIs to talk to webdriver on Ubuntu 11.04. I am
basically trying to follow the steps mentioned at
http://pypi.python.org/pypi/selenium . When I run the program, it throws
error as below.

yesudian@yesudian-virtual-machine:~/Try$ sudo python five.py
[sudo] password for yesudian:
Traceback (most recent call last):
  File five.py, line 6, in module
browser = webdriver.Firefox() # Get local session of firefox
  File
/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py,
line 46, in __init__
self.binary, timeout),
  File
/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/extension_connection.py,
line 46, in __init__
self.binary.launch_browser(self.profile)
  File
/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/firefox_binary.py,
line 44, in launch_browser
self._wait_until_connectable()
  File
/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/firefox_binary.py,
line 87, in _wait_until_connectable
raise WebDriverException(Can't load the profile. Profile Dir : %s %
self.profile.path)
selenium.common.exceptions.WebDriverException: Message: Can't load the
profile. Profile Dir : /tmp/tmpCR4CB7

I tried to launch chrome also and the same issue happens. Do you have any
thoughts ?

Regards
Yesudian Rajkumar
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: using python in web applications

2011-09-15 Thread Alan Plum

On 2011-09-11 02:50, Littlefield, Tyler wrote:
I replied to that one off list I guess, but I figured Django was way 
more overhead than I wanted, doesn't really fit with solving the speed 
issue.


Depending on your needs, you may find something like bottle or Flask a 
better choice then.


Django can be scaled down a lot, but it's a full-featured framework at 
its heart. Bottle is pretty minimal (IIRC it doesn't even come with any 
templating). Flask is somewhere in between as it bundles Werkzeug (a 
pure WSGI framework) with Jinja (a template library) with some glue code.


I have used Flask in the past but often found myself implementing half 
of Django anyway, which is why I eventually switched. When I only need a 
bare API with no database and without templates, I usually go for Bottle 
these days.


If you feel like coding closer to the metal and care more about 
performance than readability, you might also find Twisted useful.

--
http://mail.python.org/mailman/listinfo/python-list


Re: using python in web applications

2011-09-15 Thread Roy Smith
In article mailman.1164.1316093103.27778.python-l...@python.org,
 Alan Plum m...@alanplum.com wrote:

 Django can be scaled down a lot, but it's a full-featured framework at 
 its heart.

You can pick and chose which parts of django you want to use.  You don't 
need to use any of the Django model stuff.  You don't need to use any of 
the template system.  You can tear out all or most of the default 
middleware.  At that point, about all that's left is the route parser 
and dispatch code.  The nice thing about this is that as you 
incrementally discover which pieces of it you really do need, it's easy 
to pull them in.

That being said, we've made a lot of use of Tornado for small 
stand-alone web services with just a couple of routes.  In retrospect, 
it's unclear if there's any justifiable argument for why we use both 
Tornado and Django, other than hysterical raisins.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: using python in web applications

2011-09-13 Thread alex23
On Sep 10, 1:54 pm, Littlefield, Tyler ty...@tysdomain.com wrote:
 I'm not feeling particularly masochistic, so I do not want to develop
 this project in PHP; essentially I'm looking to build a web-based MMO.

Google have been promoting the use of appengine along with HTML5  JS
to produce games. One advantage of using GAE to host the server is it
takes care of the scaling for you.

I found these presentations fascinating:
http://cc-2011-html5-games.appspot.com/#1
http://io-2011-html5-games-hr.appspot.com/#1

This article covers the process in a little more depth:
http://clouddbs.blogspot.com/2011/02/how-to-write-html5-game-in-30-days-with.html

Google are also aggregating platform-specific info here:
http://code.google.com/games

Hope this helps (and let us know when you have something to show off!)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: using python in web applications

2011-09-11 Thread Tim Roberts
Littlefield, Tyler ty...@tysdomain.com wrote:

I don't much care for PHP, but the thing that can be said for it is it's 
pretty quick. How does Python compare?

PHP is quick for development, in that you can slap together some schlock
and have it mostly work.  The result, however, is usually schlock.  The
performance of the language itself is almost entirely irrelevant; the
execution time is swamped by the network overhead.

I'm also curious what databases are suggested? I've always 
done most of my work in MYSql, but from what I understand postgresql is 
becoming more popular to.

Well, that's a religious argument.  Personally, I've always been confused
by the draw of MySql.  From the very beginning, Postgres has always been
more powerful, more reliable, more standard-compliant, and more
professional.
-- 
Tim Roberts, t...@probo.com
Providenza  Boekelheide, Inc.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: using python in web applications

2011-09-11 Thread Laurent
+1 for PostgreSQL. It's faster than MySQL for years now, and is much more 
seriously featured.
If you don't need ACID properties (transactions stuff) you should also give 
Document-based databases like MongoDB a try. It changed my code life.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: using python in web applications

2011-09-11 Thread hidura
I am agree with postgresql i don' t have any problem, also is better for big 
applications. And Python is always better language than PHP if you' re going to 
create a web app.
Sent from my BlackBerry® wireless device

-Original Message-
From: Tim Roberts t...@probo.com
Sender: python-list-bounces+hidura=gmail@python.org
Date: Sun, 11 Sep 2011 11:48:01 
To: python-list@python.org
Subject: Re: using python in web applications

Littlefield, Tyler ty...@tysdomain.com wrote:

I don't much care for PHP, but the thing that can be said for it is it's 
pretty quick. How does Python compare?

PHP is quick for development, in that you can slap together some schlock
and have it mostly work.  The result, however, is usually schlock.  The
performance of the language itself is almost entirely irrelevant; the
execution time is swamped by the network overhead.

I'm also curious what databases are suggested? I've always 
done most of my work in MYSql, but from what I understand postgresql is 
becoming more popular to.

Well, that's a religious argument.  Personally, I've always been confused
by the draw of MySql.  From the very beginning, Postgres has always been
more powerful, more reliable, more standard-compliant, and more
professional.
-- 
Tim Roberts, t...@probo.com
Providenza  Boekelheide, Inc.
-- 
http://mail.python.org/mailman/listinfo/python-list
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: using python in web applications

2011-09-10 Thread Littlefield, Tyler

On 9/9/2011 10:19 PM, Ben Finney wrote:

Littlefield, Tylerty...@tysdomain.com  writes:


I'm curious if there are some good solutions for using Python in web
applications.

Start with:

URL:http://docs.python.org/howto/webservers.html#frameworks
URL:http://wiki.python.org/moin/WebFrameworks



Awesome, will do, thanks.


and try your criteria against what you find there.




--

Take care,
Ty
Web: http://tds-solutions.net
The Aspen project: a light-weight barebones mud engine
http://code.google.com/p/aspenmud

Sent from my toaster.

--
http://mail.python.org/mailman/listinfo/python-list


Re: using python in web applications

2011-09-10 Thread Laurent
[troll]
For a serious web based MMO you'd rather stick to low level and forget about 
bloated Object Relational Mapping java-like layered kind of frameworks that are 
made for Rapid Applications Development, not for efficiency.
[/troll]

Eve Online, a well known MMORPG was developped with stackless python : 
http://highscalability.com/eve-online-architecture

You mentioned nginx so I can tell you I personally use Linux + nginx + mongodb 
(pymongo) + Python 3 version of cherrypy (with Mako templates) and it's working 
fine after some tuning.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: using python in web applications

2011-09-10 Thread Littlefield, Tyler

On 9/10/2011 5:35 PM, Laurent wrote:

[troll]
For a serious web based MMO you'd rather stick to low level and forget about 
bloated Object Relational Mapping java-like layered kind of frameworks that are 
made for Rapid Applications Development, not for efficiency.
[/troll]

I replied to that one off list I guess, but I figured Django was way 
more overhead than I wanted, doesn't really fit with solving the speed 
issue.



Eve Online, a well known MMORPG was developped with stackless python : 
http://highscalability.com/eve-online-architecture

You mentioned nginx so I can tell you I personally use Linux + nginx + mongodb 
(pymongo) + Python 3 version of cherrypy (with Mako templates) and it's working 
fine after some tuning.


Awesome, thanks. I'm new to this, so some of that flew over my head, but 
I'll take a look at all of them. I'm not sure of the relevance of 
stackless in this case; I was looking into PyPy, but I'm not really sure 
whether that can be connected with nginx. I guess I could just write the 
web server in Python and use it from that point.


--

Take care,
Ty
Web: http://tds-solutions.net
The Aspen project: a light-weight barebones mud engine
http://code.google.com/p/aspenmud

Sent from my toaster.

--
http://mail.python.org/mailman/listinfo/python-list


Re: using python in web applications

2011-09-10 Thread Laurent
Well PyPy is just an implementation of Python among many others (but limited to 
version 2.7). It is not a web server. If you want to make PyPy interact with a 
web server (such as nginx) you have to use a special protocol such as WSGI or 
Fast-CGI. For best performances you can for instance use uWSGI that integrates 
well with nginx but for this you have to recompile nginx. As you see it's a bit 
complex, you should read the wikis. May the Force be with you.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: using python in web applications

2011-09-10 Thread Chris Angelico
On Sun, Sep 11, 2011 at 9:35 AM, Laurent laurent.pa...@gmail.com wrote:
 [troll]
 For a serious web based MMO you'd rather stick to low level and forget about 
 bloated Object Relational Mapping java-like layered kind of frameworks that 
 are made for Rapid Applications Development, not for efficiency.
 [/troll]

I have been trolled. :)

For any sort of web-based real-time game, here's two things to avoid:

1) Snoopability and modifiability of crucial data. Everything should
be stored on the server, so that if anyone fiddles, all they do is
break their own client so it has to reload from the server.
2) Massive waste of resources due to unnecessary frameworks/facilities.

I play a lot of Flash games, and right now I'm playing one that has
coped poorly with a miniature slashdotting. A spike in popularity
resulted in a spike in server lag. I fired up a little packet sniffer,
and discovered that every time you do anything in the game, the client
makes a new POST request to its server. Why?! It's not that hard to
hold a socket connection open!

In another context, a similar issue - not a problem as yet (that I
know of), but would be if the system were to be slashdotted. A server
whose sole purpose is to handle script-instigated requests (using HTTP
POST for its transport) sends back a Set-Cookie header with a session
id. This implies that the server is holding session data for all these
clients that are never going to send that cookie back. The server
appears to be IIS with ASP scripts, so presumably stateful sessions
are enabled by default, so it's costing memory and processing to hold,
then discard, all those useless (and probably empty) session state
tags. And presumably many MANY other servers have the same thing.

What's YOUR framework doing that you don't need, and how much is it costing you?

Yeah, I was trolled bad. :)

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list


using python in web applications

2011-09-09 Thread Littlefield, Tyler

Hello all:
I'm curious if there are some good solutions for using Python in web 
applications.


I'm not feeling particularly masochistic, so I do not want to develop 
this project in PHP; essentially I'm looking to build a web-based MMO. I 
know that you can use nginx with Python with servers like Flask, but I'm 
not really sure how well all of those work. Since this will be a game, I 
can expect quite a few users; I've already got quite a lot of interest. 
I don't much care for PHP, but the thing that can be said for it is it's 
pretty quick. How does Python compare? Are there some solutions (I was 
told about PyPy today) that would be quicker that I could still use for 
the web app? I'm also curious what databases are suggested? I've always 
done most of my work in MYSql, but from what I understand postgresql is 
becoming more popular to.


Thanks all for the input,

--

Take care,
Ty
Web: http://tds-solutions.net
The Aspen project: a light-weight barebones mud engine
http://code.google.com/p/aspenmud

Sent from my toaster.

--
http://mail.python.org/mailman/listinfo/python-list


Re: using python in web applications

2011-09-09 Thread Ben Finney
Littlefield, Tyler ty...@tysdomain.com writes:

 I'm curious if there are some good solutions for using Python in web
 applications.

Start with:

URL:http://docs.python.org/howto/webservers.html#frameworks
URL:http://wiki.python.org/moin/WebFrameworks

and try your criteria against what you find there.

-- 
 \ “As scarce as truth is, the supply has always been in excess of |
  `\   the demand.” —Josh Billings |
_o__)  |
Ben Finney
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python for Web

2011-07-24 Thread lkcl
On Jun 15, 1:11 pm, bruno.desthuilli...@gmail.com
bruno.desthuilli...@gmail.com wrote:
 On Jun 15, 9:50 am, sidRo slacky2...@gmail.com wrote:

  Is Python only for server side?

 Is it a theoretical question or a practical one ?-)

 More seriously: except for the old proof-of-concept Grail browser, no
 known browser uses Python as a client-side scripting language.

 ahh paul bonser _did_ make an attempt to write a web browser in
python: he got quite a long way but nobody helped him out,
unfortunately.

 i did actually get grail browser up-and-running again, under python
2.5 and then 2.6 - it actually works, hurrah! :)

 the list of client-side (assuming you meant web browser client, sid)
python programming environments is actually really quite long.. and
some of them very very obscure :) i maintain (as i find them) a list,
here:

 http://wiki.python.org/moin/WebBrowserProgramming

 the one that i have the most respect for (despite its DOM TR2
compliance only, and the obscure bug that most people will never
encounter) is python-khtml.  KHTML aka Konqueror's web browser is the
granddaddy of webkit after the toerags from apple got their grubby
mitts on it, and i do wish that KHTML got more love and attention,
because it's a proper true free software *independent* web browser
engine that is truly developed by a free software community, not a
bunch of corporate lackies with a commercial axe to grind.

 there is quite a lot of mileage to be had from ironpython, because of
course it translates to CLR (.NET) - as a result you have things like
appcelerator (titanium).  sadly you'll probably get that running under
mono at some time when hell freezes over, but that's another story.

 the other one that's worth a laugh, ok maybe a snort, is the mozilla-
funded project back in 2000 to add support to firefox for  script
language=python / which actually damn well worked - properly -
except that it resulted in a whopping 10mb plugin (because it was the
entire python interpreter in a firefox plugin, that's why!) and was
only available for firefox.  oh, and building the dependencies on w32?
jaezzus h christ on a bike was it a bitch.  to give you an idea: the
last people who attempted it were novell, some time around 2007.  to
get an accurate date, look up the release date on xulrunner 1.8.

 anyway - bottom line: there's a hell of a lot (including pyjamas of
course, yaay!) but it's all pretty obscure esoteric stuff and you do
have to be a bit off your head to consider using the various options
available.

 l.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python for Web

2011-07-24 Thread Dan Stromberg
On Wed, Jun 15, 2011 at 5:11 AM, bruno.desthuilli...@gmail.com 
bruno.desthuilli...@gmail.com wrote:

 On Jun 15, 9:50 am, sidRo slacky2...@gmail.com wrote:
  Is Python only for server side?

 Is it a theoretical question or a practical one ?-)

 More seriously: except for the old proof-of-concept Grail browser, no
 known browser uses Python as a client-side scripting language.

 There are three relevant projects:

1) Pyjamas - translates a dialect of Python 2.x to Javascript, and provides
a widget set that allows the same code to provide a web GUI and a desktop
GUI, using a desktop-like API

2) Emscripten - which is CPython 2.x itself (and theoretically, 3.x?)
compiled into Javascript using LLVM's C frontend and an LLVM bitcode
translator that creates Javascript code

3) Pypy - had a Javascript backend, but that was removed from the website in
2010 (?)

Of these, Pyjamas is probably the most useful today.  Emscripten reportedly
crashes some browsers, and Pypy seems to have lost interest in Javascript.
-- 
http://mail.python.org/mailman/listinfo/python-list


Python for Web

2011-06-15 Thread sidRo
Is Python only for server side?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python for Web

2011-06-15 Thread bruno.desthuilli...@gmail.com
On Jun 15, 9:50 am, sidRo slacky2...@gmail.com wrote:
 Is Python only for server side?

Is it a theoretical question or a practical one ?-)

More seriously: except for the old proof-of-concept Grail browser, no
known browser uses Python as a client-side scripting language.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python for Web

2011-06-15 Thread geremy condra
On Wed, Jun 15, 2011 at 5:11 AM, bruno.desthuilli...@gmail.com
bruno.desthuilli...@gmail.com wrote:
 On Jun 15, 9:50 am, sidRo slacky2...@gmail.com wrote:
 Is Python only for server side?

 Is it a theoretical question or a practical one ?-)

 More seriously: except for the old proof-of-concept Grail browser, no
 known browser uses Python as a client-side scripting language.

Not quite the same thing, but there's pyjamas.

Geremy Condra
-- 
http://mail.python.org/mailman/listinfo/python-list


[Book] Python 3 Web Development Beginner's Guide

2011-05-21 Thread Robert
Has anyone read this one? If so, what did you think?

--
Bob
-- 
http://mail.python.org/mailman/listinfo/python-list


Using python for web IM?

2010-12-03 Thread Kechagias Apostolos
Hello,
   We are currently working on a project which needs video and audio
streaming(peer to peer). We need to know if there are any available open
source libraries to embed video,audio,p2p transfer in our client OR if there
is any available framework which could help us with our project. It would
bereally helpful if you could also provide us some feedback on what we can
use as XMPP server.
-- 
http://mail.python.org/mailman/listinfo/python-list


Using Python for web applications

2010-06-30 Thread Wyatt Schwartz

Dear Python-List members,

Sorry for asking such a simple (or possibly complicated) question, as  
I am new to Python programming. Anyways, I have read online that many  
popular websites use Python for some of their web-based applications  
(for example, Reddit), and that lead me to wonder how is this done?


Thanks in advance!

- Wyatt
 - Beginning Python Programmer
--
http://mail.python.org/mailman/listinfo/python-list


Re: Using Python for web applications

2010-06-30 Thread Daniel Fetchinson
 Sorry for asking such a simple (or possibly complicated) question, as
 I am new to Python programming. Anyways, I have read online that many
 popular websites use Python for some of their web-based applications
 (for example, Reddit), and that lead me to wonder how is this done?

There are various options, the simplest is using a full blown web
framework which simplifies about 90% of the work and you only need to
code the logic related to your app. Two of the most popular frameworks
are django [1] and turbogears [2].

You can also go more low level by designing your own framework from
scratch which is something the bigger shops are doing like youtube.

In any case there is a wiki page that you might find useful [3].

HTH,
Daniel

[1] http://www.djangoproject.com/
[2] http://www.turbogears.org/
[3] http://wiki.python.org/moin/WebProgramming


-- 
Psss, psss, put it down! - http://www.cafepress.com/putitdown
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Using Python for web applications

2010-06-30 Thread Zubin Mithra
On Wed, Jun 30, 2010 at 11:34 PM, Wyatt Schwartz wyattj...@gmail.comwrote:

 Dear Python-List members,

 Sorry for asking such a simple (or possibly complicated) question, as I am
 new to Python programming. Anyways, I have read online that many popular
 websites use Python for some of their web-based applications (for example,
 Reddit), and that lead me to wonder how is this done?

 Thanks in advance!

 I would recommend that you check out the various web-frameworks which are
out there. Django is the framework I use and love, but there are loads out
there.

Have fun!
Zubin
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Using Python for web applications

2010-06-30 Thread Mithrandir
Wyatt Schwartz wyattj...@gmail.com wrote in 
news:mailman.33.1277921551.1673.python-l...@python.org:

 Dear Python-List members,
 
 Sorry for asking such a simple (or possibly complicated) question, as  
 I am new to Python programming. Anyways, I have read online that many  
 popular websites use Python for some of their web-based applications  
 (for example, Reddit), and that lead me to wonder how is this done?
 
 Thanks in advance!
 
 - Wyatt
   - Beginning Python Programmer


For something more server side see:

http://wiki.python.org/moin/WebFrameworks

Some nice examples are at: 

http://wiki.python.org/moin/WebApplications

Good luck! :)


-- 
People should read more.
https://secure.wikimedia.org/wikipedia/en/wiki/User:MithrandirAgain
All that is gold does not glitter, 
not all those who wander are lost; 
the old that is strong does not wither,
deep roots are not reached by the frost. 
From the ashes a fire shall be woken, 
a light from the shadows shall spring; 
renenwed shall be blade that was broken, 
the crownless again shall be king.
-- 
http://mail.python.org/mailman/listinfo/python-list


python local web server

2010-06-14 Thread shanti bhushan
Hi ,
I want to use the python local web server.
I want to do the following activities with the server.
1. I want to change to configuration of any time ,with the help of
python script.
2. I want to log request and response for the server so ,i can use it
for analysis.

Please guide me in this respect, if this code is already avaialble
please update me.
Please guide me the design or direct me the best approach to do all
this.

Regards
Shanti Bhushan
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python local web server

2010-06-14 Thread alex23
shanti bhushan ershantibhus...@gmail.com wrote:
 Please guide me the design or direct me the best approach to do all
 this.

The best approach?

1. Study
2. Learn
3. Apply

There you go, the advice that keeps on giving.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python local web server

2010-06-14 Thread Stephen Hansen
On 6/14/10 9:41 PM, shanti bhushan wrote:
 Hi ,
 I want to use the python local web server.
 I want to do the following activities with the server.
 1. I want to change to configuration of any time ,with the help of
 python script.
 2. I want to log request and response for the server so ,i can use it
 for analysis.
 
 Please guide me in this respect, if this code is already avaialble
 please update me.
 Please guide me the design or direct me the best approach to do all
 this.

Python does not have a local web server. Python's standard library
does include a basic server class that can handle HTTP, if you wish to
use it.

But this is not a standalone sort of server that you configure and run.
It is a piece of code in a library, you instantiate and use. You
configure it by writing code. If you would like to configure it via a
config file, you have to write that. Code to read the file, code to set
up the server class based on it, and such.

Guide you? You're asking too much. Too vague. I wouldn't even know where
to start. You really need to go curl up around the docs and spend some
time reading it-- BaseHTTPServer, SocketServer, BaseHTTPRequestHandler
are where you get all the information you are looking for.

-- 

   Stephen Hansen
   ... Also: Ixokai
   ... Mail: me+list/python (AT) ixokai (DOT) io
   ... Blog: http://meh.ixokai.io/



signature.asc
Description: OpenPGP digital signature
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python local web server

2010-06-14 Thread James Mills
On Tue, Jun 15, 2010 at 2:44 PM, alex23 wuwe...@gmail.com wrote:
 shanti bhushan ershantibhus...@gmail.com wrote:
 Please guide me the design or direct me the best approach to do all
 this.

 The best approach?

 1. Study
 2. Learn
 3. Apply

 There you go, the advice that keeps on giving.

In addition to my good colleagues sound advise:

There are many many web frameworks available in the Python world
of all things wonderful. But first, Learn Python. Then pick a web
framework that best suites your needs and Learn it.

cheers
James
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Recommendation for small, fast, Python based web server

2009-12-27 Thread python
 This is a new wsgi web server implemented in a single file.
 http://code.google.com/p/web2py/source/browse/gluon/sneaky.py

Thank you Massimo.

Regards,
Malcolm
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Recommendation for small, fast, Python based web server

2009-12-26 Thread Antoine Pitrou
Le Fri, 25 Dec 2009 10:38:19 -0800, Aahz a écrit :
 In article mailman.1720.1260539582.2873.python-l...@python.org,
 Antoine Pitrou  solip...@pitrou.net wrote:

Apparently you have debugged your speed issue so I suppose you don't
have performance problems anymore. Do note, however, that Python is
generally not as fast as C -- especially for low-level stuff -- and a
Python Web server will probably serve around 10x less requests per
second than a C Web server like Apache (this will still give you
hundreds of simple requests per second on a modern machine).
 
 For static pages or dynamic pages?  Once you get into dynamic pages, I
 sincerely doubt that the smaller Apache overhead makes lots of
 difference.

For static pages. Yes, I guess the difference for dynamic pages would 
indeed be quite small. Especially if database activity is also involved.

Regards

Antoine.


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Recommendation for small, fast, Python based web server

2009-12-25 Thread Aahz
In article mailman.1720.1260539582.2873.python-l...@python.org,
Antoine Pitrou  solip...@pitrou.net wrote:

Apparently you have debugged your speed issue so I suppose you don't have 
performance problems anymore. Do note, however, that Python is generally 
not as fast as C -- especially for low-level stuff -- and a Python Web 
server will probably serve around 10x less requests per second than a C 
Web server like Apache (this will still give you hundreds of simple 
requests per second on a modern machine).

For static pages or dynamic pages?  Once you get into dynamic pages, I
sincerely doubt that the smaller Apache overhead makes lots of
difference.
-- 
Aahz (a...@pythoncraft.com)   * http://www.pythoncraft.com/

Looking back over the years, after I learned Python I realized that I
never really had enjoyed programming before.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Recommendation for small, fast, Python based web server

2009-12-25 Thread mdipierro
This is a new wsgi web server implemented in a single file.

http://code.google.com/p/web2py/source/browse/gluon/sneaky.py

I could use some help with testing.

Here is a version for Python 3.0

http://code.google.com/p/web2py/source/browse/gluon/sneaky.py


Massimo

On Dec 25, 12:38 pm, a...@pythoncraft.com (Aahz) wrote:
 In article mailman.1720.1260539582.2873.python-l...@python.org,
 Antoine Pitrou  solip...@pitrou.net wrote:



 Apparently you have debugged your speed issue so I suppose you don't have
 performance problems anymore. Do note, however, that Python is generally
 not as fast as C -- especially for low-level stuff -- and a Python Web
 server will probably serve around 10x less requests per second than a C
 Web server like Apache (this will still give you hundreds of simple
 requests per second on a modern machine).

 For static pages or dynamic pages?  Once you get into dynamic pages, I
 sincerely doubt that the smaller Apache overhead makes lots of
 difference.
 --
 Aahz (a...@pythoncraft.com)           *        http://www.pythoncraft.com/

 Looking back over the years, after I learned Python I realized that I
 never really had enjoyed programming before.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Recommendation for small, fast, Python based web server

2009-12-11 Thread Antoine Pitrou

Hello,

 I've looked at the web servers that come bundled with the Python
 standard library[1] and they are too slow.

Apparently you have debugged your speed issue so I suppose you don't have 
performance problems anymore. Do note, however, that Python is generally 
not as fast as C -- especially for low-level stuff -- and a Python Web 
server will probably serve around 10x less requests per second than a C 
Web server like Apache (this will still give you hundreds of simple 
requests per second on a modern machine).

In any case, as far as functionality, robustness, portability and 
community support are concerned, you probably can't go wrong with Twisted.

Regards

Antoine.


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Recommendation for small, fast, Python based web server

2009-12-11 Thread Irmen de Jong

On 11-12-2009 14:52, Antoine Pitrou wrote:


Hello,


I've looked at the web servers that come bundled with the Python
standard library[1] and they are too slow.


Apparently you have debugged your speed issue so I suppose you don't have
performance problems anymore. Do note, however, that Python is generally
not as fast as C -- especially for low-level stuff -- and a Python Web
server will probably serve around 10x less requests per second than a C
Web server like Apache (this will still give you hundreds of simple
requests per second on a modern machine).


I don't think that number is fair for Python. I think a well written 
Python web server can perform in the same ballpark as most mainstream 
web servers written in C. Especially Apache, which really isn't a top 
performer. And I'm pretty sure a well written Python server can 
outperform a badly written C based server easily.


-irmen
--
http://mail.python.org/mailman/listinfo/python-list


Re: Recommendation for small, fast, Python based web server

2009-12-11 Thread Antoine Pitrou
Le Fri, 11 Dec 2009 19:40:21 +0100, Irmen de Jong a écrit :
 
 I don't think that number is fair for Python. I think a well written
 Python web server can perform in the same ballpark as most mainstream
 web servers written in C. Especially Apache, which really isn't a top
 performer. And I'm pretty sure a well written Python server can
 outperform a badly written C based server easily.

The order of magnitude I gave is based on real-world testing. You are 
under-estimating how much of an impact Python's interpretation speed has 
on low-level code. Even Apache *is* a top performer compared to Python 
web servers.


-- 
http://mail.python.org/mailman/listinfo/python-list


Recommendation for small, fast, Python based web server

2009-12-09 Thread python
I'm looking for a small, simple, fast, Python based web server
for a simple, client side application we're building. We don't
want to distrubute and support a real web server like Apache or
Tomcat or depend on the presence of local web server such as IIS.
The application in question will service AJAX requests from a
browser.

We're not looking for a web framework like Django, Plone, etc.

I've looked at the web servers that come bundled with the Python
standard library[1] and they are too slow. I suspect this is
because they don't maintain a session between the client and
server, thus every GET/POST request repeats the session setup and
break down process. Or they might be based on a polling model?

Here are the other Python based web server implementations I'm
aware of:
- cherrypy
- web.py
- twisted

Any recommendations appreciated (Python 2.6 preferred but open to
Python 3.1 options).

Thanks!
Malcolm

[1]
http://docs.python.org/library/basehttpserver.html (base)
http://docs.python.org/library/simplehttpserver.html
http://docs.python.org/library/cgihttpserver.html
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Recommendation for small, fast, Python based web server

2009-12-09 Thread Tim Chase

pyt...@bdurham.com wrote:

I'm looking for a small, simple, fast, Python based web server
for a simple, client side application we're building. 


I've used WebStack[1] for this in the past.  It allows for 
stand-alone serving as well as plugging nicely into various 
real servers (apache+mod_python, etc) with a small tweak in how 
it's configured.



I've looked at the web servers that come bundled with the Python
standard library[1] and they are too slow. I suspect this is
because they don't maintain a session between the client and
server, thus every GET/POST request repeats the session setup and
break down process. Or they might be based on a polling model?


I'm not sure what caused the slowness you've experienced -- using 
Python in a CGI environment requires starting the Python 
interpreter each time.  However if the interpreter starts just 
once, I've not had notable performance issues for low-volume 
sites (using the BaseHTTP builtin).  For higher-volume sites, you 
might reach for Twisted which WebStack supports as well.  I 
believe both WebStack and Twisted are redistribtable as needed.


-tkc

[1] http://www.boddie.org.uk/python/WebStack.html




--
http://mail.python.org/mailman/listinfo/python-list


Re: Recommendation for small, fast, Python based web server

2009-12-09 Thread Daniel Fetchinson
 I'm looking for a small, simple, fast, Python based web server
 for a simple, client side application we're building. We don't
 want to distrubute and support a real web server like Apache or
 Tomcat or depend on the presence of local web server such as IIS.
 The application in question will service AJAX requests from a
 browser.

 We're not looking for a web framework like Django, Plone, etc.

 I've looked at the web servers that come bundled with the Python
 standard library[1] and they are too slow. I suspect this is
 because they don't maintain a session between the client and
 server, thus every GET/POST request repeats the session setup and
 break down process. Or they might be based on a polling model?

 Here are the other Python based web server implementations I'm
 aware of:
 - cherrypy
 - web.py
 - twisted

 Any recommendations appreciated (Python 2.6 preferred but open to
 Python 3.1 options).

I'm using cherrypy for this purpose, actually together with turbogears 1.

Cheers,
Daniel


-- 
Psss, psss, put it down! - http://www.cafepress.com/putitdown
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Recommendation for small, fast, Python based web server

2009-12-09 Thread python
Tim,

 I've used WebStack[1] for this in the past. It allows for stand-alone serving 
 as well as plugging nicely into various real servers (apache+mod_python, 
 etc) with a small tweak in how it's configured.

Thanks for that recommendation.

 I'm not sure what caused the slowness you've experienced (... with running 
 local versions of Python web servers)

Thanks to a past post by Christoph Zwerschke c...@online.de, I was
able to identify the problem.

Windows (XP, Vista, Windows 7) tries to do a IPV6 connection which times
out after a second followed by an IPV4 connection which is almost
instantaneous. Apparently this is a known problem that is a Windows
issue [1] - not a Python problem.

Two workarounds:

1. Use 127.0.0.1 as your URL vs. localhost 

-OR-

2. Edit your Windows hosts file (c:\windows\system32\drivers\etc\hosts)
and create a virtual domain name, eg. put the following on a line by
itself:

127.0.0.1  mydomain.someext

And then use mydomain.someext vs. localhost

Note: Editing your hosts file requires admin rights under Vista and
Windows 7.

Regards,
Malcolm

[1]
http://schotime.net/blog/index.php/2008/05/27/slow-tcpclient-connection-sockets/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Recommendation for small, fast, Python based web server

2009-12-09 Thread python
Daniel,

 I'm using cherrypy for this purpose, actually together with turbogears 1.

My research has constantly pointed back to cherrypy as a tool of choice
for building local web servers. My initial impression was that cherrypy
was too big and complicated for my simple task. However, I'm going to
re-examine this assumption and take another look at cherrypy.

Thanks for your help!

Regards,
Malcolm
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Recommendation for small, fast, Python based web server

2009-12-09 Thread birdsong
On Dec 9, 4:05 pm, pyt...@bdurham.com wrote:
 Daniel,

  I'm using cherrypy for this purpose, actually together with turbogears 1.

 My research has constantly pointed back to cherrypy as a tool of choice
 for building local web servers. My initial impression was that cherrypy
 was too big and complicated for my simple task. However, I'm going to
 re-examine this assumption and take another look at cherrypy.

 Thanks for your help!

 Regards,
 Malcolm

tornado all the way, it is teh radness: http://www.tornadoweb.org/

epoll based python server.  fun to hack on. def check it out.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: best performance for storage of server information for python CGI web app?

2009-11-28 Thread Aahz
In article 58e5cd75-75be-4785-8e79-490364396...@e31g2000vbm.googlegroups.com,
davidj411  davidj...@gmail.com wrote:

i was also thinking about using SQL Lite with one DB to store all the
info. with this option, i would not have to worry about concurrent
updates, but as the file size increases, i could expect performance to
suffer again?

Depends what you mean by suffer.  Performance always decreases as size
gets larger unless you take specific steps (such as better algorithms or
bigger hardware).  Using indexes should give SQLite reasonable
performance; you can always upgrade to a faster SQL implementation or
switch to another kind of storage.  But honestly, until you get to
millions of records, you should be fine with SQLite.
-- 
Aahz (a...@pythoncraft.com)   * http://www.pythoncraft.com/

The best way to get information on Usenet is not to ask a question, but
to post the wrong information.  
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python and web pages

2009-11-20 Thread Diez B. Roggisch

Daniel Dalton schrieb:

Hi,

Here is my situation:
I'm using the command line, as in, I'm not starting gnome or kde (I'm on
linux.)
I have a string of text attached to a variable,. So I need to use one of
the browsers on linux, that run under the command line, eg. lynx,
elinks, links, links2 and do the following.
1. Open a certain web page and find the first text box on the page, and
put this text into the form.
2. Press the submit button, and wait for the result page to load.
3. Click on the 15th link down the page.

So, how do I do this, can anyone point me to some docs or modules that
may help out here?


Use the module mechanize. It will mimic a browser, and allows you to 
navigate to pages, fill in forms  submit them.


And with lxml or BeatifulSoup, you can extract the link you need to 
press, and then make mechanize visit it.


Diez
--
http://mail.python.org/mailman/listinfo/python-list


Re: python and web pages

2009-11-20 Thread Daniel Dalton
On Thu, Nov 19, 2009 at 09:43:50AM +0100, Diez B. Roggisch wrote:
 elinks, links, links2 and do the following.
 1. Open a certain web page and find the first text box on the page, and
 put this text into the form.
 2. Press the submit button, and wait for the result page to load.
 3. Click on the 15th link down the page.
 
 So, how do I do this, can anyone point me to some docs or modules that
 may help out here?
 
 Use the module mechanize. It will mimic a browser, and allows you
 to navigate to pages, fill in forms  submit them.

Well, what seemed a very daunting task at first, proved to be quite
easy, after a little bit of research. Thanks very much, I've written my
script, and it works correctly, using the mechanize module.

Thanks for everyone's help

-- 
Cheers,
Dan

http://members.iinet.net.au/~ddalton/



signature.asc
Description: Digital signature
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python and web pages

2009-11-19 Thread Gerhard Häring
Daniel Dalton wrote:
 Hi,
 
 Here is my situation:
 I'm using the command line, as in, I'm not starting gnome or kde (I'm on
 linux.)
 I have a string of text attached to a variable,. So I need to use one of
 the browsers on linux, that run under the command line, eg. lynx,
 elinks, links, links2 and do the following.

No, you don't need any text mode browser. It's much easier to do with
modules from the Python standard library.

 1. Open a certain web page and find the first text box on the page, and
 put this text into the form.

I assume you know HTML and HTTP.

You can use urllib or urllib2 to submit the form.

 2. Press the submit button, and wait for the result page to load.
 3. Click on the 15th link down the page.

You will then get the returned HTML from a function and you will have to
parse it for the link you're interested in. There are many approaches to
get there. Manual parsing, regular expressions or one of the XML parsers
in the standard library (etree is the easiest).

 So, how do I do this, can anyone point me to some docs or modules that
 may help out here?

While all of this may seem overwhelming at first, I guess the solution
can be written in 20 - 30 lines of code.

-- Gerhard

-- 
http://mail.python.org/mailman/listinfo/python-list


best performance for storage of server information for python CGI web app?

2009-11-18 Thread davidj411
I am wondering what will give me the best performance for storing
information about the servers in our environment.
currently i store all info about all servers in a single shelve file,
but i have concerns.
1) as the size of the shelve file increases, will performance suffer ?
2) what about if 2 updates occur at the same time to the shelve file?
when a shelve file is opened, is the whole file read into memory?

if either scenario (1 or 2) is true, then should i think about
creating a shelve file per server?
i was also thinking about using SQL Lite with one DB to store all the
info.
with this option, i would not have to worry about concurrent updates,
but as the file size increases, i could expect performance to suffer
again?

I am running Python 2.6 CGI scripts on Apache web server on windows
platform. they interact with the current shelve file to pull info or
request info from a python service which will go collect the info and
put it into the shelve file.
-- 
http://mail.python.org/mailman/listinfo/python-list


python and web pages

2009-11-18 Thread Daniel Dalton
Hi,

Here is my situation:
I'm using the command line, as in, I'm not starting gnome or kde (I'm on
linux.)
I have a string of text attached to a variable,. So I need to use one of
the browsers on linux, that run under the command line, eg. lynx,
elinks, links, links2 and do the following.
1. Open a certain web page and find the first text box on the page, and
put this text into the form.
2. Press the submit button, and wait for the result page to load.
3. Click on the 15th link down the page.

So, how do I do this, can anyone point me to some docs or modules that
may help out here?

Thank you,

-- 
Cheers,
Dan

http://members.iinet.net.au/~ddalton/

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: can python make web applications?

2009-09-18 Thread lkcl
On Sep 16, 7:02 pm, Paul Boddie p...@boddie.org.uk wrote:
 On 16 Sep, 18:31, lkcl luke.leigh...@googlemail.com wrote:



 http://pyjs.org/examples/timesheet/output/TimeSheet.html

 I get this error dialogue message when visiting the above page:

 TimeSheet undefined list assignment index out of range

 ah well spotted, thanks paul.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: can python make web applications?

2009-09-18 Thread lkcl
On Sep 16, 7:02 pm, Paul Boddie p...@boddie.org.uk wrote:
 On 16 Sep, 18:31, lkcl luke.leigh...@googlemail.com wrote:



 http://pyjs.org/examples/timesheet/output/TimeSheet.html

 I get this error dialogue message when visiting the above page:

 TimeSheet undefined list assignment index out of range

 Along with the following in-page error, once the data has been
 imported:

 JavaScript Error: uncaught exception: list assignment index out of
 range at line number 0. Please inform webmaster.

 It looks quite nice, though.

 Paul

DOH!  someone assuming javascript-isms in lists, and the compiler's
been improved to ban them :)

   ...
   self.date = None
   ...
   ...

   print 'setEntries:', entries
   try:
 #tt = time.localtime(time.time())
-tt = []
-tt[0] = int(self.date[:4])
-tt[1] = int(self.date[4:6])
-tt[2] = int(self.date[6:8])
+tt = [0] * 9
+if self.date:
+tt[0] = int(self.date[:4])
+tt[1] = int(self.date[4:6])
+tt[2] = int(self.date[6:8])
 tt[3] = 0
 tt[4] = 0
 tt[5] = 0
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: can python make web applications?

2009-09-16 Thread lkcl
On Aug 23, 3:12 pm, Deep_Feelings doctore...@gmail.com wrote:
 can python make powerfull database web applications that can replace
 desktop database applications? e.g: entrprise accounting
 programs,enterprise human resource management programs ...etc

 with pyjamas, as mark mentioned previously - but what mark perhaps
wasn't aware of is that with pyjamas-desktop you can have _both_.

 you can have the _exact_ same python application _either_ be compiled
to javascript, and be a web application, _or_ you can run it under
pyjamas-desktop, as pure python.

 so you can have a pyjamas app do _both_ jobs.

 for some examples that look like the kinds of things that you would
expect, see:

http://pyjs.org/examples/timesheet/output/TimeSheet.html
http://pyjs.org/examples/employeeadmin/output/EmployeeAdmin.html

both of these use http://puremvc.org (python version, not javascript
version).  both of them work under pyjd.

l.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: can python make web applications?

2009-09-16 Thread Paul Boddie
On 16 Sep, 18:31, lkcl luke.leigh...@googlemail.com wrote:

 http://pyjs.org/examples/timesheet/output/TimeSheet.html

I get this error dialogue message when visiting the above page:

TimeSheet undefined list assignment index out of range

Along with the following in-page error, once the data has been
imported:

JavaScript Error: uncaught exception: list assignment index out of
range at line number 0. Please inform webmaster.

It looks quite nice, though.

Paul
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: can python make web applications?

2009-08-25 Thread Mark
On Sun, 23 Aug 2009 21:45:17 +0100, Goke Aruna wrote:

 A lot check this fantastic open source application,
 http://www.openerp.com, all done is python.

That does look impressive. Is that Django or Turbogears?


-- 
Mark
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: can python make web applications?

2009-08-25 Thread alex23
Mark markonli...@internode.on.net wrote:
 On Sun, 23 Aug 2009 21:45:17 +0100, Goke Aruna wrote:
 http://www.openerp.com, all done is python.

 That does look impressive. Is that Django or Turbogears?

Turbogears, according to the product's wikipedia page.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: can python make web applications?

2009-08-24 Thread Martin P. Hellwig

Deep_Feelings wrote:

can python make powerfull database web applications that can replace
desktop database applications? e.g: entrprise accounting
programs,enterprise human resource management programs ...etc
As the other replies already mentioned that these already exists, I 
would like to add that with Pyjamas you can write 'webgui' programs 
relatively easily:

http://pyjs.org/

--
MPH
http://blog.dcuktec.com
'If consumed, best digested with added seasoning to own preference.'
--
http://mail.python.org/mailman/listinfo/python-list


can python make web applications?

2009-08-23 Thread Deep_Feelings
can python make powerfull database web applications that can replace
desktop database applications? e.g: entrprise accounting
programs,enterprise human resource management programs ...etc
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: can python make web applications?

2009-08-23 Thread koranthala
On Aug 23, 8:12 pm, Deep_Feelings doctore...@gmail.com wrote:
 can python make powerfull database web applications that can replace
 desktop database applications? e.g: entrprise accounting
 programs,enterprise human resource management programs ...etc

Very much so.
The web frameworks, Django  TurboGears are quite powerful and can be
used to do what you just now mentioned.
Check out Django - esp if the application is database centric. It has
very good documentation and a free online book - djangobook.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: can python make web applications?

2009-08-23 Thread Stefaan Himpe

Deep_Feelings wrote:

can python make powerfull database web applications that can replace
desktop database applications? e.g: entrprise accounting
programs,enterprise human resource management programs ...etc


In addition to the recommendations by other people, I'd like to
recommend the very easy to learn and use web2py. (www.web2py.com).
--
http://mail.python.org/mailman/listinfo/python-list


Re: can python make web applications?

2009-08-23 Thread Goke Aruna
A lot check this fantastic open source application,
http://www.openerp.com, all done is python.

On 8/23/09, Stefaan Himpe stefaan.hi...@gmail.com wrote:
 Deep_Feelings wrote:
 can python make powerfull database web applications that can replace
 desktop database applications? e.g: entrprise accounting
 programs,enterprise human resource management programs ...etc

 In addition to the recommendations by other people, I'd like to
 recommend the very easy to learn and use web2py. (www.web2py.com).
 --
 http://mail.python.org/mailman/listinfo/python-list


-- 
Sent from my mobile device
-- 
http://mail.python.org/mailman/listinfo/python-list


  1   2   3   >