Re: web scraper

2019-10-26 Thread Michael Torrie
On 10/25/19 9:19 AM, joseph pareti wrote: > but can it be generalized? > Not all tags are in the form ofto just replace those tags in the code, should > one process a different website? Not really, no. There is not an easy way to generalize this sort of web scraping. There are many different

Re: Web framework for static pages

2019-08-13 Thread Morten W. Petersen
Hi "DL Neil". I find your argumentation combative and provoking. I have an ex that has made my life difficult for the last 6 years, blocking me from seeing my kids, she acts in a similar way. I don't have the time, energy or the will to bring more of that stuff into my life, so I won't reply to

Re: Web framework for static pages

2019-08-13 Thread DL Neil
On 13/08/19 10:54 PM, Morten W. Petersen wrote: I was hoping to avoid testing a lot of different systems, spending time there. Sooner or later you have to make a decision - and be responsible for it to your clients. So that's why I'm asking here. People here are helpful. The more time yo

Re: Web framework for static pages

2019-08-13 Thread Joel Goldstick
On Tue, Aug 13, 2019 at 4:12 PM Morten W. Petersen wrote: > > Hi Joel. > > I don't disagree with what you're saying, but is there a documented way of > making Django produce a neat set of static pages? > > It would be nice to use a web application framework to create pages, because > it would af

Re: Web framework for static pages

2019-08-13 Thread Morten W. Petersen
Hi Joel. I don't disagree with what you're saying, but is there a documented way of making Django produce a neat set of static pages? It would be nice to use a web application framework to create pages, because it would after that be easy to add a little bit of logic if a customer wants it. A con

Re: Web framework for static pages

2019-08-13 Thread Joel Goldstick
On Tue, Aug 13, 2019 at 2:46 PM DL Neil wrote: > > On 14/08/19 2:26 AM, Grant Edwards wrote: > > On 2019-08-13, Jon Ribbens via Python-list wrote: > > > >> If it's really that small then it sounds like what you are looking for > >> is known as a "text editor". > > > > Bah. Kids these days. > > >

Re: Web framework for static pages

2019-08-13 Thread DL Neil
On 14/08/19 2:26 AM, Grant Edwards wrote: On 2019-08-13, Jon Ribbens via Python-list wrote: If it's really that small then it sounds like what you are looking for is known as a "text editor". Bah. Kids these days. $ cat > index.hmtl [roaring with laughter] Oh come now. Surely a per

Re: Web framework for static pages

2019-08-13 Thread Brian Oney via Python-list
On August 13, 2019 4:00:30 PM GMT+02:00, "Morten W. Petersen" wrote: >Ok. Isn't it a bit splitting of hairs to talk about static site >generators >and their templates? > >Wouldn't a static site generator that can create a good, usable website >with little input be desirable? > >I could pick an

Re: Web framework for static pages

2019-08-13 Thread Jon Ribbens via Python-list
On 2019-08-13, Morten W. Petersen wrote: > Ok. Isn't it a bit splitting of hairs to talk about static site generators > and their templates? No, not even slightly. You appear to be thinking that static site generators come with a pre-made set of design templates, and as far as I am aware they gen

Re: Web framework for static pages

2019-08-13 Thread Morten W. Petersen
HMTL? Good you weren't in cat input after a newline. 😁 -Morten Blogging at http://blogologue.com Tweeting at https://twitter.com/blogologue On Instagram https://instagram.com/morphexx tir. 13. aug. 2019, 16.28 skrev Grant Edwards : > On 2019-08-13, Jon Ribbens via Python-list wrote: > > > If i

Re: Web framework for static pages

2019-08-13 Thread Grant Edwards
On 2019-08-13, Jon Ribbens via Python-list wrote: > If it's really that small then it sounds like what you are looking for > is known as a "text editor". Bah. Kids these days. $ cat > index.hmtl -- Grant Edwards grant.b.edwardsYow! My vaseline is

Re: Web framework for static pages

2019-08-13 Thread Morten W. Petersen
Ok. Isn't it a bit splitting of hairs to talk about static site generators and their templates? Wouldn't a static site generator that can create a good, usable website with little input be desirable? I could pick and choose CSS templates, HTML templates and write some of my own, but that takes qu

Re: Web framework for static pages

2019-08-13 Thread Morten W. Petersen
Ok, will take a look at those. -Morten Blogging at http://blogologue.com Tweeting at https://twitter.com/blogologue On Instagram https://instagram.com/morphexx tir. 13. aug. 2019, 14.39 skrev Jan Erik Moström : > On 13 Aug 2019, at 12:54, Morten W. Petersen wrote: > > > I was hoping to avoid te

Re: Web framework for static pages

2019-08-13 Thread Jon Ribbens via Python-list
On 2019-08-13, Morten W. Petersen wrote: > Ideally I'd want a static site generator that makes it easy and quick to > create a website which is pretty, accessible, works across browsers and > standards compliant and doesn't freeze the browser on a low-end phone. That isn't what they do. All those

Re: Web framework for static pages

2019-08-13 Thread Morten W. Petersen
I was hoping to avoid testing a lot of different systems, spending time there. So that's why I'm asking here. I don't need a guide to create a website, maybe a refresher on some topics. Ideally I'd want a static site generator that makes it easy and quick to create a website which is pretty, acc

Re: Web framework for static pages

2019-08-13 Thread Morten W. Petersen
Yes. Well, one of the ideas of the web is being able to create a website using simple tools like that. And I like that idea. And for one site, either small or very specialized and well-funded, that would be an OK choice. However, I want to offer customers websites that cover their needs, without

Re: Web framework for static pages

2019-08-13 Thread Morten W. Petersen
Right. That was a useful term, I've got some things to look at there. -Morten Blogging at http://blogologue.com Tweeting at https://twitter.com/blogologue On Instagram https://instagram.com/morphexx tir. 13. aug. 2019, 00.29 skrev Cameron Simpson : > On 13Aug2019 00:01, Morten W. Petersen wrot

Re: Web framework for static pages

2019-08-13 Thread DL Neil
On 13/08/19 10:01 AM, Morten W. Petersen wrote: On 12.08.2019 18:13, Brian Oney wrote: On August 12, 2019 9:14:55 AM GMT+02:00, morphex wrote: Hi. What frameworks are there for generating static web pages in Python? I have used: https://github.com/Frozen-Flask/Frozen-Flask It's pretty simple.

Re: Web framework for static pages

2019-08-12 Thread Jon Ribbens via Python-list
On 2019-08-12, Morten W. Petersen wrote: > What I guess I'm looking for, is something that will help create a > static website, in a simple and efficient manner. Without being bloated. > > I don't have a lot of hair on my head, but I would be pulling it out > because of some of the websites I s

Re: Web framework for static pages

2019-08-12 Thread Cameron Simpson
On 13Aug2019 00:01, Morten W. Petersen wrote: What I guess I'm looking for, is something that will help create a static website, in a simple and efficient manner. Without being bloated. I don't have a lot of hair on my head, but I would be pulling it out because of some of the websites I se

Re: Web framework for static pages

2019-08-12 Thread Morten W. Petersen
On 12.08.2019 18:13, Brian Oney wrote: On August 12, 2019 9:14:55 AM GMT+02:00, morphex wrote: Hi. What frameworks are there for generating static web pages in Python? I have used: https://github.com/Frozen-Flask/Frozen-Flask It's pretty simple. Develop with flask and then "freeze" it.

Re: Web framework for static pages

2019-08-12 Thread morphex
Why Google it, when I have an Oracle? 😄 -Morten -- https://mail.python.org/mailman/listinfo/python-list

Re: Web framework for static pages

2019-08-12 Thread Michael Torrie
On 8/12/19 1:14 AM, morphex wrote: > What frameworks are there for generating static web pages in Python? What are > the features of each? A quick google search reveals a number of them. Pelican, Hyde, etc. -- https://mail.python.org/mailman/listinfo/python-list

Re: Web framework for static pages

2019-08-12 Thread Brian Oney via Python-list
On August 12, 2019 9:14:55 AM GMT+02:00, morphex wrote: >Hi. > >What frameworks are there for generating static web pages in Python? I have used: https://github.com/Frozen-Flask/Frozen-Flask It's pretty simple. Develop with flask and then "freeze" it. I am looking forward to further answers

Re: Web Frameworks

2017-03-09 Thread Patrick McFarling
On Thursday, 9 March 2017 05:05:37 UTC-5, David Froger wrote: > There is a free ebook on the subject on O'Reilly: > http://www.oreilly.com/web-platform/free/python-web-frameworks.csp > > Hope it helps, > David > > > Quoting Patrick McFarling (2017-03-09 10:24:16) > > I would like to know what a

Re: Web Frameworks

2017-03-09 Thread David Froger
There is a free ebook on the subject on O'Reilly: http://www.oreilly.com/web-platform/free/python-web-frameworks.csp Hope it helps, David Quoting Patrick McFarling (2017-03-09 10:24:16) > I would like to know what are the pros and cons of the web frameworks made in > python. > The one I tend to

Re: Web Scraping

2016-11-12 Thread Gonzalo V
Explore url module and you need urlretrieve() saludos, desde un móvil. El nov 12, 2016 12:23 p.m., "Veek M" escribió: > Steve D'Aprano wrote: > > > On Sat, 12 Nov 2016 11:07 pm, Veek M wrote: > > > >> 121sukha wrote: > >> > >>> I am new to python and I want to use web scraping to download songs

Re: Web Scraping

2016-11-12 Thread Veek M
Steve D'Aprano wrote: > On Sat, 12 Nov 2016 11:07 pm, Veek M wrote: > >> 121sukha wrote: >> >>> I am new to python and I want to use web scraping to download songs >>> from website. how do I write code to check if the website has >>> uploaded a new song and have that song automatically be downlo

Re: Web Scraping

2016-11-12 Thread Steve D'Aprano
On Sat, 12 Nov 2016 11:07 pm, Veek M wrote: > 121sukha wrote: > >> I am new to python and I want to use web scraping to download songs >> from website. how do I write code to check if the website has uploaded >> a new song and have that song automatically be downloaded onto my >> computer. I know

Re: Web Scraping

2016-11-12 Thread Veek M
121sukha wrote: > I am new to python and I want to use web scraping to download songs > from website. how do I write code to check if the website has uploaded > a new song and have that song automatically be downloaded onto my > computer. I know how to use the requests.get() module but i am more >

Re: web facing static text db

2016-05-01 Thread sum abiut
Django is an excellent framework. you can use it with sqlite. cheers On Sat, Apr 30, 2016 at 7:17 PM, Gordon Levi wrote: > "Fetchinson ." wrote: > > >Hi folks,go > > >I have a vo ery specific set of requirements for a task and was > >wondering if anyone had good suggestions for the best set of

Re: web facing static text db

2016-04-30 Thread Fetchinson . via Python-list
On 4/30/16, Gordon Levi wrote: > "Fetchinson ." wrote: > >>Hi folks, >> >>I have a very specific set of requirements for a task and was >>wondering if anyone had good suggestions for the best set of tools: >> >>* store text documents (about 10 pages) >>* the data set is static (i.e. only look

Re: web facing static text db

2016-04-30 Thread Gordon Levi
"Fetchinson ." wrote: >Hi folks, > >I have a very specific set of requirements for a task and was >wondering if anyone had good suggestions for the best set of tools: > >* store text documents (about 10 pages) >* the data set is static (i.e. only lookups are performed, no delete, >no edit, no

Re: web facing static text db

2016-04-29 Thread Chris Angelico
On Sat, Apr 30, 2016 at 8:29 AM, Fetchinson . via Python-list wrote: > * store text documents (about 10 pages) > * the data set is static (i.e. only lookups are performed, no delete, > no edit, no addition) > * only one operation required: lookup of pages by matching words in them > * very sim

Re: Web Scraping

2016-03-25 Thread alister
On Thu, 24 Mar 2016 18:17:43 -0700, 121sukha wrote: > I am new to python and I want to use web scraping to download songs from > website. > how do I write code to check if the website has uploaded a new song and > have that song automatically be downloaded onto my computer. I know how > to use the

RE: web scraping help / better way to do it ?

2016-01-19 Thread Matt
> -Original Message- > From: Python-list [mailto:python-list- > bounces+matt=centralkaos@python.org] On Behalf Of Peter Otten > Sent: Tuesday, 19 January 2016 9:30 PM > To: python-list@python.org > Subject: Re: web scraping help / better way to do it

Re: web scraping help / better way to do it ?

2016-01-19 Thread Peter Otten
Matt wrote: > Beginner python user (3.5) and trying to scrape this page and get the > ladder > - www.afl.com.au/ladder . Its dynamic content so I used lynx -dump to > get > a txt file and parsing that. > > Here is the code > > # import lynx -dump txt file > f = open('c:/temp/afl2.txt','r').r

Re: Web service in Python

2014-01-27 Thread dieter
yiitest...@gmail.com writes: > I installed rapidsms in local for send messages. The application tested with > local server. Now i would like to store the incoming messages in another > database via a php application. Means when a message received in rapidsms > (Django-Python) app, i want to cal

Re: Web Server for Python

2013-12-16 Thread Denis McMahon
On Mon, 16 Dec 2013 19:20:20 -0800, Mura Zalukhu wrote: > Could you give me the best tutorial / web for python. For example how to > make a connection with database. Which database? Which version of Python? Google may help. So will the Python on-line documentation. -- Denis McMahon, denismfmcm

Re: Web Server for Python

2013-12-16 Thread Mura Zalukhu
Hi David, Thanks for your reply, i will learn it. Could you give me the best tutorial / web for python. For example how to make a connection with database. Thanks so much On Tuesday, December 17, 2013 9:40:56 AM UTC+7, david@gmail.com wrote: > Hi Mura, > > > apache is used as a proxy with p

Re: Web Server for Python

2013-12-16 Thread david.gar...@gmail.com
Hi Mura, apache is used as a proxy with python. You would fire up your python web app and put apache in front of it. Apache does come these days with wsgi https://code.google.com/p/modwsgi/ that can be added to apache as module, something like mod_wsgi can be used for your python web app. PHP is a

Re: Web Page Parsing/Downloading

2013-11-22 Thread Chris Angelico
On Fri, Nov 22, 2013 at 9:10 PM, TheRandomPast wrote: > Can anyone help because I've become a little stuck? None of the scripts are > running for me and I can't see where I'm having issues I'm rather lost in what you're trying to accomplish here. The first thing to do would be to separate out yo

Re: Web framework

2013-11-22 Thread David Froger
Hi, > I'm thinking of porting a Python application that uses numpy for web, > basically would like to upload a user-defined data, perform the > calculations with numpy and plot charts with the general structure of a > site such as a blog for example, I have studied a bit of django and > web2py, bu

Re: Web framework

2013-11-22 Thread Ben Finney
Renato Barbosa Pim Pereira writes: > I'm thinking of porting a Python application that uses numpy for web, > basically would like to upload a user-defined data, perform the > calculations with numpy and plot charts with the general structure of > a site such as a blog for example The “default” o

Re: web scraping

2013-10-13 Thread John Nagle
On 10/12/2013 1:35 PM, dvgh...@gmail.com wrote: > On Saturday, October 12, 2013 7:12:38 AM UTC-7, Ronald Routt wrote: >> I am new to programming and trying to figure out python. >> >> >> >> I am trying to learn which tools and tutorials I need to use along >> with some good beginner tutorials in

Re: web scraping

2013-10-12 Thread dvghana
On Saturday, October 12, 2013 7:12:38 AM UTC-7, Ronald Routt wrote: > I am new to programming and trying to figure out python. > > > > I am trying to learn which tools and tutorials I need to use along with some > good beginner tutorials in scraping the the web. The end result I am trying >

Re: web scraping

2013-10-12 Thread Mark Lawrence
On 12/10/2013 15:12, Ronald Routt wrote: I am new to programming and trying to figure out python. I am trying to learn which tools and tutorials I need to use along with some good beginner tutorials in scraping the the web. The end result I am trying to come up with is scraping auto d

Re: web development in python without using any webframework

2013-08-02 Thread dieter
Alok Singh Mahor writes: > Hello everyone, > few months back I started learning python and now I got nice familiarity. > now i want to use python for creating dynamic database driven websites. and > I dont want to use existing web frameworks for my work. I am learning > things so I wont feel lazy

Re: web development in python without using any webframework

2013-08-02 Thread Rodrick Brown
On Aug 3, 2013, at 12:37 AM, Alok Singh Mahor wrote: > Hello everyone, > few months back I started learning python and now I got nice familiarity. now > i want to use python for creating dynamic database driven websites. and I > dont want to use existing web frameworks for my work. I am learnin

Re: Web Testing Frameworks

2013-02-12 Thread John Gordon
In Greg Lindstrom writes: > I'm not wanting to start anything here, but I am wanting to automate > testing of my Django-based websites. A quick search on Google turns up a Have you looked at using the built-in django test client? -- John Gordon A is for Amy, who fell down

Re: Web Frameworks Excessive Complexity

2012-11-22 Thread Thomas Bach
On Wed, Nov 21, 2012 at 12:49:52PM -0800, rh wrote: > > wheezy + "myvirtualenv" = 3.3MB > pyramid = 92MB $ mkvirtualenv --no-site-packages -p python2.7 pyramid $ pip install -U distribute $ pip install pyramid $ du -h .virtualenvs/pyramid 22M .virtualenvs/pyramid $ du

Re: Web Frameworks Excessive Complexity

2012-11-21 Thread Modulok
> On Wed, Nov 21, 2012 at 10:43 PM, Steven D'Aprano > wrote: >> On Wed, 21 Nov 2012 22:21:23 +1100, Chris Angelico wrote: >> >>> Counting complexity by giving a score to every statement encourages code >>> like this: >>> >>> def bletch(x,y): >>> return x + {"foo":y*2,"bar":x*3+y,"quux":math.sin(

Re: Web Frameworks Excessive Complexity

2012-11-21 Thread Chris Angelico
On Wed, Nov 21, 2012 at 10:43 PM, Steven D'Aprano wrote: > On Wed, 21 Nov 2012 22:21:23 +1100, Chris Angelico wrote: > >> Counting complexity by giving a score to every statement encourages code >> like this: >> >> def bletch(x,y): >> return x + {"foo":y*2,"bar":x*3+y,"quux":math.sin(y)}.get(mod

Re: Web Frameworks Excessive Complexity

2012-11-21 Thread Chris Rebert
On Wed, Nov 21, 2012 at 10:57 AM, rh wrote: > On Wed, 21 Nov 2012 10:12:26 -0800 > Chris Rebert wrote: >> On Wed, Nov 21, 2012 at 9:49 AM, rh >> wrote: >> > On Tue, 20 Nov 2012 20:41:42 +0300 >> > Andriy Kornatskyy wrote: >> > I'm looking at different technology right now on which to base a >>

RE: Web Frameworks Excessive Complexity

2012-11-21 Thread Andriy Kornatskyy
Kornatskyy > To: python-list@python.org > From: richard_hubb...@lavabit.com > Subject: Re: Web Frameworks Excessive Complexity > Date: Wed, 21 Nov 2012 09:49:39 -0800 > > On Tue, 20 Nov 2012 20:41:42 +0300 > Andriy Kornatskyy wrote: >

Re: Web Frameworks Excessive Complexity

2012-11-21 Thread Chris Rebert
On Wed, Nov 21, 2012 at 9:49 AM, rh wrote: > On Tue, 20 Nov 2012 20:41:42 +0300 > Andriy Kornatskyy wrote: >> Cyclomatic (or conditional) complexity is a metric used to indicate >> the complexity of a source code. Excessive complexity is something >> that is beyond recommended level of 10 (thresh

Re: Web Frameworks Excessive Complexity

2012-11-21 Thread Robert Kern
On 21/11/2012 12:47, Andriy Kornatskyy wrote: Hm... what serves an evidence purpose for you? Well-done empirical studies, like the one I gave you. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to inte

RE: Web Frameworks Excessive Complexity

2012-11-21 Thread Andriy Kornatskyy
Hm... what serves an evidence purpose for you? See functions at line 2619 and 2974 as an example for CC 20+: https://github.com/defnull/bottle/blob/master/bottle.py Andriy > To: python-list@python.org > From: robert.k...@gmail.com > Subject

Re: Web Frameworks Excessive Complexity

2012-11-21 Thread Robert Kern
On 21/11/2012 12:17, Andriy Kornatskyy wrote: Agreed. I think we have pretty much the same point of view on this. All these metrics advise you... this is again depends how you look at this. If you are a new comer to a project, you usually spend some time on code review, talk to people, read d

RE: Web Frameworks Excessive Complexity

2012-11-21 Thread Andriy Kornatskyy
analysis give you an initial picture, how it fits with your own vision, etc. Convince or accept? Andriy Kornatskyy > To: python-list@python.org > From: robert.k...@gmail.com > Subject: Re: Web Frameworks Excessive Complexity > Date: Wed, 21 Nov 2

Re: Web Frameworks Excessive Complexity

2012-11-21 Thread Robert Kern
On 21/11/2012 11:02, Andriy Kornatskyy wrote: Robert, You would never get a better product by accident. The meaning of better product might differ from team to team but you can not ignore excessive complexity. Earlier or later you get back to that code and refactor it, thus existence of such

RE: Web Frameworks Excessive Complexity

2012-11-21 Thread Andriy Kornatskyy
I believe for the quality of code you produce. Thanks. Andriy > From: steve+comp.lang.pyt...@pearwood.info > Subject: Re: Web Frameworks Excessive Complexity > Date: Wed, 21 Nov 2012 11:43:10 + > To: python-list@python.org > > O

Re: Web Frameworks Excessive Complexity

2012-11-21 Thread Robert Kern
On 21/11/2012 01:43, Steven D'Aprano wrote: On Tue, 20 Nov 2012 20:07:54 +, Robert Kern wrote: The source of bugs is not excessive complexity in a method, just excessive lines of code. Taken literally, that cannot possibly the case. def method(self, a, b, c): do_this(a) do_that

RE: Web Frameworks Excessive Complexity

2012-11-21 Thread Andriy Kornatskyy
. Thanks. Andriy > Date: Wed, 21 Nov 2012 22:21:23 +1100 > Subject: Re: Web Frameworks Excessive Complexity > From: ros...@gmail.com > To: python-list@python.org > > On Wed, Nov 21, 2012 at 10:09 PM, Andriy Kornatskyy > wrote: >

Re: Web Frameworks Excessive Complexity

2012-11-21 Thread Steven D'Aprano
On Wed, 21 Nov 2012 22:21:23 +1100, Chris Angelico wrote: > Counting complexity by giving a score to every statement encourages code > like this: > > def bletch(x,y): > return x + {"foo":y*2,"bar":x*3+y,"quux":math.sin(y)}.get(mode,0) > > instead of: > > def bletch(x,y): > if mode=="foo": r

RE: Web Frameworks Excessive Complexity

2012-11-21 Thread Andriy Kornatskyy
> From: ulrich.eckha...@dominolaser.com > Subject: Re: Web Frameworks Excessive Complexity > Date: Wed, 21 Nov 2012 09:33:09 +0100 > To: python-list@python.org > > Am 21.11.2012 02:43, schrieb Steven D'Aprano: > > On Tue, 20 Nov 2012 20:07:54 +, Robert K

RE: Web Frameworks Excessive Complexity

2012-11-21 Thread Andriy Kornatskyy
. Thanks. Andriy > To: python-list@python.org > From: robert.k...@gmail.com > Subject: Re: Web Frameworks Excessive Complexity > Date: Tue, 20 Nov 2012 20:33:46 + > > On 20/11/2012 20:22, Andriy Kornatskyy wrote: > > > >

Re: Web Frameworks Excessive Complexity

2012-11-21 Thread Ulrich Eckhardt
Am 21.11.2012 02:43, schrieb Steven D'Aprano: On Tue, 20 Nov 2012 20:07:54 +, Robert Kern wrote: The source of bugs is not excessive complexity in a method, just excessive lines of code. Taken literally, that cannot possibly the case. def method(self, a, b, c): do_this(a) do_tha

Re: Web Frameworks Excessive Complexity

2012-11-20 Thread Steven D'Aprano
On Tue, 20 Nov 2012 20:07:54 +, Robert Kern wrote: > The source of bugs is not excessive complexity in a method, just > excessive lines of code. Taken literally, that cannot possibly the case. def method(self, a, b, c): do_this(a) do_that(b) do_something_else(c) def method(self

Re: Web Frameworks Excessive Complexity

2012-11-20 Thread Robert Kern
On 20/11/2012 20:22, Andriy Kornatskyy wrote: Robert, I respect your point of view and it definitely make sense to me. I personally do not have a problem to understand CC but agree, method LoC is easier to understand. Regardless the path your choose in your next refactoring (based on method

RE: Web Frameworks Excessive Complexity

2012-11-20 Thread Andriy Kornatskyy
> To: python-list@python.org > From: robert.k...@gmail.com > Subject: Re: Web Frameworks Excessive Complexity > Date: Tue, 20 Nov 2012 20:07:54 + > > On 20/11/2012 19:46, Andriy Kornatskyy wrote: > > > > Robert, > >

Re: Web Frameworks Excessive Complexity

2012-11-20 Thread Robert Kern
On 20/11/2012 19:46, Andriy Kornatskyy wrote: Robert, Thank you for the comment. I do not try relate CC with LOC. Instead pointing to excessive complexity, something that is beyond recommended threshold, a subject to refactoring in respective web frameworks. Those areas are likely to be pote

RE: Web Frameworks Excessive Complexity

2012-11-20 Thread Andriy Kornatskyy
coverage with unit tests) thus have certain degree of interest to both: end users and framework developers. Thanks. Andriy Kornatskyy > To: python-list@python.org > From: robert.k...@gmail.com > Subject: Re: Web Frameworks Excessive Complexity &g

Re: Web Frameworks Excessive Complexity

2012-11-20 Thread Robert Kern
On 20/11/2012 17:41, Andriy Kornatskyy wrote: Cyclomatic (or conditional) complexity is a metric used to indicate the complexity of a source code. Excessive complexity is something that is beyond recommended level of 10 (threshold that points to the fact the source code is too complex and refa

Re: [web] Long-running process: FCGI? SCGI? WSGI?

2012-09-05 Thread Dieter Maurer
Gilles writes: > To write a long-running web application, I'd like to some feedback > about which option to choose. > > Apparently, the choice boilds down to this: > - FastCGI > - SCGI > - WSGI > > It seems like FCGI and SCGI are language-neutral, while WSGI is > Python-specific. > > Besides that

RE: Web Scraping - Output File

2012-04-26 Thread Prasad, Ramit
> > I am having some difficulty generating the output I want from web > > scraping. Specifically, the script I wrote, while it runs without any > > errors, is not writing to the output file correctly. It runs, and > > creates the output .txt file; however, the file is blank (ideally it > > should b

Re: Web Scraping - Output File

2012-04-26 Thread SMac2347
On Apr 26, 2:19 pm, Kiuhnm wrote: > On 4/26/2012 19:54, smac2...@comcast.net wrote: > > > > > > > > > > > Hello, > > > I am having some difficulty generating the output I want from web > > scraping. Specifically, the script I wrote, while it runs without any > > errors, is not writing to the outpu

Re: Web Scraping - Output File

2012-04-26 Thread Jon Clements
comcast.net> writes: > > Hello, > > I am having some difficulty generating the output I want from web > scraping. Specifically, the script I wrote, while it runs without any > errors, is not writing to the output file correctly. It runs, and > creates the output .txt file; however, the file is

Re: Web Scraping - Output File

2012-04-26 Thread Kiuhnm
On 4/26/2012 19:54, smac2...@comcast.net wrote: > Hello, > > I am having some difficulty generating the output I want from web > scraping. Specifically, the script I wrote, while it runs without any > errors, is not writing to the output file correctly. It runs, and > creates the output .txt file;

Re: Web Scraping - Output File

2012-04-26 Thread MRAB
On 26/04/2012 18:54, smac2...@comcast.net wrote: Hello, I am having some difficulty generating the output I want from web scraping. Specifically, the script I wrote, while it runs without any errors, is not writing to the output file correctly. It runs, and creates the output .txt file; however,

Re: Web hosting when you need to install your own modules (was Re: Interact with SQL Database using Python 2.4 or lower)

2011-08-28 Thread Stephen Hansen
On 8/28/11 10:52 PM, Chris Angelico wrote: > * DNS record changes required a support ticket (this was shared web > hosting, so I didn't have control over the BIND files - that's what > they said, anyway) Ouch: I never let a webhost near my domain names. I was burned somewhere around that a long ti

Re: web browsing short cut

2011-07-07 Thread Cousin Stanley
Chris Angelico wrote: > > > http://blah/blah";> > http://another/blah";> > > > http://third/blah";> > http://final/blah";> > > > > That should divide your screen four ways > ( if I haven't botched my HTML > - ages since I've used frames ). html !botched :-

Re: web browsing short cut

2011-07-06 Thread Dustin Cheung
Okay thanks for the help guys, ill keep you guys posted. On Wed, Jul 6, 2011 at 1:19 PM, Ian wrote: > On 03/07/2011 02:21, Dustin Cheung wrote: > >> Hey guys, >> >> I am new to python. I want to make a shortcut that opens my websites and >> re-sizes them to display on different areas on the scr

Re: web browsing short cut

2011-07-06 Thread Ian
On 03/07/2011 02:21, Dustin Cheung wrote: Hey guys, I am new to python. I want to make a shortcut that opens my websites and re-sizes them to display on different areas on the screen. I looked around but i had no luck. Is that possible with python? if so can someone point to to the right dir

Re: web browsing short cut

2011-07-06 Thread Chris Angelico
On Wed, Jul 6, 2011 at 11:30 AM, Dustin Cheung wrote: > Hey, > I am looking into Tkinter. But i am not sure if it will actually work. This > maybe a crazy idea but i was wondering if i can put a web browser in the > frame. I have tried to use Tkinter to resize and place the windows to > certain ar

Re: web browsing short cut

2011-07-06 Thread Thomas Jollans
On 07/06/2011 03:30 AM, Dustin Cheung wrote: > I am looking into Tkinter. But i am not sure if it will actually work. > This maybe a crazy idea but i was wondering if i can put a web browser > in the frame. I have tried to use Tkinter to resize and place the > windows to certain areas of the screen

Re: web browsing short cut

2011-07-05 Thread Dustin Cheung
Hey, I am looking into Tkinter. But i am not sure if it will actually work. This maybe a crazy idea but i was wondering if i can put a web browser in the frame. I have tried to use Tkinter to resize and place the windows to certain areas of the screen but that's not working or the way im approachi

Re: web hosting, first hand experiences?

2011-07-04 Thread Daniel Fetchinson
>> Hi folks, I know this comes up regularly but the thing is that the >> quality of service changes also quite regularly with many of the >> hosting companies. What's currently the best option for shared hosting >> of a turbogears application? I'm thinking of dreamhost and webfaction >> does anyone

Re: web hosting, first hand experiences?

2011-07-03 Thread Alan Harris-Reid
On 19:59, Daniel Fetchinson wrote: Hi folks, I know this comes up regularly but the thing is that the quality of service changes also quite regularly with many of the hosting companies. What's currently the best option for shared hosting of a turbogears application? I'm thinking of dreamhost and

Re: web hosting, first hand experiences?

2011-07-03 Thread Roy Smith
In article , Daniel Fetchinson wrote: > Hi folks, I know this comes up regularly but the thing is that the > quality of service changes also quite regularly with many of the > hosting companies. What's currently the best option for shared hosting > of a turbogears application? I'm thinking of dr

Re: web browsing short cut

2011-07-02 Thread Chris Rebert
> On Sat, Jul 2, 2011 at 7:10 PM, Chris Rebert wrote: >> On Sat, Jul 2, 2011 at 6:21 PM, Dustin Cheung wrote: >> > Hey guys, >> > I am new to python. I want to make a shortcut that opens my websites >> > and re-sizes them to >> > point to to the right direction? Here is what I came up with so far

Re: web browsing short cut

2011-07-02 Thread Chris Rebert
On Sat, Jul 2, 2011 at 6:21 PM, Dustin Cheung wrote: > Hey guys, > I am new to python. I want to make a shortcut that opens my websites > and re-sizes them to  display on different areas on the screen. I looked > around but i had no luck. Is that possible with python? if so can someone > point to

Re: Web Applications - Separating DB Connections

2011-06-08 Thread Burhan
On Jun 8, 1:22 pm, Stuart MacKay wrote: > A simple way to do this is use fabric for deployment. It allows you to > upload a file as if it was a template and replaces any placeholder > strings with values supplied when you upload. The values can be supplied > either in a config file or interactivel

Re: Web Applications - Separating DB Connections

2011-06-08 Thread Stuart MacKay
A simple way to do this is use fabric for deployment. It allows you to upload a file as if it was a template and replaces any placeholder strings with values supplied when you upload. The values can be supplied either in a config file or interactively when the deployment takes place. For my dj

Re: web and standalone access

2010-10-16 Thread Luke Kenneth Casson Leighton
On Tue, Aug 3, 2010 at 6:15 PM, S.Selvam wrote: > I have a case where my application needs to run as a standalone application > and also allow web based access. > What could the best python framework to implement it. well, the total number of options available is about err... one, possibly two.

Re: Re: [Web-SIG] Propouse code

2010-10-09 Thread hidura
What type of codec is the best to encode binary files what are upload to an app write in Python 3? On Oct 7, 2010 1:44pm, Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/07/2010 12:17 PM, hid...@gmail.com wrote: > Hello list, i am develop an web app in Py

Re: web and standalone access

2010-08-03 Thread James Mills
On Tue, Aug 3, 2010 at 6:15 PM, S.Selvam wrote: > I have a case where my application needs to run as a standalone application > and also allow web based access. > > What could the best python framework to implement it. Both CherryPy and circuits.web sport a "single click 'n run" capability using

Re: Web page special characters encoding

2010-07-10 Thread mattia
Il Sat, 10 Jul 2010 16:24:23 +, mattia ha scritto: > Hi all, I'm using py3k and the urllib package to download web pages. Can > you suggest me a package that can translate reserved characters in html > like "è", "ò", "é" in the corresponding correct > encoding? > > Thanks, > Mattia Basically

Re: Web page special characters encoding

2010-07-10 Thread John Nagle
On 7/10/2010 2:03 PM, mattia wrote: Il Sat, 10 Jul 2010 18:09:12 +0100, MRAB ha scritto: mattia wrote: Hi all, I'm using py3k and the urllib package to download web pages. Can you suggest me a package that can translate reserved characters in html like "è", "ò", "é" in the corresponding correc

Re: Web page special characters encoding

2010-07-10 Thread Christian Heimes
> Hi all, I'm using py3k and the urllib package to download web pages. Can > you suggest me a package that can translate reserved characters in html > like "è", "ò", "é" in the corresponding correct > encoding? I think the html parser of LXML can convert the entities, too. Christian -- http:

  1   2   3   4   5   6   7   >