Thanks for the useful question!
I believe that the basic way people do this is with rasterio.rasterize: Vector Features — rasterio 1.4dev documentation
Geocube provides a higher-level API: Example - Rasterizing Point Data — geocube 0.4.0 documentation