In line with QEP#227, a new QgsGeometry.from_shapely()
method for generating a QgsGeometry object from a shapely object has been provided to improve integration with the shapely geometry library, while keeping it an optional dependency.
This feature was developed by Till Frankenbach