You can publish events by using SDK for Python to call the required API operation.

SDK for Python provides the following API operation.