OSM2LES is an open-source Python-based code extracting and rasterizing building footprint from OpenStreetMap for the underlying geometry required by some LES applications such as PALM. It takes longitude/latitude coordinates enclosing a bounding box, desired resolution, default building height, rotation angle as input and outputs the rastered urban layouts in plain text ASCII form. In addition, OSM2LES calculates key geometric parameters such as density, street connectivity and entropy of facet to characterize the rastered computational domain, which proved to be effectively control the urban flow.
More information: https://zenodo.org/record/6566346#.Y1UmwOyA5qt and https://pypi.org/project/OSM2LES/