Is Python a good choice for a data logger?

2015-12-08 Thread villascape
Let's say there are multiple data-loggers (PCs probably running Linux) behind various firewalls which communicate to other devices on their respective LAN via a proprietary protocol using UDP/IP to collect data. On perhaps a sixty second periodic basis, the data-loggers will send the data to a

Re: Understanding Python from a PHP coder's perspective

2015-12-07 Thread villascape
Based on your responses, it is my understanding that process-state might offer some efficiency benefits, but it is typically not a driving factor. If I misunderstand, please advise. Thanks -- https://mail.python.org/mailman/listinfo/python-list

Re: Understanding Python from a PHP coder's perspective

2015-12-07 Thread villascape
Ah, I was confused that process state somehow allowed Python to support per-connection state without using sessions (which lead me to ask about websockets). I guess Python could do it without storing the session ID in a file or database and instead in process state (i.e. application memory, ri

Re: Understanding Python from a PHP coder's perspective

2015-12-07 Thread villascape
Thank you all! Okay, the concept of a WSGI along with a framework provides insight on my main questions. In regards to Chris's statement: "It openly and honestly does NOT reset its state between page requests" With PHP, I have sessions to preserve state. I have a feeling that this is signifi

Re: Understanding Python from a PHP coder's perspective

2015-12-07 Thread villascape
Right after I sent my first post, I realized I did not include the following: Per https://wiki.python.org/moin/PythonVsPhp, "The vast majority of Python Web applications are run in a separate process. This has some important implications." >From a PHP background, guess I just don't understand t

Understanding Python from a PHP coder's perspective

2015-12-07 Thread villascape
Hello all! Just started getting into Python, and am very excited about the prospect. I am struggling on some general concepts. My past experience with server-side code is mostly limited to PHP and websites. I have some file called "whatever.php", the browser accesses it, and PHP parses it an