Re: Python System information

2008-01-28 Thread Paul Boddie
On 26 Jan, 15:58, Clement <[EMAIL PROTECTED]> wrote: > Hi friends, > How can i get system information like CPU load and RAM usage in linux. > Is there any packages for python One result lower than this thread in the Google search results for the query "Python System Informatio

Re: Python System information

2008-01-27 Thread NMBooker
On Jan 27, 2:23 pm, Martin Saturka <[EMAIL PROTECTED]> wrote: > > How can i get system information like CPU load and RAM usage in linux. > > What about 'pystatgrab'? > It provides good info, with a limitation - it does not have CPU info > for particular CPUs

Re: Python System information

2008-01-27 Thread Martin Saturka
> How can i get system information like CPU load and RAM usage in linux. What about 'pystatgrab'? It provides good info, with a limitation - it does not have CPU info for particular CPUs, it takes just the cumulative CPU info. http://www.i-scream.org/pystatgrab/ http://packag

Re: Python System information

2008-01-26 Thread NMBooker
On Jan 26, 2:58 pm, Clement <[EMAIL PROTECTED]> wrote: > Hi friends, > How can i get system information like CPU load and RAM usage in linux. > Is there any packages for python Good question. I've just had a scout around on Google and found no "ready-made" libraries

Python System information

2008-01-26 Thread Clement
Hi friends, How can i get system information like CPU load and RAM usage in linux. Is there any packages for python -- http://mail.python.org/mailman/listinfo/python-list

Re: getting local system information with python

2007-03-15 Thread Justin Ezequiel
On Mar 16, 2:27 pm, Astan Chee <[EMAIL PROTECTED]> wrote: > Hi, > I have a python script and I want to check what operating system it is > on and what the current local machine name is. > How do I do it with python? > Thanks! > Astan import platform platform.uname() -- http://mail.python.org/mai

getting local system information with python

2007-03-15 Thread Astan Chee
Hi, I have a python script and I want to check what operating system it is on and what the current local machine name is. How do I do it with python? Thanks! Astan -- http://mail.python.org/mailman/listinfo/python-list

Re: System Information

2006-03-20 Thread [EMAIL PROTECTED]
Good news! I asked a buddy that runs osx, and he whipped up a script for you :) I understand it's not python, but it gets you close, you should be able to use popen or subprocess.call to complete this. function is_charger_plugged_in() { sleep 3; BATTINFO=`ioreg -l -w 0 | grep IO

Re: System Information

2006-03-19 Thread Serge Orlov
[EMAIL PROTECTED] wrote: > in the online-documentation for this and had no luck. I imagine it is > quite easy and may even be as simple as a boolean variable...? In general it's not so simple, since a computer can have many power sources. > All I want to be able to tell is whether or not my compu

Re: System Information

2006-03-19 Thread [EMAIL PROTECTED]
Oops -- just asked a buddy, osx doesn't have /proc But you could look into sysctl I'll boot up my laptop and check out if there is anything regarding the battery, but I suspect you should investigate sysctl -a | grep acpi -- http://mail.python.org/mailman/listinfo/python-list

Re: System Information

2006-03-19 Thread [EMAIL PROTECTED]
I'm not sure about osx, but I know linux uses a proc virtual filesystem. ( freebsd is probably closer, and it doesn't either but you can mount it via mount_linprocfs none /proc) But if you know if you have a proc file system, you can check it to see if you are under power... IE if I remember righ

System Information

2006-03-19 Thread MidiBot
Hello. I want to write a program in which the main functionality will depend on whether or not my computer is connected to a power adapter(this is for laptops). I looked in the online-documentation for this and had no luck. I imagine it is quite easy and may even be as simple as a boolean variabl

Re: How to get Windows system information?

2006-01-17 Thread dpickles
nevermind, found it thanks all! -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get Windows system information?

2006-01-15 Thread dpickles
For the memory, which of these fields tells you the total amount of RAM? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get Windows system information?

2006-01-15 Thread dpickles
Thank you all! These tips answer my question. I am glad I discovered this group. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get Windows system information?

2006-01-15 Thread Tim Golden
[posting through Google; not sure how it will format] re info on WMI website: please note that the examples I give no the WMI pages are *nowhere near* exhausting what WMI can do. They don't even scratch the surface. And I all too rarely add to them. If you look around the net, you'll find absolut

Re: How to get Windows system information?

2006-01-14 Thread Martin P. Hellwig
[EMAIL PROTECTED] wrote: > thank you! > > from what I can see from the second website you listed, there is a way > to get harddisk space information, but is there any way to get CPU load > and RAM usage? > Have a look at the snippet: #>>> import wmi #>>> t = wmi.WMI() #>>> for i in t.Win32_Perf

Re: How to get Windows system information?

2006-01-14 Thread dpickles
thank you! from what I can see from the second website you listed, there is a way to get harddisk space information, but is there any way to get CPU load and RAM usage? -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get Windows system information?

2006-01-13 Thread Paul Watson
Martin P. Hellwig wrote: > [EMAIL PROTECTED] wrote: > >> Does anybody know how to get the: >> >> Free hard disk space >> Amount of CPU load >> and Amount of RAM used >> >> on windows? I am making an artificial intelligence program that has >> "moods" based on how much stress the sys

How to get Windows system information?

2006-01-13 Thread dpickles
Does anybody know how to get the: Free hard disk space Amount of CPU load and Amount of RAM used on windows? I am making an artificial intelligence program that has "moods" based on how much stress the system is under, based on these parameters. I think it could possibly be done vi

Re: How to get Windows system information?

2006-01-13 Thread Martin P. Hellwig
[EMAIL PROTECTED] wrote: > Does anybody know how to get the: > > Free hard disk space > Amount of CPU load > and Amount of RAM used > > on windows? I am making an artificial intelligence program that has > "moods" based on how much stress the system is under, based on these > param