Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #53181 > unrolled thread

Moving to Python for web

Started byecazs.net@gmail.com
First post2013-08-28 13:14 -0700
Last post2013-09-05 15:26 -0500
Articles 11 — 7 participants

Back to article view | Back to comp.lang.python


Contents

  Moving to Python for web ecazs.net@gmail.com - 2013-08-28 13:14 -0700
    Re: Moving to Python for web Joel Goldstick <joel.goldstick@gmail.com> - 2013-08-28 17:08 -0400
      Re: Moving to Python for web Andreas Ecaz <ecazs.net@gmail.com> - 2013-08-28 14:25 -0700
        Re: Moving to Python for web Andreas Ecaz <ecazs.net@gmail.com> - 2013-08-28 14:36 -0700
    Re: Moving to Python for web sepatan@sibmail.com - 2013-08-29 09:36 +0700
    Re: Moving to Python for web "Sam Fourman Jr." <sfourman@gmail.com> - 2013-08-28 22:18 -0400
    Re: Moving to Python for web Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-08-29 11:05 +0200
    Re: Moving to Python for web Andreas Ecaz <ecazs.net@gmail.com> - 2013-08-29 05:45 -0700
      Re: Moving to Python for web Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-08-29 15:10 +0200
        Re: Moving to Python for web Andreas Ecaz <ecazs.net@gmail.com> - 2013-08-29 07:18 -0700
      Re: Moving to Python for web Wayne Werner <wayne@waynewerner.com> - 2013-09-05 15:26 -0500

#53181 — Moving to Python for web

Fromecazs.net@gmail.com
Date2013-08-28 13:14 -0700
SubjectMoving to Python for web
Message-ID<52bbd0bc-7c3e-4c85-bfe1-7fd4912945be@googlegroups.com>
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.

[toc] | [next] | [standalone]


#53183

FromJoel Goldstick <joel.goldstick@gmail.com>
Date2013-08-28 17:08 -0400
Message-ID<mailman.326.1377724135.19984.python-list@python.org>
In reply to#53181
On Wed, Aug 28, 2013 at 4:14 PM,  <ecazs.net@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

[toc] | [prev] | [next] | [standalone]


#53185

FromAndreas Ecaz <ecazs.net@gmail.com>
Date2013-08-28 14:25 -0700
Message-ID<dc4cd1f0-75db-45f3-bb79-f1da572c1c22@googlegroups.com>
In reply to#53183
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.

[toc] | [prev] | [next] | [standalone]


#53187

FromAndreas Ecaz <ecazs.net@gmail.com>
Date2013-08-28 14:36 -0700
Message-ID<909c9bca-9e52-482c-adfb-044aa2c91a20@googlegroups.com>
In reply to#53185
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.

[toc] | [prev] | [next] | [standalone]


#53219

Fromsepatan@sibmail.com
Date2013-08-29 09:36 +0700
Message-ID<mailman.346.1377760227.19984.python-list@python.org>
In reply to#53181
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
>

[toc] | [prev] | [next] | [standalone]


#53221

From"Sam Fourman Jr." <sfourman@gmail.com>
Date2013-08-28 22:18 -0400
Message-ID<mailman.348.1377760274.19984.python-list@python.org>
In reply to#53181

[Multipart message — attachments visible in raw view] — view raw

On Wed, Aug 28, 2013 at 4:14 PM, <ecazs.net@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.

[toc] | [prev] | [next] | [standalone]


#53228

FromChris “Kwpolska” Warrick <kwpolska@gmail.com>
Date2013-08-29 11:05 +0200
Message-ID<mailman.351.1377767112.19984.python-list@python.org>
In reply to#53181
On Thu, Aug 29, 2013 at 4:18 AM, Sam Fourman Jr. <sfourman@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

[toc] | [prev] | [next] | [standalone]


#53243

FromAndreas Ecaz <ecazs.net@gmail.com>
Date2013-08-29 05:45 -0700
Message-ID<05537ea8-4993-4ad2-baa7-4ccdf5268c5d@googlegroups.com>
In reply to#53181
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.

[toc] | [prev] | [next] | [standalone]


#53245

FromChris “Kwpolska” Warrick <kwpolska@gmail.com>
Date2013-08-29 15:10 +0200
Message-ID<mailman.364.1377781805.19984.python-list@python.org>
In reply to#53243
On Thu, Aug 29, 2013 at 2:45 PM, Andreas Ecaz <ecazs.net@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

[toc] | [prev] | [next] | [standalone]


#53248

FromAndreas Ecaz <ecazs.net@gmail.com>
Date2013-08-29 07:18 -0700
Message-ID<cd84b2e1-914f-488e-96df-d4bdc7021f60@googlegroups.com>
In reply to#53245
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.

[toc] | [prev] | [next] | [standalone]


#53739

FromWayne Werner <wayne@waynewerner.com>
Date2013-09-05 15:26 -0500
Message-ID<mailman.105.1378413182.5461.python-list@python.org>
In reply to#53243

[Multipart message — attachments visible in raw view] — view raw

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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web