I am new to SVG and want to have a curve with pointed ends like the following image in svg code (using a python svg library):
Is there any way to achieve this using a bezier curve, or is there a possibility to draw a normal bezier curve and modify the ends with css to become pointed? I would appreciate a code example.

You can just use a closed path with two curves, one slightly "bulgier" than the other:
In this, the first curve is
M 0 60 Q 50 40 100 60, i.e. a quadratic curve from 0,60 to 100,600 over the control point 50,40, and the second curve is the... 100 60 Q 50 45 0 60part, defining a curve starting at "wherever we already were", i.e. 100,60 (the end point of our first curve), ending at 0,60 (the start point of our first curve) and controlled by 50,45The
Zis technically not necessary here, but since this is a closed path, we might as well explicitly encode that this is a closed path.And if you want "tapered ends" then you can use two cubic curves instead, with the control points near the end points.
Of course, this is only an approximation, but it'll get you pretty much what you need in almost all "just a bow" cases. And for the cases where this doesn't suffice, solve those on their own.