Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Python Help


reaper4334's Avatar
Member
0 0

Okay, basically I'm wondering what I could use for like a database on Python. I'm doing this mainly for learning purposes, but basically I'm making a "diary" program. It will simply take info like "Title of entry" and "Main Content", but I'm not sure how I could store this information.

I'm using Python, so I figured that it'd be better to ask for a database that's useful with Python, rather than ask for some good database methods, then try to figure out how to use them with Python.

So yeah, any ideas?

Thanks, Reaper


richohealey's Avatar
Python Ninja
0 0

there is a public mySQL module for python somewhere.

I coded one, but it's closed source, sorry.

[[edit]] an elaborate system of lockfiles is almost faster if you're only going to have at most 5 or 6 instances of the script running at any given time.


reaper4334's Avatar
Member
0 0

I was hoping to have it with no web involvement, like a fiel type I could use or something?

Thanks, Reaper


richohealey's Avatar
Python Ninja
0 0

what?

you can run an sql server on your box.

And if you're only ever going to have one instance of the application running just create some files for it. just call them whatever.dat, you can pick any extension you want. If you're going to have more than one instance, you need to work out how long each one will have the files open for, if it's only a fraction of a second, then use lockfiles.


reaper4334's Avatar
Member
0 0

richohealey wrote:

you can run an sql server on your box.

With WindowsXP ?

and I was looking for something more… portable, for use like on my usb stick or something…

Thanks, Reaper


richohealey's Avatar
Python Ninja
0 0

yeah, use files.

MSN me


reaper4334's Avatar
Member
0 0

Thanks guys… I see what you're saying, but is there not a filetype I could use or something that would make it all easy, basically, I just want a database-file type thing..

Thanks, Reaper