Re: Finite State Machine GUI editor in python?

2007-12-16 Thread kib
Hendrik van Rooyen a écrit :
> I have spent some time googling and on wiki and came up with
> pyFSA in python. It may end up being useful, but it is not directly
> what I am looking for, as there is no GUI that I can see.
> 
> I know about SMC, but it is not Python, and I can't find the gui.
> 
> This looks good, but it seems to be in a Latin based language
> and I am linguistically challenged:
> 
> http://www.ucse.edu.ar/fma/sepa/edt.htm
> 
> I am looking for a similar front end, going from pretty pictures of 
> state diagrams to some sort of state machine descriptor language 
> or specification file, and I am not very fussy about the format of 
> the output at this stage.
> 
> Does anyone know of such an animal that is FOSS? - if written in 
> Python it will be a bonus!  
> 
> It will also help if its in a language I can understand.  : - (  
> 

Hi Hendrik,

I've bookmarked these ones :

http://www.univ-paris12.fr/lacl/pommereau/tlf/index.html [in French]
http://www.ncc.up.pt/~nam/ [look at the FAdo project]
http://www.cs.usfca.edu/~jbovet/vas.html [written in Java]

I hope it helps you,

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


Re: checking a string against multiple patterns

2007-12-18 Thread kib
tomasz a écrit :

> Is there an alternative to it? Am I missing something? Python doesn't
> have special variables $1, $2 (right?) so you must assign the result
> of a match to a variable, to be able to access the groups.
> 
Hi Thomasz,

See ie :

http://www.regular-expressions.info/python.html [Search and Replace section]

And you'll see that Python supports numbered groups and even named 
groups in regular expressions.

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


Re: Processing in Python

2008-05-20 Thread kib
A PyQt4 version here : http://dev.nodebox.net/wiki/Qt , but it's really 
buggy (no one seems to have fixed it till 5 months).


There's even a PyGtk clone of NodeBox here : http://shoebox.sollec.org/

I'll be happy to work on one of these projects, see you :

Kib.

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


Re: need some help in serving static files inside a wsgi apps

2008-05-24 Thread kib

Diez B. Roggisch a écrit :

Tool69 schrieb:

Hi,

Until now, I was running my own static site with Python, but I'm in
need of dynamism.

After reading some cgi tutorials, I saw Joe Gregorio's old article
"Why so many Python web frameworks?" about wsgi apps [http://
bitworking.org/news/Why_so_many_Python_web_frameworks] and have a
question about it. The code he gave works like a charm (I had to make
a little change because SQLAlchemy has changed since), but how the
hell can I serve static files (css, js, images, etc.) within an wsgi
app, ie inside a '/static' directory ?!


There is a wsgi-app out there that is called "static". Use that.

And it's the first hit on google "wsgi static"... :)

http://lukearno.com/projects/static/

Diez


Hi Diez,

and thanks for yout help. In fact I already found it but never managed 
to get it work because the static doc says :


from wsgiref.simple_server import make_server
import static
make_server('localhost', , static.Cling('/var/www')).serve_forever()

and inside J.Gregorio's tutorial it is:

from wsgiref.simple_server import WSGIServer, WSGIRequestHandler
httpd = WSGIServer(('localhost', 8080), WSGIRequestHandler)
httpd.set_app(urls.urls)

It does not use 'make_server()' so how can I adapt it ?

I finally managed to work with static files with a little hack, but it's 
ugly because I'm reading each static file per request.


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


Re: Psyco alternative

2008-04-24 Thread kib

Christian Tismer a écrit :

[EMAIL PROTECTED] wrote:

Diez B. Roggisch:

the author says that the approach is flawed, so at *some*
point it will be discontinued.


Can't Psyco be improved, so it can compile things like:

nums = (i for i in xrange(20) if i % 2)
print sum(nums)


Although my main goal is to support PyPy as much as possible,
I am currently taking a pause in favor of filling the gap
for psyco, supporting generators. The details are not yet
settled, maybe we choose to change the project name,
to avoid the author getting bugged with questions about
this extra stuff.

- chris



Maybe try Psychotic
http://code.google.com/p/psychotic/

I really like the screencast !

...sorry for the bad joke :)
--
http://mail.python.org/mailman/listinfo/python-list