[Tutor] python & google gear
Salve, qualcuno sa dirmi se esiste una API in python per google gear? code.google.com/apis/gears Daniele -- http://picio.gotdns.com ...Il mio blog su NSLU2 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] MySQL -->Python-->XML for JSviz
Hello all, I need some advice to choose an xml generator for jsviz a tool in javascript to create some wonderful graphs (SnowFlake or Force directed). Starting from a SQL table (mysql) I need to create a XML file with a structure like this: Where nodes attributes are the MySQL table fields (the PK will be the attribute). I know there are a lot of good tools to do this in pyhton (some maybe is already shipped with pyton itself), but since I need a lot of flexibility for the future I'd like to use an Object relational mapper like SQLAlchemy or SQLObject todo the job. When I say flexibility, I have in mind a solution to have multiple formats coming outside of the ORM: json, csv, plain text etc... Am I wrong? Can someone advice something? -- http://picio.gotdns.com ...Il mio blog su NSLU2 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] python and javascript
Hello, I'd like to have some advice about a good mailing list about javascript. I'm asking here because I'd like to have both python and javascript people on the same mailing list. My idea is that some of you participates also in other mailing lists and maybe some of those are about javascript: knowledge mix !?!?! I know It's a strange question, please don't become mad at me. I'm currentlu involved in a project where I will use javascript and python and I don't know any mailing list about the former... Thanks a lot. Daniele -- http://picio.gotdns.com/wordpress/ ...my blog on NSLU2 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] python to serve xml or json or....
Hello, I' ve a bunch of things to ask about using Python as a server side language in a web application: I have a mysql db and I've alredy developed a python app that query the db and shot-out an xml file (made by the nice elementtree module like some people here on the list suggested). This file is then chewed-up by a javascript file who's responsible to generate a graph (see http://www.JSViz.org). Now I need to put it on line so that a user from web browser can query the db and see the graph. Next step could be to use ajax but for now something like a "PHP style" in python would be enough. I saw some PSP (python server pages) solution around but since I'm more or less a newbie I can't understand if I have to go to webware or spyce or a full fledged django. I like to start simple and make things more perfect but If there is a full featured solution to my case I will apply It. Can You Help? Any advice would be appreciated! -- http://picio.gotdns.com ...Il mio blog su NSLU2 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] python and Java developers, same team
Hello, a friend of mine want me to join a team on a project. They use Java (the IDE is java studio creator), and the deployment server is Tomcat. Anyway I have all my apps in python and I'd like to continue my development using it instead of learning java. Is it possible to translate my apps from python to Java in a way they can integrate them in Tomcat? Is it jython? I have just some simple apps and scripts. (Or Is it better that I start to learn Java leaving a part my beloved python? I hope you answer NO ;) ) -- http://picio.gotdns.com ...Il mio blog su NSLU2 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] build a really simple "json" api from a db
Hello, I'd like to know the necessary steps to build a json api for two table on my db. The design will be: an ajax app asking for data to my server, that fetches those data from a db then build the answer in json. Ajax n the client will then use json data to do some staff. I'd like to build this API in python. What pieces of software I need? (simplejson?) I've seen this snippet on the djangosnippet site. http://www.djangosnippets.org/snippets/154/ Is It the right way. Daniele -- http://picio.gotdns.com ...Il mio blog su NSLU2 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] build a really simple "json" api from a db
The beginning idea was to build a json API myself. Since I need only to generate json from a db, maybe Django is too much. I'm a Django beginner. I don't know Turbogears. I've not found anything like: "how to build a json api". Maybe MySqldb+simplejson is the enough? Or Is It more simple to learn how to use Django to create a json api? 2007/7/28, Alan Gauld <[EMAIL PROTECTED]>: > > "Picio" <[EMAIL PROTECTED]> wrote > > > Hello, I'd like to know the necessary steps to build a json api for > > two table on my db. > > Since you seem to be using Django are you sure that isn't built in? > > I use Turbo Gears and JSON is a standard feature turned on by > an option in a method. Django is quite similar to TG in most respects > so I'll be surprised if it can't do JSON directly. > > > I've seen this snippet on the djangosnippet site. > > http://www.djangosnippets.org/snippets/154/ > > Is It the right way. > > If its on the Django web site and you are using Django then > probably! :-) > > It certainly looks like a recommendation to me. > > -- > Alan Gauld > Author of the Learn to Program web site > http://www.freenetpages.co.uk/hp/alan.gauld > > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > -- http://picio.gotdns.com ...Il mio blog su NSLU2 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] build a really simple "json" api from a db
Hi Kent, ok I've decided to go through Django. Now the clue is to find some simple guide to output json from my model and maybe I can benefit also for the url dispatcher to map in a clean way the request coming from my ajax app. This is what I'd like to do: ajax app-> URL -> urls.py -> view.py -> ORM -> db then view -> json -> ajax app The second path is something I really have to figure out! I hope It's right. Daniele 2007/7/30, Kent Johnson <[EMAIL PROTECTED]>: > Picio wrote: > > The beginning idea was to build a json API myself. Since I need only > > to generate json from a db, maybe Django is too much. I'm a Django > > beginner. I don't know Turbogears. > > I've not found anything like: "how to build a json api". > > Maybe MySqldb+simplejson is the enough? > > I guess it depends on how you expect the site to grow. If your needs are > modest and likely to remain so, maybe a Python CGI that reads data from > MySQL and publishes it with simplejson is fine. You could do this with > Django but for something really simple it's probably not worth the trouble. > > But if the site is going to grow, Django adds a lot, including an object > model on top of the database, url dispatching and templated views. If > that will be useful down the road then it might be worth starting with > Django. > > Kent > > > Or > > Is It more simple to learn how to use Django to create a json api? > > > > 2007/7/28, Alan Gauld <[EMAIL PROTECTED]>: > >> "Picio" <[EMAIL PROTECTED]> wrote > >> > >>> Hello, I'd like to know the necessary steps to build a json api for > >>> two table on my db. > >> Since you seem to be using Django are you sure that isn't built in? > >> > >> I use Turbo Gears and JSON is a standard feature turned on by > >> an option in a method. Django is quite similar to TG in most respects > >> so I'll be surprised if it can't do JSON directly. > >> > >>> I've seen this snippet on the djangosnippet site. > >>> http://www.djangosnippets.org/snippets/154/ > >>> Is It the right way. > >> If its on the Django web site and you are using Django then > >> probably! :-) > >> > >> It certainly looks like a recommendation to me. > >> > >> -- > >> Alan Gauld > >> Author of the Learn to Program web site > >> http://www.freenetpages.co.uk/hp/alan.gauld > >> > >> > >> ___ > >> Tutor maillist - Tutor@python.org > >> http://mail.python.org/mailman/listinfo/tutor > >> > > > > > > -- http://picio.gotdns.com ...Il mio blog su NSLU2 ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] python RMI
Salve, dovrei usare python per due progettini universitari, su RMI e l'altro sui Web Services. Ho notato che esiste PyRO, preferirei perĂ² sentire voi sull'argomento: cosa uso per l'RMI (esiste qualche libreria,modulo) cosa uso per i Web Services Accetto anche suggerimenti tipo "dai un'occhiata qui.." ovvero verso fonti di documentazione. Grazie anticipatamente. Daniele ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] python RMI
Hello, I was out for the week-end, sorry If I'm so late answering, and sorry because I wrote my message In italian. Since I have a subscription to another python mailing-list in italian, I've confused the tutor list with that. Thanks, I'm impressed, you were so kind triyng to help me!! I read the all articles at http://www.daimi.au.dk/~mailund/scripting2005/lecture-notes/rmi.html thanks, now I got a very good Idea about RMI and also, web services. Ps.: Ivan grazie di cuore dell'intervento! Daniele 2006/10/7, Ivan Furone <[EMAIL PROTECTED]>: > > > Il 07/10/06, Alan Gauld <[EMAIL PROTECTED]> ha scritto: > > > > PS. Any Italian speakers on the list who can cover this? > > > I think I can as far it's possible,Alan! :-) > > > > "Picio" <[EMAIL PROTECTED]> wrote in message > > > news:[EMAIL PROTECTED] > > Salve, > > dovrei usare python per due progettini universitari, su RMI e l'altro > > sui Web Services. > > Ho notato che esiste PyRO, preferirei perĂ² sentire voi sull'argomento: > > > > cosa uso per l'RMI (esiste qualche libreria,modulo) > > cosa uso per i Web Services > > > Ciao, > Per quanto riguarda l'RMI vale la pena di dare un'occhiata a > quest'esempio,anche se in inglese in quanto il codice e'di per se abbastanza > comprensibile: > > http://www.daimi.au.dk/~mailund/scripting2005/lecture-notes/rmi.html > > Per quanto riguarda i web services,e'impossibile darti una risposta precisa > senza poter conoscere i servizi che devi (o dovresti) utilizzare; prova a > girare nella standard library,magari a guardare XML-RPC come altri ti hanno > gia'detto;comunque,se cerchi qualcosa di piu'dedicato usa Twisted che > e'sicuramente l'eccellenza nel campo della programmazione di rete in Python > per completezza e maturita'del codice. > Mentre per eventuali ritocchi e implementazione di particolari > funzionalita'di basso livello esiste dpkt.. > > Fai la tua scelta,spero di essere stato esaustivo. > > __ > > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > > ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] a Apache-python-postgres kit
Hello, last week I configured three home made servers to host a little python web app (django based). Searching on the web about a kit/script to have Apache+PostgreSQL+Python, I found only Apache2triad. That is a littlel "overweight" for me because I got also: PHP Perl Mysql Slimftpd Xmail OpenSSL and some other staff I really don't need. Do you know a kit like WAMP or LAMP, that install one of the following configurations? 1-Apache+Posgtres+Python 2-Lighttpd+Posgtgres+Python Do you know some docs to help me create myself the kit? (Something like "How to make your own 'wamp' server") Thanks for any answer Daniele ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] python applets
Hello, I'm evaluating a way to build applets in python. Actually google told me that I can use Grail Jython Can you add/suggest other ways? The more easy to learn wins !!! thanks a lot for any answer. Picio ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] rabbit core microcontrollers - Django
Hello, I would wonder if anyone knows something about programming Rabbit Core Modules, that normally were programmed diretctly with Dynamic C, with Python. I mean either: - something like using python to create code in dynamic suitable for the rabbit core - writing machine code for the rabbit core using a python API. Sorry if I'm not using the rights technicals words. Picio ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] SAX, DOM, XSLT api
Hello, what are the equivalent Pyhton tools you suggest to handle: SAX DOM and which api for XSLT ? I know that this is a really newbie question...But I'm a true python newbie ;) ! Daniele P.s: I know I can also google-it a little bit to find those answers but your advices are better. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] python CRM ERP
Hello, Can you point me to some CRM and ERP software written in Python, that in your "guru" opinion is a good product? Maybe also Open Source? Thanks Picio ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor