Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Consider dropping a python package and paster ini file approach as default.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Cosmia Luna  
View profile  
 More options Mar 10 2012, 1:43 am
From: Cosmia Luna <cosm...@gmail.com>
Date: Fri, 9 Mar 2012 22:43:55 -0800 (PST)
Local: Sat, Mar 10 2012 1:43 am
Subject: [Feature Suggest] Consider dropping a python package and paster ini file approach as default.

As a freshman in python, it made me very confused once what does a package
mean and the weird file such like *.egg-info, entry_points.txt, setup.cfg
... I can't understand very well even today. And the paster like ini file,
plain python configuration will surely be more powerful with no cost to
learn.

I suggest not use pserve script but a plain python script like below to be
default or at least a option to make it easier:

#!/path/to/python
import sys
sys.insert(0, 'path/to/app')
from app import wsgi_app, app_config
from werkzeug.serving import run_simple
run_simple(app_config.HOSTNAME, app_config.PORT, wsgi_app,
    use_reloader=app_config.DEBUG, use_debugger=app_config.DEBUG)

Or something more powerful.

Regards,
Cosmia


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris McDonough  
View profile  
 More options Mar 10 2012, 11:38 am
From: Chris McDonough <chr...@plope.com>
Date: Sat, 10 Mar 2012 08:38:15 -0800
Local: Sat, Mar 10 2012 11:38 am
Subject: Re: [Feature Suggest] Consider dropping a python package and paster ini file approach as default.

On Fri, 2012-03-09 at 22:43 -0800, Cosmia Luna wrote:
> As a freshman in python, it made me very confused once what does a
> package mean and the weird file such like *.egg-info,
> entry_points.txt, setup.cfg ... I can't understand very well even
> today. And the paster like ini file, plain python configuration will
> surely be more powerful with no cost to learn.

I sympathize with this, Python packaging is pretty grotty.  However, at
some point you're going to need to understand it to make the most of
Python.

> I suggest not use pserve script but a plain python script like below
> to be default or at least a option to make it easier:

> #!/path/to/python
> import sys
> sys.insert(0, 'path/to/app')
> from app import wsgi_app, app_config
> from werkzeug.serving import run_simple
> run_simple(app_config.HOSTNAME, app_config.PORT, wsgi_app,
>     use_reloader=app_config.DEBUG, use_debugger=app_config.DEBUG)

> Or something more powerful.

Defaults are pretty hard.  We get value out of pserve and friends
(particularly the --reload flag).

Of course what you want is already possible.  See the code sample at
http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/

- C


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »