This ROS package provides an Axis network camera driver, written in Python. It provides both a ROS API (via ROS topics and parameters) and Python API (which can be used without having ROS at all).
Please see the documentation located here:
http://wiki.ros.org/axis_camera (ROS API)
http://docs.ros.org/indigo/api/axis_camera/html/ (Python API)