Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

Python/HTML integration: phileas v0.3 released

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


hippostech at gmail

Nov 19, 2009, 10:53 AM

Post #1 of 8 (245 views)
Permalink
Python/HTML integration: phileas v0.3 released

The prime goal of 'phileas' is to enable html code to be seamlessly
included in python code in a natural looking syntax, without resorting
to templatng language.

see:

http://larry.myerscough.nl/phileas_project/

I intend to submit phileas to the python.announce forum within the
next few days. Any feedback received now will be gratefully received
and may lead to improved quality of that submission.


Larry Myerscough
Eindhoven NL
hippos [at] chello

--
http://mail.python.org/mailman/listinfo/python-list


showell30 at yahoo

Nov 19, 2009, 11:18 AM

Post #2 of 8 (221 views)
Permalink
Re: Python/HTML integration: phileas v0.3 released [In reply to]

On Nov 19, 10:53 am, papa hippo <hippost...@gmail.com> wrote:
> The prime goal of 'phileas' is to enable html code to be seamlessly
> included in python code in a natural looking syntax, without resorting
> to templatng language.
>
> see:
>
> http://larry.myerscough.nl/phileas_project/
>
> I intend to submit phileas to the python.announce  forum within the
> next few days. Any feedback received now will be gratefully received
> and may lead to improved quality of that submission.
>

Hi Larry, looks like interesting stuff!

There appears to be a problem with this page:

http://larry.myerscough.nl/show_python_source.py?script_filename=./MyPage.py

IOError: [Errno 2] No such file or directory: './MyPage.py'

I do like the idea of having a more Python-oriented way to generate
HTML.
--
http://mail.python.org/mailman/listinfo/python-list


stefan_ml at behnel

Nov 20, 2009, 12:02 AM

Post #3 of 8 (218 views)
Permalink
Re: Python/HTML integration: phileas v0.3 released [In reply to]

papa hippo, 19.11.2009 19:53:
> The prime goal of 'phileas' is to enable html code to be seamlessly
> included in python code in a natural looking syntax, without resorting
> to templatng language.

I assume you know XIST, ElementTree's ElementMaker, and all those other
ways of generating XML/HTML from Python code in a natural looking way?

Stefan
--
http://mail.python.org/mailman/listinfo/python-list


fetchinson at googlemail

Nov 20, 2009, 2:52 AM

Post #4 of 8 (216 views)
Permalink
Re: Python/HTML integration: phileas v0.3 released [In reply to]

>> The prime goal of 'phileas' is to enable html code to be seamlessly
>> included in python code in a natural looking syntax, without resorting
>> to templatng language.
>>
>> see:
>>
>> http://larry.myerscough.nl/phileas_project/
>>
>> I intend to submit phileas to the python.announce forum within the
>> next few days. Any feedback received now will be gratefully received
>> and may lead to improved quality of that submission.
>>
>
> Hi Larry, looks like interesting stuff!
>
> There appears to be a problem with this page:
>
> http://larry.myerscough.nl/show_python_source.py?script_filename=./MyPage.py
>
> IOError: [Errno 2] No such file or directory: './MyPage.py'
>
> I do like the idea of having a more Python-oriented way to generate
> HTML.

Have you guys considered markup.py from http://markup.sourceforge.net/
? It's comparable to your project as far as I can see, a more detailed
comparison would probably be useful.

Cheers,
Daniel


--
Psss, psss, put it down! - http://www.cafepress.com/putitdown
--
http://mail.python.org/mailman/listinfo/python-list


hippostech at gmail

Nov 20, 2009, 4:31 AM

Post #5 of 8 (217 views)
Permalink
Re: Python/HTML integration: phileas v0.3 released [In reply to]

On 19 nov, 20:18, Steve Howell <showel...@yahoo.com> wrote:
> On Nov 19, 10:53 am, papa hippo <hippost...@gmail.com> wrote:
>
> > The prime goal of 'phileas' is to enable html code to be seamlessly
> > included in python code in a natural looking syntax, without resorting
> > to templatng language.
>
> > see:
>
> >http://larry.myerscough.nl/phileas_project/
>
> > I intend to submit phileas to the python.announce  forum within the
> > next few days. Any feedback received now will be gratefully received
> > and may lead to improved quality of that submission.
>
> Hi Larry, looks like interesting stuff!
>
> There appears to be a problem with this page:
>
> http://larry.myerscough.nl/show_python_source.py?script_filename=./My...
>
> IOError: [Errno 2] No such file or directory: './MyPage.py'
>
Oh dear! my blunder; While syncing (with meld) from my test
environment to the live environment, I missed a file. It seems to be
fixed now.

> I do like the idea of having a more Python-oriented way to generate
> HTML.

That's good to hear.


Larry
--
http://mail.python.org/mailman/listinfo/python-list


hippostech at gmail

Nov 20, 2009, 5:18 AM

Post #6 of 8 (216 views)
Permalink
Re: Python/HTML integration: phileas v0.3 released [In reply to]

On 20 nov, 09:02, Stefan Behnel <stefan...@behnel.de> wrote:
> papa hippo, 19.11.2009 19:53:
>
> > The prime goal of 'phileas' is to enable html code to be seamlessly
> > included in python code in a natural looking syntax, without resorting
> > to templatng language.
>
> I assume you know XIST, ElementTree's ElementMaker, and all those other
> ways of generating XML/HTML from Python code in a natural looking way?
>
> Stefan

Hi Stefan,

Thanks for your feedback.

Yes, I am aware that phileas might - on the basis of the short
description on this post - come across like a 're-invented wheel'.
There is, however, one big difference between phileas and all other
other similar packages (XIST, ELementTree, HTMLgen, HyperText,
pyhtmloo etc.) that I inspected:

Phileas uses distinct objects to generate each start and end tag,
whereas all the others use a single function call (in some cases
itself generated by a function call) to generate a complete well-
formed element including start-tag and (where required) end-tag. In
theory this is less neat and indeed it means one can write 'bad' HTML
(e.g. missing end of paragraphs) with phileas just as easily as when
writing pure html. In practice, however, I find it at a lot easier to
use.

While using pyhtmloo (my previous favourite HTML generator), I had
found myself using awkward complicated artificial constructions in
order to generate all but the simplest HTML - and spent much time
playing 'hunt the missing bracket'. With phileas, these complexities
seem to just fall away.

Put another way, Phileas generates HTML4.0 - warts and all; it is not
a parser or generator of XML.

I'm considering building in checks/warnings for unclosed elements
etc., probably in the next-but-one pre-release.

Larry
--
http://mail.python.org/mailman/listinfo/python-list


james at agentultra

Nov 23, 2009, 7:37 AM

Post #7 of 8 (188 views)
Permalink
Re: Python/HTML integration: phileas v0.3 released [In reply to]

papa hippo <hippostech [at] gmail> writes:

> On 20 nov, 09:02, Stefan Behnel <stefan...@behnel.de> wrote:
>> papa hippo, 19.11.2009 19:53:
>>
>> > The prime goal of 'phileas' is to enable html code to be seamlessly
>> > included in python code in a natural looking syntax, without resorting
>> > to templatng language.
>>
>> I assume you know XIST, ElementTree's ElementMaker, and all those other
>> ways of generating XML/HTML from Python code in a natural looking way?
>>
>> Stefan
>
> Hi Stefan,
>
> Thanks for your feedback.
>
> Yes, I am aware that phileas might - on the basis of the short
> description on this post - come across like a 're-invented wheel'.
> There is, however, one big difference between phileas and all other
> other similar packages (XIST, ELementTree, HTMLgen, HyperText,
> pyhtmloo etc.) that I inspected:
>
> Phileas uses distinct objects to generate each start and end tag,
> whereas all the others use a single function call (in some cases
> itself generated by a function call) to generate a complete well-
> formed element including start-tag and (where required) end-tag. In
> theory this is less neat and indeed it means one can write 'bad' HTML
> (e.g. missing end of paragraphs) with phileas just as easily as when
> writing pure html. In practice, however, I find it at a lot easier to
> use.
>
> While using pyhtmloo (my previous favourite HTML generator), I had
> found myself using awkward complicated artificial constructions in
> order to generate all but the simplest HTML - and spent much time
> playing 'hunt the missing bracket'. With phileas, these complexities
> seem to just fall away.

Any decent editor should be able to balance parenthesis for you.

>
> Put another way, Phileas generates HTML4.0 - warts and all; it is not
> a parser or generator of XML.
>
> I'm considering building in checks/warnings for unclosed elements
> etc., probably in the next-but-one pre-release.

That your library will require a validation to be executed at run-time
seems like it will be tedious to use.

A decent text editor can even balance your HTML tags for you.

Though you have a neat "DSL" like language for representing HTML
elements. I'd suggest taking it one step further and creating a
machine that can read in a Python data-structure and with as few hints
as possible wrap it in the appropriate tags.

>
> Larry
--
http://mail.python.org/mailman/listinfo/python-list


aahz at pythoncraft

Nov 28, 2009, 7:01 PM

Post #8 of 8 (159 views)
Permalink
Re: Python/HTML integration: phileas v0.3 released [In reply to]

In article <6ded5cc9-5491-43d3-849c-17fcfaaec85f [at] k17g2000yqh>,
papa hippo <hippostech [at] gmail> wrote:
>
>The prime goal of 'phileas' is to enable html code to be seamlessly
>included in python code in a natural looking syntax, without resorting
>to templatng language.
>
>see:
>
>http://larry.myerscough.nl/phileas_project/

Why would I want to use this instead of Quixote?
--
Aahz (aahz [at] pythoncraft) <*> http://www.pythoncraft.com/

The best way to get information on Usenet is not to ask a question, but
to post the wrong information.
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.