Archive

Posts Tagged ‘python’

Dycapo Development Resumes

March 1st, 2010 bodom_lx No comments

Dycapo development resumes from today. I’m going to write a tiny plan to point out the status of the project and what we are going to do next. Meanwhile, a new member joined SoNet and the project, to develop an Android client for Dycapo. Stay tuned for news.

Related posts

First working method, test client written

December 22nd, 2009 bodom_lx No comments

Road to 0.0.1 for Dycapo. Today I succesfully wrote a first xml-rpc method accepting OpenTrip Core objects, that inserts a trip chosen by the driver.

def add_trip(trip, mode, source, destination)

Actually, the driver is automatically retrieved by the system, since we are waiting rpc4django 0.1.6 to come out and access User from requests. Moreover, only a source and a destination Locations can be specified.
But it works. It works fine.
The method is located at: server/trip.py
I also wrote a tiny python client to test the remote call, located at: tests.

In a couple of days I should try to publish Dycapo 0.0.1. That’s what I hope :)

Related posts

On the automation of API writing and XML-RPC serving for Python Django

November 10th, 2009 bodom_lx No comments

While searching for solutions on adopting Django for the server side of our Dynamic Car Pooling system, I found two very interesting projects:

  • WAPI – a framework which abstracts the details involved in publishing an API and translates class methods to API methods, serializing the objects returned when possible. WAPI handles authentication, too, and other advanced functions. It’s an amazing, fully Django compatible system that currently works over ReST (JSON, XML, YAML) but not with XML-RPC. Therefore, I contacted the author to have some information about the status of the project. It would be very interesting in our system, to provide API and XML-RPC services just by using his layer
  • RPC4Django – provides XML-RPC and JSON-RPC support to an existing Django project. It promises a XML-RPC interface by just adding the decorator @rpcmethod to an existing python function. It also fully integrates with Django authentication framework

I’m going to experiment with these two tools. Obviously the first one is the most interesting because of its ability to “export” services in more formats. But the most important protocol for us is missing. Let’s hope it will be added soon!

Related posts

Update: first UML diagrams, some implementation thoughts

October 29th, 2009 bodom_lx No comments

My third meeting at FBK is about to end. Today we discussed about some use-case, sequence and class diagrams I wrote during the week. Obviously there were lots of changes after the discussion and I will post them as soon as I’ve updated them. For the next time I will take a look at some implementation issues. The client side could be written using Android while for the server side we are seriously looking at Python and Django. It would be very interesting! For the communication, we are reasoning about XML-RPC, SOAP or a personalized Restful API. OpenTrip protocol might not be included in our implementation, as we don’t have the time to parse non-standard XML and adapt the system to use it. But this is not a final decision.
I will also write some simple mockups to test all the possible combinations.

Related posts

BD-incollo 0.9 is out!

July 26th, 2009 bodom_lx No comments

It took me about one year to find some time to enhance my project BD-incollo. I worked hard for 5 days and to add new features and fight the (huge) amount of spam that was wasting my database space. Now I’m very proud to announce bd-incollo 0.9, a free, light, speedy, anonymous Pastebin clone written in Python Django. This version introduces a lot of new features, including the possibility to make diffs between pastes, and fights spam using Akismet. Read more about the features on the project page and on the new News section on the website that makes use of BD-incollo, incollo.com .

BD-incollo 0.9 is free software as always, under the Gnu Affero General Public License 3.

Currently, you can:

  • Copy, Paste and store a text / source code snippet to the system
  • NEW! Give other people the possibility to discover your Paste (make a Paste either public or private)
  • Decide to colorize the syntax of the Paste
  • Share it using its URL
  • NEW! Enhance Pastes! Create a Paste starting from an old one
  • NEW! View differences! Makes use of the powerful diff-match-patch by Neil Fraser to see differences between two Pastes
  • NEW! Antispam protection using Akismet and akismet.py by Michael Foord
  • Download it as plain text
  • View it as plain text
  • Search something interesting through other pastes!
  • Report abuses to site admins

It also uses a very smart hash system that automatically re-computes a hash key in case of collision.

Here is an example of Paste: http://incollo.com/f341e6a4b
Here is an example of enhancement of the Paste: http://incollo.com/ba22929ac
Here is a full-screen diff of the Pastes: http://incollo.com/compare/f341e6a4b/ba22929ac

Play with them! Use incollo.com, spread it!

Road to 1.0

1.0 development will start after my next examination session (on September) and will surely include:

  • Some asynchronous improvements
  • The possibility to teach Akismet about Spam and Ham in Pastes (when admin user is logged in)
  • More cleaner code
  • The possibility to associate a user to its Pastes via a Cookie (always anonymous) and let him delete them
  • Comments to snippets?
  • What else? Contact me if you’ve got ideas!

Related posts

Opensource contribution always pays..even if a couple of years after

December 3rd, 2008 bodom_lx No comments

Someday two years ago I submitted a translation for an opensource project, gmail-notifier. It is a very nice notifier for Gmail accounts written in Python. I never received a response from the authors , neither I saw my translation appear in the project source, which seemed to be dead.
It was my first attempt to actively help a free software project, and I also felt demoralized because of the absent feedback.
Today I surprisingly noticed that the project is active again, and the authors cited my work and also included my translation in the source code. They “forced” me to forgive them because they released this version just for including the translations! They even published the list of the translators on their home page, telling:

In the last two years many people have contributed with the project by sending to me translations that I have never posted. The development of Gmail Notifier 1.7 is now starting, so I’m releasing this version just to include those translations and to say thank you to all the people that have supported the project.
The new translations are:
- Svenska
- Italiano (Daniel Graziotin)
- Nederlands (Dennis van der Staal)
- Deutsch (Marc Philipp, Eric Franco)
-Portuguese (Brazil) (Yguaratã C. Cavalcanti)
- Français (Thibault Martin-Lagardette)
- Czech (Václav Cermák)
- Russian (Aleksandr Chekanov)
- Polish
- Latvian (Kaspars Krampis)
- Esperanto (Abel Johannes)
- Arabic (Youssef Chahibi)
- Japanese (Satoshi Tanabe)

I took a screenshot as memory

They also included some thanks in the sourcecode.

A contribute to opensource projects is really rewarding, even if your work consists in modifying a handful of XML lines.

If you’ve got the time to do it, then make it!

I wish good luck to gmail-notifier team for the development of the 1.7 release, which will be written from scratch. I wish I had the time to contribute to the sourcecode, too, now that I’m able to handle some Python, but I believe I will help them to translate the program in Italian again :-)

Related posts