Python
•Python “class” ~ Oracle “type”
•Python DB API for direct access
•DBObject for ASTRO-WISE access
•from astro.database.DBMain import DBObject, persistent

class Source(DBObject):
name = persistent(‘The name’, str, ‘Nameless’)
ra = persistent(‘R.A.’, float, 0.0)
dec = persistent(‘Declination’, float, 0.0) •The class is mapped to a “TYPE”, a “TABLE” and a “VIEW”!