Re: .py to .html generation

2015-09-05 Thread injectnique
On Thursday, September 3, 2015 at 1:04:45 AM UTC-4, uday3p...@gmail.com wrote: > Hi friends! > > Can some one help me with the best module and/or its tutorial, to generate > html reports for python scripts? > > I tried pyreport and sphc; but, i am getting errors. https://github.com/dddomodossol

Re: .py to .html generation

2015-09-03 Thread Laura Creighton
In a message of Thu, 03 Sep 2015 09:22:27 +0200, Laura Creighton writes: >There is also a report generator implemented as an extension to sphinx. >https://github.com/AndreasHeger/CGATReport >Interfaces nicely with ipython. Makes it easy to stick matplotlib >graphs into your report. I forgot about

Re: .py to .html generation

2015-09-03 Thread Laura Creighton
In a message of Wed, 02 Sep 2015 22:04:03 -0700, uday3prak...@gmail.com writes: >Hi friends! > >Can some one help me with the best module and/or its tutorial, to generate >html reports for python scripts? > >I tried pyreport and sphc; but, i am getting errors. >-- >https://mail.python.org/mailma

.py to .html generation

2015-09-02 Thread uday3prakash
Hi friends! Can some one help me with the best module and/or its tutorial, to generate html reports for python scripts? I tried pyreport and sphc; but, i am getting errors. -- https://mail.python.org/mailman/listinfo/python-list

Re: HTML Generation

2009-04-16 Thread Nick Craig-Wood
J Kenneth King wrote: > Stefan Behnel writes: > > See here for another example that uses lxml.html: > > > > http://codespeak.net/lxml/lxmlhtml.html#creating-html-with-the-e-factory > > > > Stefan > > Ah, looks good. Have never used nor finished the example I had given -- > only meant as inspi

Re: HTML Generation

2009-04-03 Thread J Kenneth King
`unordered_list` would walk the elements in its first argument, extract the values from the keys specified by its second argument, and format the results using the string from its third argument and simply return a ul() object with nested li() objects with all the data inserted into them. Of course, this is very off-the-cuff; I only started picking up interest in this old subject this morning. ;) I could be talking way out of my ass here. No idea if any of it's even practical. Anyway -- OP: there are many ways to approach HTML generation and it's a good pursuit. If you come up with something new and unique, please share! Down with templates! :) -- http://mail.python.org/mailman/listinfo/python-list

Re: HTML Generation

2009-04-03 Thread Stefan Behnel
J Kenneth King wrote: > from tags import html, head, meta, title, body, div, p, a > > mypage = html( > head( > meta(attrs={'http-equiv': "Content-Type", > 'content': "text/html;"}), > title("My Page")), > body

Re: HTML Generation

2009-04-03 Thread J Kenneth King
Tino Wildenhain writes: > Hi Mike, > > > Mike wrote: >> Hello all, >> >> I'm writing a web app and wanted to do some html generation (I >> really do not like to maintain or write html). >> >> I'm thinking of writing a dsl based on

Re: HTML Generation

2009-04-03 Thread Daniel Fetchinson
> Hello all, > > I'm writing a web app and wanted to do some html generation (I really do not > like to maintain or write html). > > I'm thinking of writing a dsl based on the following: > > def html(): > return > > def a(): > return > >

Re: HTML Generation

2009-04-03 Thread Tino Wildenhain
Hi Mike, Mike wrote: Hello all, I'm writing a web app and wanted to do some html generation (I really do not like to maintain or write html). I'm thinking of writing a dsl based on the following: def html(): return def a(): return def body(): return That would

HTML Generation

2009-04-03 Thread Mike
Hello all, I'm writing a web app and wanted to do some html generation (I really do not like to maintain or write html). I'm thinking of writing a dsl based on the following: def html(): return def a(): return def body(): return (html, ...(head, (style, "id",

Re: automatic html generation for documentation?

2006-02-26 Thread John M. Gabriele
Lonnie Princehouse wrote: > I plan on writing some documentation that will consist of blocks of > commentary with interspersed snippets of syntax-colored Python code and > the occaisional image. > > Does anyone know of a package that will take a high level description > of what I just described an

automatic html generation for documentation?

2006-02-24 Thread Lonnie Princehouse
I plan on writing some documentation that will consist of blocks of commentary with interspersed snippets of syntax-colored Python code and the occaisional image. Does anyone know of a package that will take a high level description of what I just described and auto-generate clean-looking web page

Re: HTML generation vs PSP vs Templating Engines

2005-11-20 Thread riplin
>> Using templates means that the code can work with different templates, >> and this should be seamless, it also means that different code can be >> used with the templates, for example if different languages are used. > This seems to contradict your statement that you dislike 'embedding > code o

Re: HTML generation vs PSP vs Templating Engines

2005-11-19 Thread has
[EMAIL PROTECTED] wrote: > I dislike embedding code or html in each other, apart from the > 'impurity' of mixing code and user interface it makes them inseparable. > > Using templates means that the code can work with different templates, > and this should be seamless, it also means that different

Re: HTML generation vs PSP vs Templating Engines

2005-11-19 Thread Luis M. Gonzalez
I meant that it is not strictly necessary to use templates in Karrigell, although you can use Cheetah if you want. I'm not used to templates mainly because I'm familiar with the way PHP works and, for simple dynamic sites like those I work on, this is the simpliest approach. Another reason is that

Re: HTML generation vs PSP vs Templating Engines

2005-11-19 Thread riplin
> No templates, no python-like or special languages, only pure and simple > python. > You can embedd python into html or, if it better suits your programming > style, you can embed html into python. Why don't you give it a try? I dislike embedding code or html in each other, apart from the 'impu

Re: HTML generation vs PSP vs Templating Engines

2005-11-18 Thread has
[EMAIL PROTECTED] wrote: > Could someone that has used all the different ways mentioned above for > dynamic HTML > content, suggest what the pros and cons of the different methods are? Not used them all - as you say, there's a plethora of options - but to give you a general idea of the territory.

Re: HTML generation vs PSP vs Templating Engines

2005-11-17 Thread Luis M. Gonzalez
With Karrigell (http://karrigell.sf.net/), all you need to know is Python and HTML. No templates, no python-like or special languages, only pure and simple python. You can embedd python into html or, if it better suits your programming tyle, you can embed html into python. Why don't you give it a

RE: HTML generation vs PSP vs Templating Engines

2005-11-16 Thread Sells, Fred
cate_user() if __name__=='__main__': #print ezcgi.PLAIN_CONTENT_TYPE #print COMMAND execute() ===snip= = -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 16, 2005 11:32 AM To: pyth

Re: HTML generation vs PSP vs Templating Engines

2005-11-16 Thread thakadu
I just do the following: I store the form data as a pickeled dictionary. Then I create my HTML form with something like this: HTMLout=""".. .. ''' where the field1, field2 etc era the fields on my form. Then finally: print HTMLout % dict where dict has all the values that I previous

Re: HTML generation vs PSP vs Templating Engines

2005-11-16 Thread Damjan
> After some thought I decided to leave the various frameworks > aside for the time being and use mod_python.publisher along with some > means of generating HTML on the fly. I kind of like KID templates the most, you can easyly work with them in any HTML authoring software, they are easy to use (p

Re: HTML generation vs PSP vs Templating Engines

2005-11-16 Thread bruno at modulix
[EMAIL PROTECTED] wrote: > Hello everybody, > > I am in the process of writing my very first web application in Python, > and I need a way to > generate dynamic HTML pages with data from a database. (snip) > After some thought I decided to leave the various frameworks > aside for the > time bein

HTML generation vs PSP vs Templating Engines

2005-11-16 Thread pkassianidis
Hello everybody, I am in the process of writing my very first web application in Python, and I need a way to generate dynamic HTML pages with data from a database. I have to say I am overwhelmed by the plethora of different frameworks, templating engines, HTML generation tools etc that exist