Slam using rplidar A1 in python

can anyone help me with slam, I am using rplidar a1 with raspberry pi 4 I am trying this completely in python without using ros and trying to get some code references. can anyone help me?

thank you in advance

There’s some user generated code online when you search. Ex:

… and more