Package Bio :: Package Medline
[hide private]
[frames] | no frames]

Package Medline

source code

Code to work with Medline from the NCBI.

Classes:
Record           A dictionary holding Medline data.

Functions:
read             Reads one Medline record
parse            Allows you to iterate over a bunch of Medline records

Classes [hide private]
  Record
A dictionary holding information from a Medline record.
Functions [hide private]
 
parse(handle)
Read Medline records one by one from the handle.
source code
 
read(handle)
Read a single Medline record from the handle.
source code
Variables [hide private]
  __package__ = 'Bio.Medline'
Function Details [hide private]

parse(handle)

source code 
Read Medline records one by one from the handle.

The handle is either is a Medline file, a file-like object, or a list
of lines describing one or more Medline records.

Typical usage:

    from Bio import Medline
    with open("mymedlinefile") as handle:
        records = Medline.parse(handle)
        for record in record:
            print(record['TI'])

read(handle)

source code 
Read a single Medline record from the handle.

The handle is either is a Medline file, a file-like object, or a list
of lines describing a Medline record.

Typical usage:

    from Bio import Medline
    with open("mymedlinefile") as handle:
        record = Medline.read(handle)
        print(record['TI'])