Py-ds18b20 is a basic python class for reading temeprature from the DS18B20 1-Wire temperature sensor. Requires kernel modules for 1-Wire and 1-Wire Therm to be loaded. This has only been tested on the Raspberry Pi. This repository also includes a test class.
This code is based on code by Adafruit Industries: https://learn.adafruit.com/adafruits-raspberry-pi-lesson-11-ds18b20-temperature-sensing/software