1 """A client-side library for the Entrez databases at NCBI (DEPRECATED).
2
3 Please use Bio.Entrez instead.
4 """
5 import re
6 import warnings
7 warnings.warn("Bio.UEtils has been deprecated. Please use Bio.Entrez instead,"\
8 " which is described in the tutorial.", DeprecationWarning)
9
10 __version__ = "1.0p1"
11 __authors__ = ["Andrew Dalke, Dalke Scientific Software"]
12
13 import Datatypes
14 from Datatypes import DateRange, WithinNDays, EUtilsError, \
15 EUtilsSearchError
16
17 from Config import databases
18
20 if isinstance(ids, str):
21 ids = [ids]
22 db = db.lower()
23 if db not in databases:
24 raise TypeError("Unknown database: %s" % (db,))
25 return Datatypes.DBIds(db, ids)
26
27 PLUS_STRAND = 1
28 MINUS_STRAND = 2
29