5.2 Draco Objects

Most of the Draco standard library is available through a collection of persistent global objects. These objects are created and kept up to date by Draco. Their global instances are stored under a well defined name in the module that defines the object. To use the object you must use this instance; you should never instantiate a global object yourself.

For example, the Request object is defined in the module draco.request. The global instance of this class is available as the request attribute of this module. The following code fragment illustrates this:

from draco.request import request

# use request


Subsections