Importing

You can import the simplefix module maintaining its internal structure, or you can import some or all bindings directly.

1
2
3
import simplefix

message = simplefix.FixMessage()

Or

1
2
3
from simplefix import *

message = FixMessage()

Note that the “import *” form is explicitly supported, with the exposed namespace explicitly managed to contain only the public features of the package.

All the example code in this document will use the first form, which is recommended.