Sessions at EuroPython 2011 about Python

Your current filters are…

Monday 20th June 2011

  • Good API design

    by Alex Martelli

    Designing interfaces so that other code can interact with ours (whether our code is a library, framework, application, website...) is a very common and clearly crucial activity, but it's fraught with dangers -- there's a lot stuff we all keep doing wrong time after time. This talk shows some common categories of API design errors encountered in the wild, with tips on how to avoid them when you design your next API.

    Goals: to show you how to focus resources and attention to help avoid mistakes in API design. Prereqs: experience designing and developing software, esp. software which needs to interact w/other existing software.

    At 9:30am to 10:30am, Monday 20th June

    Coverage video

  • What makes Python so AWESOME

    by Raymond Hettinger

    In a world of many programming languages, the popularity of Python continues to grow without bound. We examine what makes it special and how it influences the way we program:

    • what gives python its texture and feel
    • what features support rapid development
    • where does the readability come from
    • what features support economy of expression
    • look at the mix of lightweight tools and industrial grade tools
    • how easy is it to learn python? how hard is it to master
    • what can python do that other languages can't
    • what is the role of the python community
    • why does the license matter
    • does python just have zen or is there a python attitude?

    At 11:15am to 12:30pm, Monday 20th June

    Coverage video

  • Spotify and Python: love at first sight

    by Jon Åslund

    This is a story about how Spotify started, how we evolved, where we are today and how Python has always been a big part of our success. Where do we use it? Where do we not use it? Learn about the Unix way and the Debian way of maintaining a healthy love for Python, while two-timing with other languages such as Java and C++.

    At 12:30pm to 1:15pm, Monday 20th June

    Coverage video

  • Asynchronous programming with Twisted

    by Orestis Markou

    Twisted is one of the best asynchronous network programming frameworks out there, and can help you build cool stuff very easily, once you understand the core design.

    Unfortunately, Twisted is also a huge framework and can be very daunting for beginners to approach. This training session aims to help people with little or no asynchronous programming experience understand both Twisted and asynchronous programming. The plan is to cover core asynchronous topics, the Twisted way, and as many practical applications including web services, IPC, GUI applications etc.

    The audience should be competent in core Python constructs. No previous asynchronous or threading programming experience required.

    UPDATE: Everyone that plans to attend the talk, please install Twisted (http://twistedmatrix.com). Make sure everything is OK by doing:

    python
    >>>from twisted.internet import reactor
    >>>reactor.run()

    The above should block until you hit Ctrl-C and then exit the Python interpreter.

    At 2:30pm to 6:30pm, Monday 20th June

  • Emulating Stackless and greenlet with each other

    by Péter Szabó

    Stackless Python and the greenlet package for CPython are two different implementations of coroutine support for Python. (Coroutines are fundamental building blocks of I/O frameworks like gevent, Eventlet, Concurrence and Syncless to conveniently handle thousands of socket connections at a time without creating threads.) Stackless and greenlet implement a different interface. However, each is powerful enough so that it can be used to emulate the other one. In this talk we explore the differences and discuss design decisions and testing strategies of the emulations we have implemented.

    At 2:30pm to 3:30pm, Monday 20th June

    Coverage video

  • Introduction to Gevent

    by Denis Bilenko

    Gevent (http://gevent.org) is a coroutine-based library that enables you to write highly-concurrent network and web applications. Learn in detail what Gevent is, what it does and how it does it.

    I will introduce a coroutine-based approach to network programming, explain it benefits and pitfalls.We will walk through the Gevent API, including the most recent additions, and understand how it is implemented. I will make a quick overview of the most interesting 3rd party add-on and applications after that.

    At 2:30pm to 3:30pm, Monday 20th June

  • Python and MongoDB tutorial

    by Andreas Jung

    MongoDB is the new star of the so-called NoSQL databases. Using Python with MongoDB is the next logical step after having used Python for years with relational databases.

    This talk will give an introduction into MongoDB and demonstrate how MongoDB can be be used from Python.

    More information can be found under:

    http://www.zopyx.com/resources/p...

    At 2:30pm to 6:30pm, Monday 20th June

    Coverage slide deck

  • Python(x,y): Python as your next MATLAB

    by Vincent Noel

    This training session will introduce the Python scientific stack to Engineers who use matlab in their day-to-day job and want to switch to an open solution or explore other alternatives. The basics of Python will first be presented: syntax, variable types and data structures, functions and flow control, exceptions. Python modules and tools required for matlab-like programmation in Python will be presented: ipython, numpy and matplotlib. Several Python applications typical of engineering problems will be presented and compared with their matlab version, as time will allow: plotting (time series, histograms, pseudocolor plots, etc.), basic I/O (e.g. ASCII, CSV, matlab MAT files), signal processing, mapping, etc. The creation of user interfaces with PyQt will be briefly introduced. Differences between Interactive and non-interactive programming will be described. Along the session, key differences with matlab will be underlined and discussed. Sources of information and documentation, online and offline, will be presented.

    These concepts will be introduced as coding exercises using the Python programming environment provided by the Python(x,y) distribution, which is freely downloadable and includes recent versions of Python, numpy and matplotlib. This session will also focus on using Python(x,y) efficiently for Python programmation. Attendees should bring their own laptop running Windows. It is also recommended that they download and install the pythonxy distribution from http://www.pythonxy.com/.

    Although no knowledge of Python is required to attend this session, a basic knowledge of matlab and of its typical programming usage is needed.

    At 2:30pm to 6:30pm, Monday 20th June

    Coverage slide deck

  • 5 Years of Bad Ideas

    by Armin Ronacher

    What was my motivation for working with Python after two years of PHP? There is so much you can do. Functions are objects you can pass around, you can decompile functions to see how they work internally, you can alias a bound method to a global function and it will just work. You can change import semantics, override the method resolution order, you can write metaclasses, you can hook into the CPython interpreter API and much more.

    Five years later I came to the conclusion that this is really not what Python is about and that a lot of what I did was interesting but not necessarily a good idea. This talk is a 45 minute recompilation of things I really shouldn't have done in the first place. Expect a bunch of neat and interesting hacks that showcase the possibilities of the language.

    At 3:30pm to 4:30pm, Monday 20th June

  • Building a hosting platform with Python

    by Andrew Godwin

    At ep.io we built a Python hosting platform from the ground up, designed to run large numbers of web applications on a small number of physical machines both securely and in a reasonably scalable way. This talk will show you how we built our infrastructure - using Redis, eventlet, PostgreSQL and more - and what lessons we learnt from our first few thousand deploys.

    See how we split services into multiple processes and greenthreads; the pains of building a cooperatively-multitasking PTY module; how Redis isn't the answer to everything, but is still very useful; how to persuade third-party software to work securely in a shared environment; and how important it is to have good logging, especially when you have more than five servers.

    At 3:30pm to 4:30pm, Monday 20th June

    Coverage video

  • Ubuntu and the opportunistic programming

    by Paolo Sammicheli

    We will show the tools and the infrastructure that makes easy creating own python project in Ubuntu and distributing it to millions of users. It will be shown several tools: Launchpad, Quickly and and the Ubuntu's PPA (personal package archiving).

    At 3:30pm to 4:30pm, Monday 20th June

  • Writing Books using Python & Open Source Software

    by Wesley Chun

    All of us are familiar with using open source tools to develop software applications with, but instead of writing code, it is also possible to create the manuscript of a book in very much the same way. These days, authors have many choices in terms of the tools which are available to aid them in writing a book. Gone are the times when the only option is using a proprietary word processor, so why not try it using open source tools? It's especially attractive to those who develop software using open source tools as well those who are writing books about open source tools. Both code and the written word are created in plain text files. These files are easily archived using some version control system. They can be shared easily via e-mail and can also be backed up in the same manner. In the end, the final product is shipped to the customer: in the case of software, it's distribution via CD or DVD, or perhaps a release for installation on a server, and for a book, it's delivering a manuscript to the publisher, perhaps in a format such as HTML or PDF®.

    Upon some reflection, writing a book is, in many ways, similar to writing an application: you create text or code which is saved to a file (or files--typically one but could be more) file in some format, proprietary or otherwise. Additions, changes, or deletions are made to the file(s), which is then updated when the file is (re)saved. Backups need to be made, some versioning may be required to keep track of multiple files during the course of development, and finally, the resulting file(s) have to be delivered, as described above. Because of all the similarities described, we assert that it is possible to use a development environment utilizing Python and other open source tools to not only write application with, but also be able to create the entire manuscript for a book as well! While this entire concept should not really be mind-blowing, it does represent a trend seemingly growing in popularity in the open source world.

    In particular, we highlight the following requirements that are necessary when creating a manuscript, especially with co-authors:

    • Text Formatting
    • Editing
    • Versioning and Backups
    • Automated Testing of Code
    • HTML/PDF® Generation
    • Author Communication

    In this talk, we highlight one particular case study, the development of Addison Wesley's 2009 publication, "Python Web Development with Django", as well as provide some insight into other projects created using similar tools. Open source software has radically affected how applications are built today, and this phenomenon has the ability to affect the book publishing world in the same way.

    At 3:30pm to 4:30pm, Monday 20th June

    Coverage video

  • Architecture, organisation and best practices for a successful web project in Python (teaser)

    by Samuel Fuentes

    A teaser for the full tutorial on Tuesday: http://lanyrd.com/2011/europytho...

    At 5:15pm to 5:45pm, Monday 20th June

  • Creating videogames with Panda3D

    by Claudio Desideri

    In this talk I'm going to explain the main features and possibility that Panda3D gives us when we want to create a game from scratch. Then, I'll explain how the engine is structured and how it works conceptually going also through code examples and some practical operations.

    It's meant for beginners who have also never worked with realtime graphics and the only prerequisite is a bit of python knoweledge including how to write a simple program and how to run it. The goal is to create a simple realtime application that take care of user input and reacts depending on it.

    At 5:15pm to 6:15pm, Monday 20th June

    Coverage video

  • PL/Python – Python inside the PostgreSQL RDBMS

    by Peter Geoghegan

    PostgreSQL (or “Postgres”) is an immensely powerful, incredibly extensible relational database, released under a permissive open source licence that is similar to that of CPython. PL/Python is one of PostgreSQL's standard server-side procedural languages, through which Python stored functions can be defined that can be called directly from SQL, quite seamlessly.

    Play to the strengths of Postgres, by writing application business logic within the database in either Python 2 or Python 3. Enforce advanced business rules using Python, including constraints on both tables and database level datatypes (“domains”). By pushing the logic tier into the database, you can potentially greatly increasing your application's scalability by minimising the number of database roundtrips.

    Includes case studies and topical coverage of PL/Python related enhancements in upcoming 9.1 release, and recent 9.0 release. The talk only assumes a very basic understanding of databases.

    At 5:15pm to 6:15pm, Monday 20th June

    Coverage video

  • Advanced Python (teaser)

    by Raymond Hettinger

    A teaser for the full tutorial on Tuesday: http://lanyrd.com/2011/europytho...

    At 5:45pm to 6:15pm, Monday 20th June

    Coverage video

  • JavaScript for Python Programmers

    by Jonathan Fine

    With the growth of AJAX and other client-side technologies many Python programmers, web-applications increasingly involve large amounts of JavaScript. Many of us find that, just to keep doing our job, we have understand JavaScript better.

    This tutorial, which was also given at EuroPython 2009 and 2010, provides an introduction to JavaScript that emphasises the similarities and differences between Python and JavaScript. It has a focus on the concepts underlying JavaScript, and in particular the object model and the lack of built-in classes. It also covers quite a few JavaScript gotchas and other traps for the unwary.

    Last year's course material is available online at
    http://jfine.bitbucket.org/docs/...

    This course is suitable for those who are Beginners or better in Python. Previous JavaScript knowledge is not required, but would helpful.

    At 5:45pm to 6:15pm, Monday 20th June

  • Diversity as a Dependency

    by Anna Ravenscroft

    The PSF recently adopted a diversity statement. While some argue that we should do this just because it's "the right thing to do", others question why we, as a technical community, should even worry about diversity. This talk addresses the diversity question, not in moralistic or ethical terms, but in pragmatic ones. Studies on creativity and productivity demonstrate the potential benefits of diversity for the Python community. Making Python the best language it can be is not merely helped by increasing diversity, but may be dependent on diversity.

    At 6:30pm to 7:30pm, Monday 20th June

Tuesday 21st June 2011

  • Creare videogames con Panda3D

    by Claudio Desideri

    In questo talk spiegherò quali opportunità ci offre il game-engine Panda3D nel momento in cui vogliamo creare un videogioco da zero. Spiegherò com'è strutturato al suo interno e i concetti di base per capire come funziona, ma mostrerò anche prove pratiche e pezzi di codice.

    Può partecipare chiunque abbia una conoscenza di base di Python, anche se non ha mai lavorato con applicazioni realtime 3D. L'obiettivo è mostrare come creare un semplice videogioco che risponda agli input immessi dall'utente e come utilizzare al meglio questo potente engine.

    At 9:00am to 10:30am, Tuesday 21st June

    Coverage video

  • Introduction to Python Database Programming

    by Marc-André Lemburg

    The talk will give an introduction to the concepts used in the Python Database API and relational databases in general. Connection, cursors and transactions are discussed, and their use in a typical Python database application are demonstrated. The talk will also touch upon some advanced database programming techniques and discuss best practices.

    At 9:00am to 10:30am, Tuesday 21st June

    Coverage video

  • It's the message, stupid: python & amqp

    by Muharem Hrnjadovic

    Messaging is a well established domain in information technology and can greatly improve the scalability and throughput of a system when employed appropriately. Message queues can be used to achieve

    • spatial decoupling i.e. the systems that produce and consume messages may be deployed on different machines, networks, continents etc.
    • temporal decoupling i.e. a system can enqueue a message and carry on without waiting for the message consumer.

    We use e.g. messaging in [http://openquake.org] OpenQuake to distribute calculations of [http://openquake.org/about/gem/] seismic hazard and the respective risk to human lives and infrastructure.

    There is a huge number of messaging patterns identified in the industry [7] and a small selection of these will be presented to whet your appetite :-)

    AMQP [1] is a fairly new and open messaging standard with a number of freely available open source message brokers (RabbitMQ [2], ZeroMQ [3], qpid [4] etc.) with different features and performance trade-offs.

    In the course of the presentation you will be
    * introduced to AMQP concepts and jargon
    * introduced to available Python AMQP bindings (focussing on an asynchronous (txAMQP [5]) and a synchronous variant (most likely kombu [6]))
    * shown code examples demonstrating how to use these Python bindings

    The presentation (45 minutes in total) is structured as follows:
    * 7.5 minutes for messaging concepts and patterns
    * 7.5 minutes for AMQP concepts
    * 5 minutes for an overview of the Python bindings for AMQP
    * 10 minutes for txAMQP examples (asynchronous bindings)
    * 10 minutes for kombu examples (synchronous bindings)
    * 5 minutes for questions

    References:

    At 9:00am to 10:30am, Tuesday 21st June

  • PostgreSQL - the database-sister of Python

    by Harald Armin Massa

    This talk is the updated and especially enhanced of the "Python and PostgreSQL - a match made in heaven" talk of EP 2006, CERN, Switzerland.

    PostgreSQL and Python share more then the first letter: their communities have great similiarities; their development processes are really comparable; their licenses and their openness to academics AND business (on a technical and communitie perspective) are big pluses.

    We will have a look at those similiarities and learn why PostgreSQL is really the database sister to Python. There will be an overview of PostgreSQL, information of how to connect PostgreSQL and Python; how PostgreSQL streaming replication works and what it can do for you, how PL/Python helps to have Web 2.5 JSON storage and handling right inside PostgreSQL. We will show that YESQL is also a valid answer to many data storage qeuestions.

    At 11:15am to 12:15pm, Tuesday 21st June

    Coverage video

  • Relate or !Relate

    by Mark Ramm-Christensen

    To Relate or Not to Relate, that is the question raised by the NoSQL movement. There is a lot of buzz about Couch, Casandra, MongoDB, and other non relational databases, and at the same time there are decades of hard work that's gone into optimizing databases built around the relational model.

    I would actually argue that there is no such thing as a NoSQL database -- there are a variety of compelling options to relational database -- each of which have different features and different performance characteristics. So no one-sized fits all comparison will do. So, I'll try to outline a general taxonomy for persistence mechanisms, and then proceed to comparing relational DB's to their new friends in practice.

    The talk will contain quite a few stories from the trenches with CouchDB, MongoDB, MySQL, Postgres, Tokyo Cabinet, ZODB, and other databases, and will help you think about the data storage needs of your applications in new ways.

    At 11:15am to 12:15pm, Tuesday 21st June

    Coverage video

  • Interoperability: from Python to Clojure and the other way round

    by Enrico Franchi

    Clojure is a modern Lisp dialect symbiotic with the Java Virtual Machine and designed for concurrency. Clojure is compiled to byte-code and yet is fully dynamic. It is very oriented towards functional programming and manages state change in a controlled environment with software transactional memory (STM). Since Clojure is a Lisp dialect, it retains the code-as-data philosophy and has a powerful macro system

    Using the Jython, an implementation of the Python programming language written in Java, it is possible to call Clojure from Python and call Python from Clojure, using the JVM as an interoperability platform.

    After a brief introduction of the main Clojure features, the presentation will show how Jython and Clojure can be used together.

    No previous knowledge of Clojure (or Lisp) is assumed nor required.

    At 12:15pm to 1:15pm, Tuesday 21st June

    Coverage video

  • uWSGI, il coltellino svizzero (di MacGyver) del deploy

    by Roberto De Ioris

    La prima parte del talk introdurra' la storia di uWSGI, dall'idea iniziale alla messa in produzione dei primi lavori, fino alla sua inclusione nei progetti Cherokee e Nginx.

    Seguira' una serie di esempi di deploy in ambienti ostili (a livello di sicurezza, non faremo deploy nella jungla) o con risorse fortemente limitate fino all'utilizzo delle funzionalita' integrate per il clustering.

    Il talk si rivolge a tutti gli sviluppatori di applicazioni web che sono alla ricerca di un ambiente robusto e veloce per i propri lavori, o a chi gia' utilizza uWSGI e vuole
    conoscere qualcuna delle nuove funzionalita' introdotte nel ramo di sviluppo.

    At 12:15pm to 1:00pm, Tuesday 21st June

    Coverage video

  • Writing a parallel and distributed tool for backing up a multi-terabyte data

    by Marco Nenciarini

    How Python was used to implement a tool for the daily backup of an over 50 terabyte distributed data warehouse based on Greenplum Database technology.

    The talk covers our experiences, from the initial customer requirements to the first alpha release of the tool, describing the main issues we faced and the Python modules we adopted to address them, while using agile methods.

    Though the application is not currently available as an open-source project, the talk gives valuable insights into the development of distributed and parallel applications using Python.

    At 12:15pm to 1:00pm, Tuesday 21st June

  • Advanced Python

    by Raymond Hettinger

    This tutorial will work through a series of real-world examples, showing how an understanding of the tools built into the Python interpreter or included in the standard library can be combined to solve difficult problems clearly and Pythonically. We will also discuss when and how to reach beyond the standard library when needed to address difficult algorithmic and optimization problems.

    At 2:30pm to 6:30pm, Tuesday 21st June

  • Best Practices for Python in the Cloud

    by Gisle Aas

    Abstract:
    Whether you’re an independent developer or development manager in a large company, “the cloud” is on everyone’s mind. But just because it’s in the cloud, doesn’t mean development and deployment is effortless. The cloud presents infrastructure and development challenges in a new way.

    In this presentation, ActiveState's Gisle Aas will share best practices in building and deploying a Python-centric LAMP stack(s) on the cloud for a range of web-based applications from simple Django site to HPC GPU Clusters.

    Based on ActiveState’s experiences, Gisle will discuss the challenges faced and lessons learned in building an infrastructure to deploy web applications to the cloud with Python.

    You will learn about:
    •Which packages are critical for a secure, Python-centric LAMP stack (and what it takes to build them)!
    •Tips for developing, deploying, and scaling Python applicaitons in the cloud
    •How to use Python to connect and build infrastructure to support and manage your deployment

    At 2:30pm to 3:30pm, Tuesday 21st June

  • Data Plumbing with Python

    by Pavlos Christoforou

    Point Nine provides operations outsourcing and support to large and complex financial institutions.

    As part of our day to day responsibilities we are required to process our client's trading activity which generally involves receiving data in various formats and through various protocols, apply transformations, validations and enrichment processes and distribute the resulting data to various third parties, in short Data Plumbing.

    The goal of this talk is to introduce the audience to the (vast) field of financial data processing which we believe presents a tremendous opportunity for python and it's community and provide a brief overview of Point Nine's deployment of Python as the main framework for all data plumbing activities.

    At 2:30pm to 3:30pm, Tuesday 21st June

    Coverage video

  • Remote execution of Python scripts using Viri

    by Marc Garcia

    Viri is a system for automatic distribution and execution of Python code on remote machines. This is especially useful when dealing with a large group of hosts.

    With Viri, Sysadmins can write their own scripts, and easily distribute and execute them on any number of remote machines. Depending on the number of computers to administrate, Viri can save thousands of hours, that Sysadmins would spend transferring files, logging into remote hosts, and waiting for the scripts to finish. Viri automates the whole process.

    Viri can also be useful for remotely managing host settings. It should work together with an application where the information about hosts would be maintained. This information can include cron tasks, firewall rules, backup settings,... After a simple Integration of this application with your Viri infrastructure, you can change any settings in the application, and see how it gets applied on the target host automatically.

    The talk will cover next topics:
    * Introduction to Viri
    * Live demo on how to install Viri, write a Viri task, and execute it in a remote host
    * Security concerns using Viri

    Check Viri project page at: http://www.viriproject.com

    At 2:30pm to 3:30pm, Tuesday 21st June

    Coverage video

Schedule incomplete?

Add a new session

Filter by Day

Filter by coverage

Filter by Topic