Retrieve schema for my types in database programatically?

Hi, do you guys know if there is any way to retrieve all my database schema through API?

I mean, when I turn on my Database API I do have access to the api, but I’d like to write wrapper with python for example that could give me programatic access to the database.

It is not possible to come up with generic solution if I can not retrieve schema.