Python
RAPID PROTOTYPING: SOFTWARE
Examples of rapid prototyping in Python: pure software case studies
Python RAPID PROTOTYPING: SOFTWARE Examples of rapid prototyping in - - PowerPoint PPT Presentation
Python RAPID PROTOTYPING: SOFTWARE Examples of rapid prototyping in Python: pure software case studies System-dependent metrics Write a program to get basic information about the operating system status, the current load average,
RAPID PROTOTYPING: SOFTWARE
Examples of rapid prototyping in Python: pure software case studies
– the current load average, – the operating system version, name, architecture, – the total and the free memory
– Assume that the host operating system is Unix/Linux – The os module allows to access operating system facilities (e.g., bash commands)
3/20/2014 Python basics 2
– check how the Google’s tts service works
3/20/2014 Python basics 3
– Provide a set of system metrics in a system- independent way
metrics exercise
– Monitor the CPU percentage value and trigger a vocal warning if the CPU goes over a given threshold
– The psutil module offers system-independent access to the O.S. Performance metrics
3/20/2014 Python basics 4
– Use easy_install module_name to add missing modules (pyglet in our case) – Check dependencies (e.g., external services such as AVBin in our solution)
3/20/2014 Python basics 5
– Monitors your inbox folder for unseen messages – Provides a vocal summary of newly received messages including the message count, and for each message the sender(s) and the title
– Assume that the mail server is accessible through IMAP – The Python modules that enable mailbox access and mail reading are: imaplib and email
3/20/2014 Python basics 6
– http://github.com/AmI-2014/Python-Lesson- Software
3/20/2014 Python basics 7
01PRD AMBIENT INTELLIGENCE: TECHNOLOGY AND DESIGN
Dario Bonino dario.bonino@polito.it