Re: MySQL with Python

2012-10-15 Thread Anurag Chourasia
Don't worry about what book you have (or don't have) in your Library..And let this not dictate your technology stack. PostgreSQL is one of the popular choice and you will never be short of documentation...Just Google and you will find lot of helpful tutorials... Regards, Anurag On Mon, Oct 1

Re: MySQL with Python

2012-10-15 Thread Anurag Chourasia
Yes you can. There are libraries available in python to make this happen. Read this for a starter http://dev.mysql.com/usingmysql/python/ Regards, Anurag On Oct 15, 2012 10:53 AM, "রুদ্র ব্যাণার্জী" wrote: > Dear friends, > I am starting a project of creating a database using mySQL(my first >

Re: webapp development in pure python

2011-10-25 Thread Anurag Chourasia
Have you considered Django ? http://www.djangoproject.com/ Regards, Anurag On Tue, Oct 25, 2011 at 7:20 PM, Laszlo Nagy wrote: > > Hi, > > Anyone knows a framework for webapp development? I'm not talking about > javascript/html compilers and ajax frameworks. I

Re: Connecting to remote Oracle db via Python

2011-02-17 Thread Anurag Chourasia
Please let us know how it goes. Regards, Anurag On Thu, Feb 17, 2011 at 8:28 PM, Anurag Chourasia wrote: > Try this please and it should work. > > Connection_String = > 'scott/tiger@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.5.1.12)(PORT=1521)))(CONNECT_DATA=(SID=P

Re: Connecting to remote Oracle db via Python

2011-02-17 Thread Anurag Chourasia
u, Feb 17, 2011 at 8:18 PM, Paul Statham wrote: > Doesn't seem to work > > -Original Message- > From: Anurag Chourasia [mailto:anurag.choura...@gmail.com] > Sent: 17 February 2011 14:41 > To: Paul Statham > Cc: python-list@python.org > Subject: Re: Connecting to r

Re: Connecting to remote Oracle db via Python

2011-02-17 Thread Anurag Chourasia
Could you try by using a connecting string in the standard format as below? Connection_String = 'scott/tiger@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.5.1.12(PORT=1521)))(CONNECT_DATA=(SID=PR10)))' db = cx_Oracle.connect(Connection_String) Regards, Anurag On Thu, Feb 17, 2011 a

Re: FTP problem

2011-01-14 Thread Anurag Chourasia
Please make the below change to get past this problem Change *ftp.*indexftp.barcap.com to indexftp.barcap.com Regards, Anurag On Fri, Jan 14, 2011 at 5:25 PM, Thomas Philips wrote: > I'm using ftplib for the first time, and am having trouble getting it > to work. I type > > >>> from ftplib

Re: Digitally Signing a XML Document (using SHA1+RSA or SHA1+DSA)

2010-12-28 Thread Anurag Chourasia
something else out there that could help meet my requirement. Regards, Anurag On Tue, Dec 28, 2010 at 6:36 AM, Adam Tauno Williams wrote: > On Tue, 2010-12-28 at 03:25 +0530, Anurag Chourasia wrote: > > Hi All, > > > I have a requirement to digitally sign a XML Document using SH

Digitally Signing a XML Document (using SHA1+RSA or SHA1+DSA)

2010-12-27 Thread Anurag Chourasia
Hi All, I have a requirement to digitally sign a XML Document using SHA1+RSA or SHA1+DSA Could someone give me a lead on a library that I can use to fulfill this requirement? The XML Document has values such as -BEGIN RSA PRIVATE KEY- MIIBOgIBAAJBANWzHfF5Bppe4JKlfZDqFUpNLrwNQqguw76g/jme

Re: Python programming

2010-12-22 Thread Anurag Chourasia
Here you go. $ python Python 2.5.2 (r252:60911, Dec 2 2008, 09:26:14) [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> A=[2,6,5] >>> if 5 in A: ... print 'Yes' ... else: ... print 'No' ... Yes

Re: using python ftp

2010-12-22 Thread Anurag Chourasia
Hi Matt, I have a snippet to "upload" files (that match a particular search pattern) to a remote server. Variable names are self explanatory. You could tweak this a little to "download" files instead. from ftplib import FTP ftp = FTP(hostname) ftp.login(user_id,passwd) ftp.cwd(remote_directory)

Re: Sending XML to a WEB Service and Getting Response Back

2010-12-21 Thread Anurag Chourasia
Thanks for the response all. I tried exploring suds (which seems to be the current) and i hit problems right away. I will now try urllib or httplib. I have asked for help in the suds forum. Hope somebody replies. When i try to create a client, the error is as follows. >>> from suds.client impor

Re: **** httplib.InvalidURL: nonnumeric port ****

2010-12-20 Thread Anurag Chourasia
port: '8041/DteEnLinea/ws/EnvioGuia.jws' Do i need to use some other library to be able to send XML Data (and get a response back) to this Kind of Web Service address i.e. http://joule:8041/DteEnLinea/ws/EnvioGuia.jws ? Regards, Anurag On Tue, Dec 21, 2010 at 12:42 AM, Kev Dwyer wrote

Sending XML to a WEB Service and Getting Response Back

2010-12-20 Thread Anurag Chourasia
Dear Python Mates, I have a requirement to send a XML Data to a WEB Service whose URL is of the form http://joule:8041/DteEnLinea/ws/EnvioGuia.jws I also have to read back the response returned as a result of sending this data to this WebService. This web service implements the following operati

**** httplib.InvalidURL: nonnumeric port ****

2010-12-20 Thread Anurag Chourasia
All, When i try to open a URL of the form http://joule:8041/DteEnLinea/ws/EnvioGuia.jws, I am getting an error as below complaining for some non-numeric port. wm (wmosds) [zibal] - /u01/home/apli/wm/app/gdd :>python Python 2.4.1 (#2, May 30 2005, 09:40:30) [C] on aix5 Type "help", "copyright", "c

***locale.Error: unsupported locale setting***

2010-12-09 Thread Anurag Chourasia
Hi All, When i try to set a locale manually, i get this error. >>> import locale >>> locale.setlocale(locale.LC_ALL, 'es_cl.iso88591') Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/locale.py", line 531, in setlocale return _setlocale(category, loca

Python make fails with error "Fatal Python error: Interpreter not initialized (version mismatch?)"

2010-11-27 Thread Anurag Chourasia
Hi All, During the make step of python, I am encountering a weird error. This is on AIX 5.3 using gcc as the compiler. My configuration options are as follows ./configure --enable-shared --disable-ipv6 --with-gcc=gcc CPPFLAGS="-I /opt/freeware/include -I /opt/freeware/include/readline -I /opt/fr

Re: AIX 5.3 - Enabling Shared Library Support Vs Extensions

2010-11-27 Thread Anurag Chourasia
ov 25, 2010 at 3:41 PM, Stefan Krah wrote: > Anurag Chourasia wrote: > > When I configure python to enable shared libraries, none of the > extensions are getting built during the make step due to this error. > > > > building 'cStringIO' extension > > gcc -pth

AIX 5.3 - Enabling Shared Library Support Vs Extensions

2010-11-25 Thread Anurag Chourasia
All, When I configure python to enable shared libraries, none of the extensions are getting built during the make step due to this error. building 'cStringIO' extension gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/u01/home/apli/wm/GDD/Python-2.

collect2: library libpython2.6 not found while building extensions (--enable-shared)

2010-11-24 Thread Anurag Chourasia
All, When I configure python to enable shared libraries, none of the extensions are getting built during the make step due to this error. building 'cStringIO' extension gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/u01/home/apli/wm/GDD/Python-2.

Error Starting Python(Django) App using Apache+Mod_Wsgi

2010-11-22 Thread Anurag Chourasia
All, I have a problem in starting my Python(Django) App using Apache and Mod_Wsgi I am using Django 1.2.3 and Python 2.6.6 running on Apache 2.2.17 with Mod_Wsgi 3.3 When I try to access the app from Web Browser, I am getting these errors. [Mon Nov 22 09:45:25 2010] [notice] Apache/2.2.17 (Unix