Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a few processes I need to run in deamon mode, I just discovered upstart so I am starting to use it.
Are there any python libraries or applications that I could use to monitor and control these processes from an html interface?
I'm asking as I would like to prevent myself from reinventing the wheel. :)
Any ideas?
I think psutil is what you are looking for.
Supervisor is pretty awesome. I haven't used the web interface though, it might suck.
you can also try circus.
Cheers
Laidback
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am somewhat a beginner in Python, and want to make a script that would evaluate how much the users PC is worth. For this, I need to have a way to find out what the users computer specs would be.
Some things that I need to know about would be:
CPU
GPU
How much RAM
How much Storage
I have heard that there is a way to find the cpu, but how about a way to find out any of the remaining parts.
Check this question:
How to get current CPU and RAM usage in Python?
Specs is a really general question. You're better off searching for each specific thing you want to find. I think psutil will give you some of what you need.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm building rails application, I have workers from other project, they called ironworker and written on Python. Is it possible to use this workers in Rails application?
As one of solution, I'm going to use other worker - resque, but can I execute Python scripts?
Thanks for help, I have no idea from what I should start
As I understand from the docs of ironworker, python workers can be run from command line.
exec 'hello_worker.py'
This post explain how you can do it:
Calling shell commands from Ruby.
For example you can call python workers in your rescue worker:
class ImageConversionJob
def work
system("exec 'hello_worker.py'")
end
end
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I've seen several examples of simple Python client/server programs on the web. My question is, in order to have the server consistently listening from sunrise to sunset, what is the most efficient way to go?
If I just include an infinite while loop for accepting connections, is that the best way to utilize my resources, or is there a better/more efficient way to program that?
In other words, is the server tutorial here best practice (minus not catching exceptions)?
The best course of action for you would be to explore the tulip library. It's already checked in in the upcoming Python 3.4 (named asyncio), but you can start using it today.
Tulip library on google code: https://code.google.com/p/tulip/source/checkout
PEP 3156 Asynchronous IO Support Rebooted: the "asyncio" Module: http://www.python.org/dev/peps/pep-3156/
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I asked a question about the fuser command yesterday here. It seems gedit (and other text editors, and perhaps even other processes) act a bit differently in the way they interact with files, so they don't show up on when calling fuser even though they have opened a file.
I would like to monitor a file for ANY process which accesses it, whether it keeps it open or not. Is there an alternative command / software which I might be able to use for this purpose please? This can include from languages such as python as well.
Thanks for reading.
If a file is not open then it's not being accessed. If what you want is to keep track of who opens what, then you need to setup an auditing tool like auditd.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Which sites are the best for posting Python code that actually works? To show/share, and get input? I would like to post my code.
Check out ActiveState's Python Recipes site. It reminds me a bit of StackOverflow.
I think Github (Git) or Bitbucket/Kiln (Mercurial) would be the best places to host any code. That way you can keep it in version control + get comments, suggestions, and even features or additional code for free via the pull requests.
There is no best maybe, google code, git are all pretty good web site. Try one of them and find the one suit you.
Check out pythonfiddle.