first
pip install arabic-reshaper
second
import arabic_reshaper from bidi.algorithm import get_display
و استمتع ان شاء الله