Re: pandas read_csv

2018-11-09 Thread Venkatesh Adiga
Sharan I had similar issue of reading different column sized csv file... Instead of using pandas I used csv reader which handles with no error... Regards Venkat On Fri, 9 Nov 2018, 8:28 pm Sharan Basappa, wrote: > are there any requirements about the format of the CSV file when using > read_csv

Re: Import issue in python packages

2018-08-11 Thread Venkatesh Adiga
Thanks Peter... What are the ways to update outside of the python program without defining environment variable for source code path Otherwise can I do it once in during initialization of sys.path update? On Fri, 10 Aug 2018, 10:56 pm Peter Otten, <__pete...@web.de> wrote: > Venkat

Import issue in python packages

2018-08-10 Thread Venkatesh Adiga
Hi All, I am facing issue with python package import. In my project, I have many directories with different python classes defined within them. I am trying to import those classes in another python program, but not able to import them. Here are my directories and file structures. src/platform/op

Unable to redirect the subprocess CMD.exe to txt file. Please help !!!

2013-09-03 Thread Venkatesh
Hello comp.lang.python Group, I am trying to invoke a subprocess in Python as below import sys import time import os import subprocess DETACHED_PROCESS = 0x0008 path = r'C:\Windows\System32\cmd.exe /k ping www.google.com -n 4 >> temp.txt' p = subprocess.Popen("%s"%(path), stdout = subproces

Help

2011-04-13 Thread Venkatesh Sanganal
e have gone through many forums... but > didnt get the help... > > > Thanking You, Regards * Venkatesh Sanganal Asst Manager(Design), Spectrum Infotech Pvt Ltd, (Larsen & Toubro Ltd ) 145/2, Komarla Solitaire, Old Madras Rd, CV Raman nagar, Nagavarapalya,

writing a message to the terminal in a daemon process

2008-03-23 Thread bharath venkatesh
hi, i created a daemon process using the following code import os import sys # Default daemon parameters. # File mode creation mask of the daemon. UMASK = 0 # Default working directory for the daemon. WORKDIR = "/" # Default maximum for the number of available file descriptors. MAXFD = 10

Re: automatically doing some cleaning-up by the process when the systems shuts down

2008-03-19 Thread bharath venkatesh
handling SIGTERM allowed me to do cleaning up while the system shuts down but as i mentioned previously how can my process know if the system was not shut down properly previously On Wed, Mar 19, 2008 at 12:36 PM, bharath venkatesh < [EMAIL PROTECTED]> wrote: > hi , > th

Re: automatically doing some cleaning-up by the process when the systems shuts down

2008-03-19 Thread bharath venkatesh
not shut down properly previously eg a power failure .. so that my program can do necessary steps if cleaning up is not done during its last termination On Wed, Mar 19, 2008 at 8:25 AM, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > En Tue, 18 Mar 2008 09:51:03 -0300, bharath

automatically doing some cleaning-up by the process when the systems shuts down

2008-03-18 Thread bharath venkatesh
hi .. my programs runs as daemon and it does some logging .. when system shuts down .. which may be done manually . i want my process do some cleaning up automatically such as writing in to the log file when the process terminats before the system shuts down

http server performance

2008-03-04 Thread bharath venkatesh
hi, my project involves lot of I/O over the network.. one part of my project involves a server(http) which is listening on the port for many client . this sever fetches an image from the web and and send it to clients and many clients will request the server concurrently .. to imple

refreshing the cache time of a key

2008-02-27 Thread bharath venkatesh
hi .. is it possible to refresh the cache time of a key with out having to retrieving the cached data and storing it back in memcache .. for example if a data is cached for 1 hour and at the 50th minute from the time this data has been cached i want to store it in the cache for 1 more hou

macro in python

2008-02-27 Thread bharath venkatesh
hi .. how to create macro in python for set of instruction that is done frequently but too less in number to ignore the overhead of function call ... -- http://mail.python.org/mailman/listinfo/python-list

executing a python program by specifying only its name in terminal or command line

2008-02-26 Thread bharath venkatesh
hi, i wanna run a python program by specifying only its name ex prog with the arguments in the terminal or command line instead of specifying python prog in the terminal to run the program not even specifying the it with .py extension .. for example i want to run the python program named pro

running a daemon in python

2008-02-25 Thread bharath venkatesh
hi .. hi i want a program to start running as daemon in background .. my program is server listen to a client ... so i want to make that program run as daemon .. when i execute the program the program for ex server.py it should automatically start running as daemon in the background even if

configuration and limitation of memcache..

2008-02-20 Thread bharath venkatesh
hi, In my project i need to store lot n lots of images in my cache and retrieve it very frequently.. currently i am using memcache to store and retreive images from cache... i will be using 4 GB ram as cache and each image won't exceed 1 mb for sure ...and i came across that memcache will be as

Re: threaded http server

2008-02-20 Thread bharath venkatesh
> bharath venkatesh wrote: > > hi, > > will this twisted,turbo gear etc help me to create a http server that > can > > serve multiple clients concurrently > > and also the http server which i want to create in my project will not > be > > doing any IO (it

Re: threaded http server

2008-02-20 Thread bharath venkatesh
basically i want to serve many clients concurrently in fast n efficient manner On Feb 20, 2008 5:51 AM, Christian Heimes <[EMAIL PROTECTED]> wrote: > bharath venkatesh wrote: > > hi > >i want to create fast n efficient http server which serve multiple > > client conc

threaded http server

2008-02-20 Thread bharath venkatesh
hi i want to create fast n efficient http server which serve multiple client concurrently .. so i thought of threading the http server using class HTTPServer(SocketServer.ThreadingMixIn, BaseHTTPServer.HTTPServer): pass: as this creates an threaded version of http server ... but i re