gmailpm 0.0.3
Project Monitoring based on GMail
gmailpm allows you to monitor the progress of extended applications using gmail.
Tutorial:
http://homepage.univie.ac.at/wolfgang.lechner/gmailpm.html
Description:
1. Create a TGmailProjectMonitoring object
import gmailpm.gmailpm as gpm
pm = gpm.TGmailProjectMonitoring(emailAddress="youremailaddress@gmail.com", emailPassword="yourpassword",projectName="TestProject")
Note, that the class TGmailProjectMonitoring requires 3 arguments, your emailaddress, your password and a discription of the job.
2. At the beginning of your code send a Mail to your gmail account with senStaretedMessage
pm.sendStartMessage()
sendStartMessage without arguments sends a message with the projectname as subject and hostname and current directory as body. You can
override the body text with the optional argument info (eg. pm.sendStartMessage(info="started
at CLUSTER:./mydir") )
3. In order to protocoll your progress you can send a progress message with
pm.sendProgressMessage("After %d Steps: Avg=123456.7890" % (i,))
Example:
if __name__=="__main__":
project = "TestProject"
pm = TGmailProjectMonitoring(emailAddress="test.test@gmail.com",emailPassword="password",projectName=project)
pm.sendStartMessage(info="startedat CLUSTER:./mydir")
pm.sendProgressMessage("Progress 50%")
pm.sendProgressMessage("Finished")
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| gmailpm-0.0.3.win32.exe (md5) | MS Windows installer | any | 2009-10-01 | 196KB | 218 |
| gmailpm-0.0.3.zip (md5) | Source | 2009-10-01 | 4KB | 406 | |
- Author: Wolfgang Lechner
- Home Page: http://homepage.univie.ac.at/wolfgang.lechner/gmailpm.html
- Keywords: project,monitoring,scientific,gmail
-
Categories
- Development Status :: 4 - Beta
- Environment :: Other Environment
- Intended Audience :: Developers
- License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
- Operating System :: OS Independent
- Programming Language :: Python
- Topic :: Communications :: Email
- Topic :: Documentation
- Topic :: Scientific/Engineering
- Topic :: Software Development :: Documentation
- Topic :: System :: Monitoring
- Package Index Owner: thebigbadwolf
- DOAP record: gmailpm-0.0.3.xml
