Installing

The STEP Python API is distributed as a Python wheel, which you can install with pip. Simply download the wheel file and run the following.

> pip install steptools-<version-info>.whl

Some operations require a STEP Tools license key. You can request a key with the following form:

https://www.steptools.com/register/

The form needs the hostid of your machine, which you can find with the following snippet of python code. You can find more information about keys and instructions for installing them here.

from steptools import step
print ("Hostid: ", step.key_hostid())

----------
Hostid:  123abcde

Import Module

The interface is given by the step module. This defines the high level API classes and the low level data classes. In your code, simply import this from the steptools package as shown:

from steptools import step

For more concise programming, you may also want to alias the high-level API classes as follows:

from steptools.step import AptAPI as apt
from steptools.step import ToleranceAPI as tol