We describe a new library (AST) which provides a flexible high-level programming interface for handling world coordinate systems in astronomy and for producing graphical output. It includes, but is not limited to, a wide range of celestial coordinate systems and supports the Digitised Sky Survey plate solutions and the draft FITS WCS proposals amongst other possibilities. AST is portable and environment independent.