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