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 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  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 
> 
> 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


Re: Moving to Python for web

2013-08-29 Thread Chris “Kwpolska” Warrick
On Thu, Aug 29, 2013 at 2:45 PM, 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 :)

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 
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 4:18 AM, Sam Fourman Jr.  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 
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 Sam Fourman Jr.
On Wed, Aug 28, 2013 at 4:14 PM,  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 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-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


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,   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 Joel Goldstick
On Wed, Aug 28, 2013 at 4:14 PM,   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


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: 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  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


Re: Python for Web

2011-07-24 Thread lkcl
On Jun 15, 1:11 pm, "bruno.desthuilli...@gmail.com"
 wrote:
> On Jun 15, 9:50 am, sidRo  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-06-15 Thread geremy condra
On Wed, Jun 15, 2011 at 5:11 AM, bruno.desthuilli...@gmail.com
 wrote:
> On Jun 15, 9:50 am, sidRo  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


Re: Python for Web

2011-06-15 Thread bruno.desthuilli...@gmail.com
On Jun 15, 9:50 am, sidRo  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


Python for Web

2011-06-15 Thread sidRo
Is Python only for server side?
-- 
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


Re: Using Python for web applications

2010-06-30 Thread Mithrandir
Wyatt Schwartz  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


Re: Using Python for web applications

2010-06-30 Thread Zubin Mithra
On Wed, Jun 30, 2010 at 11:34 PM, Wyatt Schwartz wrote:

> 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 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


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: Advantages of Python (for web/desktop apps)?

2009-06-29 Thread Michael Torrie
iceangel89 wrote:
> i am mainly a PHP (mainly using Zend Framework MVC now) Web Developer. used
> .NET (VB & C#) for Desktop apps. i nv used Python and am looking at Python
> now (for desktop apps since its open source and just want to try what it
> offers, but will like to know what good it has for web development also)

Give it a try.  wxPython or PyQt is preferred for GUI development in
general on win32.  PyGTK also works on win32 but maybe isn't as
nice-looking as the first two options (although the API is much more
pythonic by some accounts).

The Idle IDE may get you started.  When you've profiled your program and
found where the common cases are slow, then you can work on optimization
substitution pure python routines with native ones written in C, C++, etc
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Advantages of Python (for web/desktop apps)?

2009-06-29 Thread Aahz
In article <20090629121940.42b88...@halmanfloyd.lan.local>,
Marek Kubica   wrote:
>On 28 Jun 2009 11:45:06 -0700
>a...@pythoncraft.com (Aahz) wrote:
>>
>> Perhaps I was unclear: I already knew what LMGTFY stands for, and I
>> think that using a site that requires JavaScript is anti-social.
>
>Maybe they could just redirect to Google if JS wasn't detected.

Exactly.  They have chosen to be anti-social; therefore, I think anyone
using lmgtfy.com is also anti-social.
-- 
Aahz (a...@pythoncraft.com)   <*> http://www.pythoncraft.com/

"as long as we like the same operating system, things are cool." --piranha
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Advantages of Python (for web/desktop apps)?

2009-06-29 Thread Marek Kubica
On 28 Jun 2009 11:45:06 -0700
a...@pythoncraft.com (Aahz) wrote:

> Perhaps I was unclear: I already knew what LMGTFY stands for, and I
> think that using a site that requires JavaScript is anti-social.

Maybe they could just redirect to Google if JS wasn't detected.

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


Re: Advantages of Python (for web/desktop apps)?

2009-06-28 Thread Aahz
In article ,
Benjamin Kaplan   wrote:
>On Sun, Jun 28, 2009 at 11:03 AM, Aahz wrote:
>> In article ,
>> Tim Chase =A0 wrote:
>>>
 - how do i design GUI for windows app?
>>>
>>>http://lmgtfy.com/?q=3Dpython+gui
>>
>> This is the first time I've tried LMGTFY, and it seems to be a piece of
>> trash that requires JavaScript. =A0I suggest that lmgtfy.com not be
>> considered a standard part of the Python community.
>
>It's not a standard part of the python community. It stands for "let
>me google that for you" and it's a slightly more polite way of saying
>STFW.
>
>It's just an animation of typing the search term in a Google-like
>search page and clicking the search button. Then it says "was that so
>hard" and redirects you to the Google search results for that term.

Perhaps I was unclear: I already knew what LMGTFY stands for, and I think
that using a site that requires JavaScript is anti-social.
-- 
Aahz (a...@pythoncraft.com)   <*> http://www.pythoncraft.com/

"as long as we like the same operating system, things are cool." --piranha
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Advantages of Python (for web/desktop apps)?

2009-06-28 Thread Benjamin Kaplan
On Sun, Jun 28, 2009 at 11:03 AM, Aahz wrote:
> In article ,
> Tim Chase   wrote:
>>
>>> - how do i design GUI for windows app?
>>
>>http://lmgtfy.com/?q=python+gui
>
> This is the first time I've tried LMGTFY, and it seems to be a piece of
> trash that requires JavaScript.  I suggest that lmgtfy.com not be
> considered a standard part of the Python community.


It's not a standard part of the python community. It stands for "let
me google that for you" and it's a slightly more polite way of saying
STFW.

It's just an animation of typing the search term in a Google-like
search page and clicking the search button. Then it says "was that so
hard" and redirects you to the Google search results for that term.

> --
> Aahz (a...@pythoncraft.com)           <*>         http://www.pythoncraft.com/
>
> "as long as we like the same operating system, things are cool." --piranha
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Advantages of Python (for web/desktop apps)?

2009-06-28 Thread Aahz
In article ,
Tim Chase   wrote:
>
>> - how do i design GUI for windows app?  
>
>http://lmgtfy.com/?q=python+gui

This is the first time I've tried LMGTFY, and it seems to be a piece of
trash that requires JavaScript.  I suggest that lmgtfy.com not be
considered a standard part of the Python community.
-- 
Aahz (a...@pythoncraft.com)   <*> http://www.pythoncraft.com/

"as long as we like the same operating system, things are cool." --piranha
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Advantages of Python (for web/desktop apps)?

2009-06-28 Thread Tim Chase

iceangel89 wrote:

i am mainly a PHP (mainly using Zend Framework MVC now) Web Developer. used
.NET (VB & C#) for Desktop apps. i nv used Python and am looking at Python
now (for desktop apps since its open source and just want to try what it
offers, but will like to know what good it has for web development also)

somethings i am curious abt (that came to my mind) now are:


gvn ur pnchnt 4 illgble shrthnd, u mgt prefr perl ovr pythn.  or 
prhps u wnt asmbly lang.  XOR EAX, EAX; MOV [EAX], EAX



- performance


More than sufficient for my needs (scripting, web apps, most GUI 
apps) -- you can always drop to optimized C/C++ functions/modules 
if needed or use custom modules like numpy/numeric/etc for 
processor-intense work.


- ide to use? 


http://lmgtfy.com/?q=python+ide

I use vim.  Others use emacs.  Some use Eclipse.  Some use 
WingIDE.  Etc, etc, etc.  Try 'em each and see what you like


- how do i design GUI for windows app?  


http://lmgtfy.com/?q=python+gui

Lots of options -- choose the one you like.

-tkc




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


Advantages of Python (for web/desktop apps)?

2009-06-28 Thread iceangel89

i am mainly a PHP (mainly using Zend Framework MVC now) Web Developer. used
.NET (VB & C#) for Desktop apps. i nv used Python and am looking at Python
now (for desktop apps since its open source and just want to try what it
offers, but will like to know what good it has for web development also)

i wonder what do users of Python say? 

somethings i am curious abt (that came to my mind) now are:
- performance
- ide to use? 
- how do i design GUI for windows app?  
-- 
View this message in context: 
http://www.nabble.com/Advantages-of-Python-%28for-web-desktop-apps%29--tp24239603p24239603.html
Sent from the Python - python-list mailing list archive at Nabble.com.

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


Re: Python for web...

2008-02-25 Thread Larry Bates
[EMAIL PROTECTED] wrote:
> 
> In Perl, it was:
> 
> 
>   ## Example: "Abc | def | ghi | jkl"
>   ##   -> "Abc ghi jkl"
>   ## Take only the text betewwn the 2nd pipe (=cut the text in the 1st 
> pipe).
>   $na =~ s/\ \|(.*?)\ \|(.*?)\ \|/$2/g;
> 
>   ## -- remove [ and ] in text
>   $na =~ s/\[//g;
>   $na =~ s/\]//g;
>   # print "DEB: \"$na\"\n";
> 
> 
> # input string
> na="Abc | def | ghi | jkl [gugu]"
> # output
> na="Abc ghi jkl gugu"
> 
> 
> How is it done in Python?

You don't really need regular expressions for this simple transformation:

na="Abc | def | ghi | jkl [gugu]"

na=" ".join([x.strip() for x in na.replace("[","|").replace("]","").split("|")])

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


Re: Python for web...

2008-02-25 Thread Tim Chase
> I didn't have any trouble setting up mod_python & Django.  However, I
> am my own hosting provider.  That may make a difference. ;-)
> 
> I can install fastcgi if it's a big win.

 From my understanding, the python-code under mod_python runs as 
whatever Apaches runs as ("www", "wwwdata", whatever).  If this 
doesn't matter in your deployment, then there's little reason to 
do anything other than stick with what you know.

The advantage of fastcgi (again, from my feeble understanding) is 
that the fastcgi process (your python code) runs as a designated 
user.  This allows hosting companies to have your code run as 
you, Pat's code run as Pat, etc.  This makes separation of privs 
a little easier so Pat's code doesn't screw up things your 
environment, and your code doesn't screw up Pat's.  Nothing 
should really stop you from running your code as "www"/"wwwdata" 
which would simulate the mod_python environment somewhat.

It's up to you to decide the magnitude of this "big" win :)

-tkc





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


Re: Python for web...

2008-02-25 Thread Ivan Van Laningham
Hi All--
I didn't have any trouble setting up mod_python & Django.  However, I
am my own hosting provider.  That may make a difference. ;-)

I can install fastcgi if it's a big win.

Metta,
Ivan

On Mon, Feb 25, 2008 at 6:48 AM, Berco Beute <[EMAIL PROTECTED]> wrote:
> > Use mod_python if you can.
>
>  Although mod_python is fine, I had more success using fastcgi with
>  Django (you can run Django as a fastcgi process). It was less
>  troublesome to set up and the chances your hosting provider supports
>  it are bigger.
>
>  2B
>
>
> --
>  http://mail.python.org/mailman/listinfo/python-list
>



-- 
Ivan Van Laningham
God N Locomotive Works
http://www.pauahtun.org/
http://www.python.org/workshops/1998-11/proceedings/papers/laningham/laningham.html
Army Signal Corps:  Cu Chi, Class of '70
Author:  Teach Yourself Python in 24 Hours
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python for web...

2008-02-25 Thread Berco Beute
> Use mod_python if you can.

Although mod_python is fine, I had more success using fastcgi with
Django (you can run Django as a fastcgi process). It was less
troublesome to set up and the chances your hosting provider supports
it are bigger.

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


Re: Python for web...

2008-02-24 Thread Ivan Van Laningham
Hi All--
Django is slick.  I just yesterday picked up the book and started
poking away.  Downloaded, Installed and running in about ten minutes
(I have several servers I can play with).  Today I have several
working pages.

Use mod_python if you can.

-ly y'rs,
Ivan

On Sun, Feb 24, 2008 at 12:03 PM, Tamer Higazi <[EMAIL PROTECTED]> wrote:
> http://www.djangobook.com/
>
>  if you love to read that book online. Otherwise, if you don't have DSL,
>  just mirror the site for offline usage with "wget"
>
>  Tamer
>
>  [EMAIL PROTECTED] wrote:
>  > Hi everyone,
>  >
>  > I have to develop a web based enterprise application for my final year
>  > project. Since i am interested in open source, i searched the net.
>  > Almost 90% of them were PHP and MySQL. Cant we use python for that ? I
>  > tried several sites, but there is not enough tutorial for beginners
>  > [mod_python, PSP etc]. I couldnt find any detailed book, not even a
>  > single book :( All the python books are covering only CGI part)
>  >
>  > Any suggestions? Any recommended book?
>  >
>  > Execuse my English.
>  >
>  > Thushanthan.
>  --
>  http://mail.python.org/mailman/listinfo/python-list
>



-- 
Ivan Van Laningham
God N Locomotive Works
http://www.pauahtun.org/
http://www.python.org/workshops/1998-11/proceedings/papers/laningham/laningham.html
Army Signal Corps:  Cu Chi, Class of '70
Author:  Teach Yourself Python in 24 Hours
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python for web...

2008-02-24 Thread Tamer Higazi
http://www.djangobook.com/

if you love to read that book online. Otherwise, if you don't have DSL,
just mirror the site for offline usage with "wget"

Tamer

[EMAIL PROTECTED] wrote:
> Hi everyone,
> 
> I have to develop a web based enterprise application for my final year
> project. Since i am interested in open source, i searched the net.
> Almost 90% of them were PHP and MySQL. Cant we use python for that ? I
> tried several sites, but there is not enough tutorial for beginners
> [mod_python, PSP etc]. I couldnt find any detailed book, not even a
> single book :( All the python books are covering only CGI part)
> 
> Any suggestions? Any recommended book?
> 
> Execuse my English.
> 
> Thushanthan.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python for web...

2007-12-31 Thread James Matthews
The issue is finding a host with mod_python installed for cheap!

On Dec 31, 2007 7:57 AM, David Van Mosselbeen <
[EMAIL PROTECTED]> wrote:

> on Tue, 25 Dec 2007 20:42:03 -0800 (PST), [EMAIL PROTECTED] <
> [EMAIL PROTECTED]> wrote:
> >
> > Hi everyone,
> >
> > I have to develop a web based enterprise application for my final year
> > project. Since i am interested in open source, i searched the net.
> > Almost 90% of them were PHP and MySQL. Cant we use python for that ? I
> > tried several sites, but there is not enough tutorial for beginners
> > [mod_python, PSP etc]. I couldnt find any detailed book, not even a
> > single book :( All the python books are covering only CGI part)
> >
> > Any suggestions? Any recommended book?
> >
> > Execuse my English.
> >
> > Thushanthan.
>
> You can also take a look to `webpy` and `cherrypy`. These where not yet
> mentioned.
>
> --
> David Van Mosselbeen
> http://dvm.zapto.org:8080/
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Python for web...

2007-12-30 Thread David Van Mosselbeen
on Tue, 25 Dec 2007 20:42:03 -0800 (PST), [EMAIL PROTECTED] <[EMAIL PROTECTED]> 
wrote:
>
> Hi everyone,
>
> I have to develop a web based enterprise application for my final year
> project. Since i am interested in open source, i searched the net.
> Almost 90% of them were PHP and MySQL. Cant we use python for that ? I
> tried several sites, but there is not enough tutorial for beginners
> [mod_python, PSP etc]. I couldnt find any detailed book, not even a
> single book :( All the python books are covering only CGI part)
>
> Any suggestions? Any recommended book?
>
> Execuse my English.
>
> Thushanthan.

You can also take a look to `webpy` and `cherrypy`. These where not yet
mentioned.

-- 
David Van Mosselbeen
http://dvm.zapto.org:8080/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python for web...

2007-12-27 Thread Steve Lianoglou
It's also worthwhile to note that the apress django book listed is
also accessible free online here:

http://www.djangobook.com/en/1.0/

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


Re: Python for web...

2007-12-26 Thread James Matthews
Ha read an RFC for web dev! hehehhe Thats a new one!

On Dec 26, 2007 9:43 AM, Bruno Desthuilliers <
[EMAIL PROTECTED]> wrote:

> [EMAIL PROTECTED] a écrit :
> > Hi everyone,
> >
> > I have to develop a web based enterprise application
>
> "enterprise" ???
>
> > for my final year
> > project. Since i am interested in open source, i searched the net.
> > Almost 90% of them were PHP and MySQL. Cant we use python for that ?
>
> Well, I don't know if *you* can, but as far as I'm concerned, that what
> I do whenever possible !-)
>
> > I
> > tried several sites, but there is not enough tutorial for beginners
> > [mod_python, PSP etc]. I couldnt find any detailed book, not even a
> > single book :( All the python books are covering only CGI part)
>
>
> Knowing CGI is certainly not the worst starting point wrt/ web
> development - I whish more PHP 'programmers' had the minimal
> understanding of the HTTP protocol required to write a CGI script (and
> any serious web app FWIW).
>
> > Any suggestions?
>
> Django or Pylons are probably what you're looking for. The first one is
> the more mature, stable, and well documented, and the second one the
> most promising IMHO. If you're new to both web development and Python,
> I'd actually recommand Django.
>
> > Any recommended book?
>
> The HTTP 1.1 RFC !-)
>
>
> > Execuse my English.
>
> Seems fine to me - at least understandable, and that's the important
> point, isn't it ?-)
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Python for web...

2007-12-26 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit :
> Hi everyone,
> 
> I have to develop a web based enterprise application

"enterprise" ???

> for my final year
> project. Since i am interested in open source, i searched the net.
> Almost 90% of them were PHP and MySQL. Cant we use python for that ?

Well, I don't know if *you* can, but as far as I'm concerned, that what 
I do whenever possible !-)

> I
> tried several sites, but there is not enough tutorial for beginners
> [mod_python, PSP etc]. I couldnt find any detailed book, not even a
> single book :( All the python books are covering only CGI part)


Knowing CGI is certainly not the worst starting point wrt/ web 
development - I whish more PHP 'programmers' had the minimal 
understanding of the HTTP protocol required to write a CGI script (and 
any serious web app FWIW).

> Any suggestions? 

Django or Pylons are probably what you're looking for. The first one is 
the more mature, stable, and well documented, and the second one the 
most promising IMHO. If you're new to both web development and Python, 
I'd actually recommand Django.

> Any recommended book?

The HTTP 1.1 RFC !-)


> Execuse my English.

Seems fine to me - at least understandable, and that's the important 
point, isn't it ?-)

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


Re: Python for web...

2007-12-25 Thread Matt Nordhoff
[EMAIL PROTECTED] wrote:
> Hi everyone,
> 
> I have to develop a web based enterprise application for my final year
> project. Since i am interested in open source, i searched the net.
> Almost 90% of them were PHP and MySQL. Cant we use python for that ? I
> tried several sites, but there is not enough tutorial for beginners
> [mod_python, PSP etc]. I couldnt find any detailed book, not even a
> single book :( All the python books are covering only CGI part)
> 
> Any suggestions? Any recommended book?
> 
> Execuse my English.
> 
> Thushanthan.

Well, there are multiple different Python web frameworks, including
Django, Pylons, TurboGears and Zope (also the barebones CherryPy).
They're all much more high-level than PHP, including things like
database APIs and templating languages. Most/all of them have books or
at least good documentation and guides.

If you're doing something really simple (one web page, minimal DB usage,
whatever), you can use bare WSGI, perhaps like libraries like Beaker for
sessions.

Google all of the terms I used. There should be information available. :-P
-- 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python for web...

2007-12-25 Thread gordyt
Howdy Thushanthan,

Here is one that is hot off the press:

The Definitive Guide to Django: Web Development Done Right
http://www.apress.com/book/view/1590597257

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


Python for web...

2007-12-25 Thread thushianthan15

Hi everyone,

I have to develop a web based enterprise application for my final year
project. Since i am interested in open source, i searched the net.
Almost 90% of them were PHP and MySQL. Cant we use python for that ? I
tried several sites, but there is not enough tutorial for beginners
[mod_python, PSP etc]. I couldnt find any detailed book, not even a
single book :( All the python books are covering only CGI part)

Any suggestions? Any recommended book?

Execuse my English.

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


Re: Python for web development ...

2007-08-22 Thread Michael S
Check out http://www.modpython.org/, you can also use
python with CGI
http://docs.python.org/lib/module-cgi.html
or fastcgi 
http://www.fastcgi.com/

--- [EMAIL PROTECTED] wrote:

> 
> Hi everyone,
> 
> I have to do a web based application for my final
> year project. Since,
> i am only familiar with basic HTML and Java Script,
> i am totally new
> to this one. My friends are using LAMP (P->PHP). But
> i want to use
> Python. Is it possible to use Python with Apache and
> MySQL. Is it
> possible ? Any websites/books ?
> 
> Thank you
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list
> 

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


Re: Python for web development ...

2007-08-22 Thread marc wyburn
On Aug 22, 5:13 pm, [EMAIL PROTECTED] wrote:
> Hi everyone,
>
> I have to do a web based application for my final year project. Since,
> i am only familiar with basic HTML and Java Script, i am totally new
> to this one. My friends are using LAMP (P->PHP). But i want to use
> Python. Is it possible to use Python with Apache and MySQL. Is it
> possible ? Any websites/books ?
>
> Thank you

there are a number of ways to do it.  I've used mod_python embedded
into Apache and it worked well and I found it easy to pick up and
advanced enough to do pretty much whatever I wanted.  There are in
depth docs and tutorials on the mod_python page. You could also look
at a preconfigured stacks like Turbogears or Django although they may
have many features you don't need.  Have a look at
http://wiki.python.org/moin/WebFrameworks

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


Python for web development ...

2007-08-22 Thread thushianthan15

Hi everyone,

I have to do a web based application for my final year project. Since,
i am only familiar with basic HTML and Java Script, i am totally new
to this one. My friends are using LAMP (P->PHP). But i want to use
Python. Is it possible to use Python with Apache and MySQL. Is it
possible ? Any websites/books ?

Thank you

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


Re: python for web programming

2007-02-07 Thread JStoneGT
Thanks a lot.
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: python for web programming

2007-02-05 Thread Gabriel Genellina
En Tue, 06 Feb 2007 02:10:14 -0300, <[EMAIL PROTECTED]> escribió:

> Can you show me some reference datas for python web  programming?Thanks.

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

or search the wiki, or even use Google.

-- 
Gabriel Genellina

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


python for web programming

2007-02-05 Thread JStoneGT
hello,
 
Can you show me some reference datas for python web  programming?Thanks.
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: MVC in Python for web app dev

2006-03-27 Thread Don Taylor
[EMAIL PROTECTED] wrote:
>  I'm aware that Pylons is trying to
> compete with Rails in the near future but I'm just not clear on how
> directly they are trying to compete...will Pylons have the same
> generation functions and other time saving goodies that RoR has or am I
> barking up the wrong tree?
> 

Thanks for the reference to Pylon:

http://pylonshq.com/

I had not heard of it before and it looks promising.

Have you asked your questions ('the same generation functions and other 
time saving goodies') of the Pylon folks?

Don.

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


Re: MVC in Python for web app dev

2006-03-26 Thread Robert Hicks
http://www.myghty.org/

That one is excellent.

Robert

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


Re: MVC in Python for web app dev

2006-03-26 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit :
> Thanks Rune. I've already checked out Django and TG and have found both
> the projects to be a little misguided. I think the one great thing they
> have over Rails is the use of SQLObject 

Then you haven't really checked Django - it doesn't use SQLObject.

> Having said that, neither TG or Django seem to have the learning
> material available on an equivilent standard to Rails.

I found Django's doc to be mostly good, even if a bit terse on some 
points (but then there's the mailing-list).

> Maybe it's just
> because they're more immature and thus Rails has got the head start
> here.

Django has been 'extracted' from existing software (3+ years of use in 
production), so I wouldn't call it 'immature'. It certainly has warts 
(the most obvious one - the ORM - will be fixed in 0.92, that is in few 
weeks), but I found it mostly usable, and (this ORM issue apart, but 
transition should not be a big issue) stable enough to start using it on 
real-life projects.

> I guess more than pointing out a few URLs I was looking for some
> peoples honest opinion on why they would chose one over the other
> (besides the basis of language alone).

Well, the 'language' criteria is already enough for me. Ruby is fine 
too, but I've already been programming in Python for 5+ years - talking 
about 'head start' !-)

> I'm just trying to source the
> most viable option at the moment, trying to find something to offer
> quickly without resorting to *shudders* Spring or the like.
> 

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


Re: MVC in Python for web app dev

2006-03-25 Thread m . wanstall
Thanks Rune. I've already checked out Django and TG and have found both
the projects to be a little misguided. I think the one great thing they
have over Rails is the use of SQLObject because the implicit mapping of
data models via the "plural" approach of Rails is a bit of a quirk to
me, I just don't like it, it leaves too much room for human error due
to lack of control.

Having said that, neither TG or Django seem to have the learning
material available on an equivilent standard to Rails. Maybe it's just
because they're more immature and thus Rails has got the head start
here.

I guess more than pointing out a few URLs I was looking for some
peoples honest opinion on why they would chose one over the other
(besides the basis of language alone). I'm just trying to source the
most viable option at the moment, trying to find something to offer
quickly without resorting to *shudders* Spring or the like.

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


Re: MVC in Python for web app dev

2006-03-25 Thread Rune Strand

[EMAIL PROTECTED] wrote:
> Please let me state off the cuff that I'm not after a big "Python Vs
> Ruby" war or anything here! I'm trying to make the switch to Python for
> my web development work as I've been using it for quite some time for
> other programming work (albeit mainly hobby and personal interest
> projects) as I'm getting to the stage where the need for a real MVC
> capable language framework is a must simply to save some time and PHP
> just isn't cutting it (although CakePHP is all right and the new Zend
> framework looks to hold some promise).
>
> Here's where I'm in a pickle! I would prefer to stick with Python as I
> am enjoying it BUT Ruby on Rails is simply too hard to deny a look in.
> The ease that it provides in generating scaffolding and the intuitive
> templating engine is just plain good, adding in to this the RadRails
> Eclipse plugin for a beautiful IDE (I know, I know how great
> vim/emacs/whatever is but still, if RadRails is going to save some time
> frankly I'm liking it already!). I'm aware that Pylons is trying to
> compete with Rails in the near future but I'm just not clear on how
> directly they are trying to compete...will Pylons have the same
> generation functions and other time saving goodies that RoR has or am I
> barking up the wrong tree?
>
> Basically I'm not going to abandon Python because I find it fits me
> better as a language than Ruby, but when I need to be able to develop
> good, stable MVC web apps in a small amount of time I don't want to be
> wasting my time waiting for Python to deliver something it's just not
> going to (I also forgot to mention I don't want to run on a custom
> little webserver, I prefer the piece of mind I have with Apache - in
> true LAMP style :P).
>
> So I'm asking for ANY opinions here! For datadriven web apps that need
> to be able to support small and large scale distros, can Python deliver
> or is RoR the way to go?
>
> Thanks for any help you guys throw at me!! Oh, and any examples like
> current big webapps to back up a particular point of view would be
> greatly appreciated too! Thanks!


http://www.djangoproject.com/
http://www.turbogears.org/

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


MVC in Python for web app dev

2006-03-25 Thread m . wanstall
Please let me state off the cuff that I'm not after a big "Python Vs
Ruby" war or anything here! I'm trying to make the switch to Python for
my web development work as I've been using it for quite some time for
other programming work (albeit mainly hobby and personal interest
projects) as I'm getting to the stage where the need for a real MVC
capable language framework is a must simply to save some time and PHP
just isn't cutting it (although CakePHP is all right and the new Zend
framework looks to hold some promise).

Here's where I'm in a pickle! I would prefer to stick with Python as I
am enjoying it BUT Ruby on Rails is simply too hard to deny a look in.
The ease that it provides in generating scaffolding and the intuitive
templating engine is just plain good, adding in to this the RadRails
Eclipse plugin for a beautiful IDE (I know, I know how great
vim/emacs/whatever is but still, if RadRails is going to save some time
frankly I'm liking it already!). I'm aware that Pylons is trying to
compete with Rails in the near future but I'm just not clear on how
directly they are trying to compete...will Pylons have the same
generation functions and other time saving goodies that RoR has or am I
barking up the wrong tree?

Basically I'm not going to abandon Python because I find it fits me
better as a language than Ruby, but when I need to be able to develop
good, stable MVC web apps in a small amount of time I don't want to be
wasting my time waiting for Python to deliver something it's just not
going to (I also forgot to mention I don't want to run on a custom
little webserver, I prefer the piece of mind I have with Apache - in
true LAMP style :P).

So I'm asking for ANY opinions here! For datadriven web apps that need
to be able to support small and large scale distros, can Python deliver
or is RoR the way to go?

Thanks for any help you guys throw at me!! Oh, and any examples like
current big webapps to back up a particular point of view would be
greatly appreciated too! Thanks!

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