While most programming is done with local resources in mind (i.e., your computer), Python is more than able to pull data from the furthest reaches of the globe for whatever purpose you deem necessary. It does this via network
protocols. These pages address how your Python program can communicate over a network using protocols such as SOAP and TCP/IP as well as platforms such as Zope and Plone.
All but the simplest programs operate in a web-enabled environment. Navigating the (in)security of such an environment is notoriously difficult. This article looks briefly at the state of network security and what it means for Python programmers.
FTP is a critical protocol for a host of networking solutions. Here is how to use Python's ftplib module to interact with FTP servers over an open connection.
One of the more avant-garde forms of network programming is peer-to-peer networking. Here is an introduction to what peer-to-peer entails and what it looks like in general terms.
If you think a TCP/IP handshake is a fraternity gag or a router is something to add ornamentation to your computer desk, you may want to brush up on your networking knowledge. This page by Bradley Mitchell, About.com's resident guru on
computer networking, is sure to help you do that.
While most programming is done with local resources in mind (i.e., your computer), Python is more than able to pull data from the furthest reaches of the globe for whatever purpose you deem necessary. It does this via network
protocols. These pages address how your Python program can communicate over a network using protocols such as SOAP and TCP/IP as well as platforms such as Zope and Plone.
Python's socket module is the foundational module for all network programming in Python. Here is a reference of the functions, classes, and constants available through it. Here is the first of three parts.
Python's socket module is the foundational module for all network programming in Python. Here is a reference of the functions, classes, and constants available through it. Here is the second of three parts.
Python's socket module is the foundational module for all network programming in Python. Here is a reference of the functions, classes, and constants available through it. Here is the third of three parts.
Network programming is not Python voodoo when you understand the basics of clients and servers. Here is how to build a basic web client in Python.
Web servers are an invaluable part of the Internet. But sometimes Apache is over the top for a web service solution. Sometimes all you need is a little program to deliver data upon request. Here is how to build one with Python's socket module.
An RSS Reader is a straightforward program, and building one ensures that one knows the basics of the language. It also teaches the basics of Python web programming, basic networking protocols, and XML handling. Follow these step-by-step tutorials to build a web-based, customisable RSS Reader.
Port scanning is a valuable facility for network programming as well as security testing for your network. Here is how to build a port scanner in Python.
Admittedly, Python speaks a bevy of protocols, each with its own module. This discussion by Fredrik Lundh offers examples of how to use each of them.
If you could use a bit more help to see the big picture of network programming, this tutorial may help you. It offers examples of
smtplib,
poplib and
telnetlib from
O'Reilly Media.
If you are interested in downloading webpages automatically using Python, this page will help you. This chapter from "Dive Into Python" offers a step-by-step discussion of how to use httplib, urllib and other modules to download and process webpages with Python.