Python Second Session

998 views
957 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
998
On SlideShare
0
From Embeds
0
Number of Embeds
12
Actions
Shares
0
Downloads
34
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Python Second Session

  1. 1. Python Session 2: modules and communities José Dapena Paz <jdapena@igalia.com>
  2. 2. Sessions ● Session 1: – Presentation of language, brief history and practical examples of language structures. ● Session 2: – Important projects – Standard libraries – Other modules
  3. 3. Second session contents ● ¿Python, where? – Main uses. – Communities: Zope, Twisted. – Integration with other languages. ● Modules – Overlook of main modules available
  4. 4. Second session contents ● ¿Python, where? – Main uses. – Communities. Zope, Twisted. – Integration with other languages. ● Modules – Overlook of main modules available
  5. 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.
  6. 6. Main uses (2) ● GUI programming – Performance of program logic is not critical. – Easy to write GUI programs. – It's Object Oriented.
  7. 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.
  8. 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
  9. 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
  10. 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.
  11. 11. Second session contents ● ¿Python, where? – Main uses. – Communities: Zope, Twisted. – Integration with other languages. ● Modules – Overlook of main modules available
  12. 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).

×