Slideshow transcript
Slide 1: Python Session 2: modules and communities José Dapena Paz <jdapena@igalia.com>
Slide 2: Sessions ● Session 1: – Presentation of language, brief history and practical examples of language structures. ● Session 2: – Important projects – Standard libraries – Other modules
Slide 3: Second session contents ● ¿Python, where? – Main uses. – Communities: Zope, Twisted. – Integration with other languages. ● Modules – Overlook of main modules available
Slide 4: Second session contents ● ¿Python, where? – Main uses. – Communities. Zope, Twisted. – Integration with other languages. ● Modules – Overlook of main modules available
Slide 5: Main uses ● Prototyping: – Fast for implemen things that ”just work”. – Lots of modules. Test whatever you want. ● Systems integration glue – Lots of modules implementing standards. – Good support for files and network.
Slide 6: Main uses (2) ● GUI programming – Performance of program logic is not critical. – Easy to write GUI programs. – It's Object Oriented.
Slide 7: Communities: Zope ● Zope: – Web application server implemented in Python – Framework of persistence ZODB (stores Zope objects in a transactional database). – Objects for documents, images, page templates, wikis, blogs, etc. – CMS's using Zope: Plone. – Widely used. Big community.
Slide 8: Communities: Twisted ● Twisted – Event driven network programming framework. – Support for lots of transports and network protocols. They're handled separately. – Key: use of deferreds (remote values we don't know yet, we cannot get their value but set a callback when it's available). Deferreds are chained to implement network protocols and applications – Used in Buildbot, Flumotion
Slide 9: Communities: Gnome ● Just an example of community using Python. ● Lots of applications implemented in Python, and main libraries can be used from Python. ● Examples: – Deskbar applet implemented in Python – Epiphany is extensible using Python
Slide 10: Integration with other languages ● Python is easily integrable with other languages: – C – C++ – Special case: Java. ● Other languages can easily integrate Python: – Epiphany example – Special case: Java, Jython.
Slide 11: Second session contents ● ¿Python, where? – Main uses. – Communities: Zope, Twisted. – Integration with other languages. ● Modules – Overlook of main modules available
Slide 12: Modules ● Check library reference. – Examples: network protocols (smtp), file access. ● Not the only point to check: – gtk: standard API doc, as we've got poor python- specific doc. – Specific frameworks (database access, twisted, etc).





Add a comment on Slide 1
If you have a SlideShare account, login to comment; else you can comment as a guest- Favorites & Groups
Showing 1-50 of 0 (more)