database

Zsolt Hever never at matavnet.hu
Sun Jul 11 14:26:05 EDT 1999


> From: dzsi <granadam at mail.datanet.hu>
> To: python-list at python.org
> Subject: database
> Date: 1999. július 11. 0:11
> 
> hi,
> 
> i am new to python.......
> 
> i have a database (comma separated text), and i would like to get some
data
> out of it based on some query. let's say there are seven fields, f1...f7,
> and i am searching for entries in f1, and want to display f1..f7  for the
> field that matches the query. how do i go about doing that?

By the help with the following you can convert your text database
into an SQL table.
Use  Gadfly: SQL Relational Database written in Python, in this case there
is no need to configure a server.
Search for Database / Gadfly on the page <URL:
http://www.python.org/download/Contributed.html >


For converting your text database into SQL table:

You can work on it by module string / function split() /. 
More about it in the standard documentation.

But there are CVS modules. 
The addresses were mentioned on this mailing lists:
<URL: http://eh.org/~laurie/comp/python/csv/ >
<URL: http://yi.com/home/TrattLaurence/comp/python/csv/ >
ftp://ftp.visi.com/users/mdc/csvsplit.py


> also, can i access db databases, or any other common pc type databases
with

dbf
<URL: http://www.stud.ifi.uio.no/~larsga/download/python/ >
or check for it at the < http://www.python.org/ > website.

> perl scripts only on a unix system? without any server configuration,
> assuming python is installed. so far, the comma separated text file is
the
> only way i could figure out.

I hope this is what you are searching for.

Zsolt

> thanks,
> 
> adam.
> -- 
> http://www.python.org/mailman/listinfo/python-list








More information about the Python-list mailing list