Books Database
John Hunter
jdhunter at ace.bsd.uchicago.edu
Mon Mar 3 10:03:52 EST 2003
>>>>> "Eliran" == Eliran Gonen <eg at rootshell.be> writes:
Eliran> Hello ! I want to ask you what do you think is the best
Eliran> way to keep a list of books with other data (such as year
Eliran> and author) in a file ?
You have a lot of choices. One good one is to use bibtex, which is
widely used for bibliographic data, supports every imaginable category
(article, book, dissertation, unpublished, proceedings, etc....) and
there are nice tools for automatically converting it to other formats
(eg html, pdf, postscript) and searching it (see, eg, bibtool, bibtex2html)
Here is an example book
@Book{Enoka2002,
author = {Enoka, R.M.},
title = {Neuromechanics of Human Movement},
publisher = {Human Kinetics},
year = 2002,
address = {Champaign, IL}
}
See more examples with python articles, etc, at
http://www.math.utah.edu/pub/tex/bib/python.html
Alternatives: you could use an XML format, which is readily parsed in
python.
You could roll your own as a programming exercise...
John Hunter
More information about the Python-list
mailing list