Re: [Tutor] encryption for files/passwords

2007-05-19 Thread Rohan Deshpande
Thanks, but I want to be able to encrypt *files* with passwords in them.. the passwords being the sensitive data :) Any other ideas? On 5/19/07, Ben Sherman <[EMAIL PROTECTED]> wrote: > On 5/18/07, Rohan Deshpande <[EMAIL PROTECTED]> wrote: > > > Hey all, > > &

[Tutor] encryption for files/passwords

2007-05-18 Thread Rohan Deshpande
Hey all, I am writing a small python script to maintain some passwords and identity info. All the data is in an external file. what is the best way to encrypt/decrypt this file's data using a key? I am new to encryption methods let alone how to do it in python. I had a look at python-crypto, ez

[Tutor] when to introduce classes

2007-05-06 Thread Rohan Deshpande
Hi All, I am wondering when is a good time to introduce classes into a python program. Is there any rule of thumb as to when they are necessary, and when it is okay to just stick with regular functions and variables? I.e. you have self defined methods and data working on the same type of task? T

Re: [Tutor] priting keys and its values of a dictionary in a single row

2007-04-28 Thread Rohan Deshpande
Or, get rid of the extra variable and do: for i in m.items(): print i[0] + ',' + ",".join(i[1]) On 4/27/07, Bill Burns <[EMAIL PROTECTED]> wrote: Srinivas Iyyer wrote: > Dear group, > > I have a dictionary (huge) and there are 19K keys for > this dictionary. The values for the could be a max

Re: [Tutor] 100 Programs?

2007-04-25 Thread Rohan Deshpande
Well there's always pythonchallenge.com, but it's both a riddle and a programming exercise. And, they're not entirely python specific (except for a couple), but it's a start. -Rohan On 4/25/07, Alex Dering <[EMAIL PROTECTED]> wrote: Can anyone recommend a list of progressively harder Python p

Re: [Tutor] screen scraping without the request

2007-04-22 Thread Rohan Deshpande
Hi Luke/Kent, Assuming I can find the POST, is mechanize the way to go to mimic browser functionality? or do i need other/extra libraries? Thanks, Rohan On 4/22/07, Luke Paireepinart <[EMAIL PROTECTED]> wrote: Kent Johnson wrote: > Rohan Deshpande wrote: > >> Hi All, >>

[Tutor] screen scraping without the request

2007-04-22 Thread Rohan Deshpande
Hi All, the previous thread on screen scraping got me thinking of starting a similar project. However, the problem is I have no idea what the POST request is as there is no escape string after the URL when the resulting page comes up. I essentially need to pull the HTML from a page that is gene

[Tutor] IDE / development environment

2007-04-22 Thread Rohan Deshpande
Hey guys, I've been using Linux for a long time but this is my first foray into app development. Therefore, I have never had to properly set up a development environment for myself. I am partial to vim as an editor, and have configured it for the python templating language i'm using with Pylons

[Tutor] My Python project - an update

2007-03-28 Thread Rohan Deshpande
Out of curiousity, why md5? Hasn't it been cracked already? Would sha1 or 2sum be a better alternative? I'm a newbie to this so it's just a question. -Rohan On 3/23/07, Dave S <[EMAIL PROTECTED]> wrote: Just to say thank you. Over the last few months I have been asking a lot of dumb questi

[Tutor] web app approach

2007-03-28 Thread Rohan Deshpande
Hi everyone, In terms of building a web application, is the preferred method of development to develop the application as a console app and then migrate it to a web app? Also, in my readings people have been saying that python frameworks are numerous and not as useful as they seem, and that WSGI