Windows service in production?

2011-08-15 Thread snorble
Anyone know of a Python application running as a Windows service in production? I'm planning a network monitoring application that runs as a service and reports back to the central server. Sort of a heartbeat type agent to assist with "this server is down, go check on it" type situations. If using

Re: Windows service in production?

2011-08-16 Thread snorble
On Aug 16, 2:52 am, Tim Golden wrote: > On 16/08/2011 05:32, snorble wrote: > > > Anyone know of a Python application running as a Windows service in > > production? I'm planning a network monitoring application that runs as > > a service and reports back to

Development tools and practices for Pythonistas

2011-04-26 Thread snorble
I'm not a Pythonista, but I aspire to be. My current tools: Python, gvim, OS file system My current practices: When I write a Python app, I have several unorganized scripts in a directory (usually with several named test1.py, test2.py, etc., from random ideas I have tested), and maybe a todo.tx

Monitoring/inventory client-server app

2011-11-16 Thread snorble
I'm writing a tool for monitoring the workstations and servers in our office. I plan to have a server and a client service that runs on each workstation and reports back to the server (heartbeat, disk free space, etc). So far I am considering XMLRPC, or a client service that just downloads a Pytho

Re: Monitoring/inventory client-server app

2011-11-17 Thread snorble
On Nov 17, 4:31 pm, Irmen de Jong wrote: > On 17-11-2011 5:17, snorble wrote: > > > > > > > > > > > I'm writing a tool for monitoring the workstations and servers in our > > office. I plan to have a server and a client service that runs on each

Writing code to be optimizable

2011-11-22 Thread snorble
Sometimes I want to prototype a program in Python, with the idea of optimizing it later by rewriting parts of it in C or Cython. But I usually find that in order to rewrite the slow parts, I end up writing those parts very much like C or C++ anyway, and I end up wondering what is the point of using

Install Python on Windows without Start Menu icons?

2011-12-02 Thread snorble
Is it possible to automate the Python installation on Windows using the MSI file so it does not add a Start Menu folder? I would like to push out Python to all of my office workstations, but I'd like for it to be relatively silent from the user's point of view. -- http://mail.python.org/mailman/li

Re: Install Python on Windows without Start Menu icons?

2011-12-05 Thread snorble
On Dec 5, 2:01 am, Wolfgang Strobl wrote: > "Pedro Henrique G. Souto" : > > >On 02/12/2011 16:34, snorble wrote: > >> Is it possible to automate the Python installation on Windows using > >> the MSI file so it does not add a Start Menu folder? I would l

Python Pop Quiz

2007-06-01 Thread snorble
1. Do you like Python? 2. Do you think Python is good? 3. Do you think Python is real good? 4. What is your favorite version of Python? 5. Because of Python, do you think it will be easier to take over the world? If so, when? If not, when? 7. How many Z80 assembly language programmers does it

Re: How to do this in python with regular expressions

2007-05-27 Thread snorble
On May 25, 6:51 am, Jia Lu <[EMAIL PROTECTED]> wrote: > Hi all > > I'm trying to parsing html with re module. > > html = """ > > > > DATA1DATA2DATA3 HT>DATA4 > > > DATA5DATA6DATA7DATA8 > > > """ > > I want to get DATA1-8 from that string.(DATA maybe not english words.) > Can anyone tell me h

Inheriting from int or long

2007-10-02 Thread snorble
I started creating a simple "bits" class, intended to act like a array of bits. This was my initial idea, basically just overriding the string representation to display the bitmask (so far): class bits(long): def __str__ (self): s = '' if self == 0L: s += '-'

How to use Python well?

2011-02-16 Thread snorble
I use Python a lot, but not well. I usually start by writing a small script, no classes or modules. Then I add more content to the loops, and repeat. It's a bit of a trial and error learning phase, making sure I'm using the third party modules correctly, and so on. I end up with a working script, b

Packaging question

2010-07-01 Thread snorble
My question is, why do the modules bar and foo show up in mypack's dir()? I intend for Foo (the class foo.Foo) and Bar (the class bar.Bar) to be there, but was not sure about the modules foo and bar. My big picture intention is to create smaller modules, but more of them (like I am used to doing w