Create Revolution by bounding planes

 1from salome.shaper import model
 2
 3model.begin()
 4partSet = model.moduleDocument()
 5Part_1 = model.addPart(partSet)
 6Part_1_doc = Part_1.document()
 7Sketch_1 = model.addSketch(Part_1_doc, model.standardPlane("XOY"))
 8SketchCircle_1 = Sketch_1.addCircle(20, 20, 10)
 9model.do()
10Revolution_1 = model.addRevolution(Part_1_doc,
11                                   [model.selection("COMPOUND", "Sketch_1")],
12                                   model.selection("EDGE", "PartSet/OY"),
13                                   model.selection("FACE", "PartSet/XOY"),
14                                   0,
15                                   model.selection("FACE", "PartSet/YOZ"),
16                                   0)
17model.do()
18model.end()

Download this script