A solid cylinder 30mm in diameter and 20mm tall with a coaxial through-hole 10mm in diameter.
import cadquery as cq result = ( cq.Workplane("XY") .cylinder(20, 15) .faces(">Z").workplane() .hole(10) )