Extracting parametric equations from STEP file

You can use aocxchange:

The aoc-xchange project provides a Python package named aocxchange to
read and write from/to IGES, STEP, BREP, and STL files using
PythonOCC.

You can install it using pip install aocxchange

Here is a list of dependencies

  1. OCC: Install it using conda install -c https://conda.anaconda.org/dlr-sc pythonocc-core or the wheels from here
  2. aocutils: Install it using pip install aocutils –upgrade
  3. wx: Install it using pip install -U wxPython

Read more here: Source link