Roberto Pauletto is working on an Italian translation of the Module of the Week series. Roberto creates Windows applications with C# by day, and tinkers with Linux and Python at home. He has recently moved to Python from Perl for all of his system-administration scripting.
Thanks, Roberto!
The urllib2 module provides an updated API for using internet resources identified by URLs. It is designed to be extended by individual applications to support new protocols or add variations to existing protocols (such as handling HTTP basic authentication).
Read more at pymotw.com: urllib2
I’ve added a Skribit widget to the PyMOTW home page and to my blog to get some feedback from readers about what modules or general topics I should cover next. Add your suggestion to the list, or vote for one of the existing suggestions, to let me know what you want to read about. I’ll monitor the suggestions and use them to decide which module(s) to start researching for my next article.
Python’s standard library includes a large range of tools for working with files, filenames, and file contents.
Read more at pymotw.com: articles/file_access.html
IronPython in Action by Michael Foord and Christian Muirhead covers the version of Python built to run on Microsoft’s CLR and explains how to use it with the .NET framework.
Disclaimer: I received a review copy of this book from Manning through the PyATL Book Club.
There are two target audiences for this book: experienced Python developers wanting to learn .NET, and experienced .NET developers wanting to learn Python. Both groups will find plenty of interesting material and learn a lot.
The 1.95 release of PyMOTW includes a command line interface to access the documentation for a module.
The package can be installed via easy_install or pip:
$ pip install PyMOTW Downloading/unpacking PyMOTW Downloading PyMOTW-1.95.tar.gz (2.2Mb): 2.2Mb downloaded Running setup.py egg_info for package PyMOTW warning: no files found matching 'ChangeLog' warning: no files found matching '*.py' under directory 'sphinx/templates' no previously-included directories found matching 'utils' Installing collected packages: PyMOTW Running setup.py install for PyMOTW changing mode of build/scripts-2.
Hello, World! Computer Programming for Kids and Other Beginners by Warren and Carter Sande is an introduction to programming in general (and Python specifically) aimed at pre-teens or young teens.
Disclaimer: I received a review copy of this book from Manning through the PyATL Book Club.
Although the book is designed for a young audience, it is not condescending as many kids books tend to be so it remains readable by adults who need a very basic text on how computer programs work.
pyclbr can scan Python source to find classes and stand-alone functions. The information about class, method, and function names and line numbers is gathered using tokenize without importing the code.
Read more at pymotw.com: pyclbr
robotparser implements a parser for the robots.txt file format, including a simple function for checking if a given user agent can access a resource. It is intended for use in well-behaved spiders or other crawler applications that need to either be throttled or otherwise restricted.
Read more at pymotw.com: robotparser