The PyCon Argentina experience

PyCon 2009 Argentina

Check tweets!
Check photos!

Last weekend took place in Buenos Aires the first PyCon Argentina. It was a really great event, well organized, where many interesting and nice people shared their passion to Python. I enjoyed it a lot.

I attended a lot of talks. Here a brief comment on each of them:

Andrés introduced people to several tools to audit software, particularly web applications. He showed some scapy examples (a really interesting tool to manage the packets going through the wire), an introduction to Peach (a Python fuzzer) and also presented his Python developed w3af tool for web attacking and audit.
Download slides

Alecu showed us how to optimize performance while making computations with a large amount of data when processing images and audio. It was an amusing and well exposed talk.
Download slides

These Core people is working on a Python module capable of suspend and resume a Python program execution, dreampy. They talked about the development of the idea and the problems they are facing. Very interesting.
Download slides

I participated in this talk that was mainly presented by nessita. People seemed interested in the techniques explained during the presentation and also in the Pycasa project. we got several interesting questions and suggestions to go on with the development.
Download slides

This was a really clarify talk about how to work with strings, encodings and what is Unicode, and how to manage all this.
Download slides

Speakers presented their chosen GUI toolkits, and showed what they found are the advantages and disadvantages of each approach. Very informative to get an idea about some of the existent alternatives.
Download slides PyQtDownload slides wxPythonDownload slides PyGtk

Mariano explained how his Emesene project has been evolving and gave some hints about how to lead a software “libre” development.
Download slides

Facundo presented the changes, updates and improvements coming with Python 3000. Interesting, we should be already thinking our projects with a Python 3 structure in mind!
Download slides

This was my talk! I think it was an interesting topic and although I should have practiced my presentation abilities a little more, I’m glad with the result. I presented some details about how Python compiles the code, described the .pyc file structure and then manipulated the bytecode through Python code objects, using the dis module and other interesting tools (byteplay, bytecodeAssembler, UnPyc).
Download slides

Besides, there were two great and international speakers too:

Jacob stated the challenge frameworks web and Python will be facing soon and what he thinks about it. An excellent talk.

I found this talk very interesting. Collin briefly presented the Unladen Swallow project, a Google initiative to speed up Python. He talked about the ideas and approaches they use to get Python run faster. It was great.

All these presentations were nice. However, I also would have liked to listen a couple of talks I couldn’t, and that I heard were very good too:

I invite you to take a look at the slides, available at the PyCon site!

 
Posted at 6pm on 09/10/09 | 57 comments | Filed Under: Events, Python read on

String to hex bytes

Today, having some talk to +NCR and Yibam, they were needing that given a string, get its hex byte representation. Here I leave a simple way to do it, that you sure can tune depending on the case:

def str_to_hex(data):
    """Given a string, return the string
        representing the hex bytes of the original"""
    return map(lambda c: '%02X' % ord(c), data)

and the inverse:

def hex_to_str(data):
    """Given a list of strings representing hex bytes,
        will return its corresponding converted character string"""
    return ''.join(map(lambda b: chr(int(b, 16)), data))

Examples:

>>> data = '\xacR\x07\x00\xc8]\x07\x00\xd0]'
>>> str_to_hex(data)
['AC', '52', '07', '00', 'C8', '5D', '07', '00', 'D0', '5D']
>>> hex_to_str(['AC', '52', '07', '00', 'C8', '5D', '07', '00', 'D0', '5D'])
'\xacR\x07\x00\xc8]\x07\x00\xd0]'
>>> hex_to_str(str_to_hex(data)) == data
True
 
Posted at 5pm on 08/20/09 | 41 comments | Filed Under: Python, Recipes read on

PyCon Argentina!

The first Python Conference in Spanish, and in Argentina. For this edition, two great guests will be participating: Jacob Kaplan-Moss (Django creator) y Collin Winter (Python core developer, Unladen Swallow).

There are more than 30 talks about Python. It will be great. See you there!

PyCon 2009 Argentina

 
Posted at 10am on 08/19/09 | 42 comments | Filed Under: Events, Python read on

Post it


About

I have been working with Python for the last 4 years, and I love it. On the other hand I have been always interested on reverse engineering topics and I am trying to learn about this, so I hope to be writing on this too. Then, I guess I will be writing about programming in general.


This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 Argentina License.
Creative Commons License