Auto-typer in python or typescript -- 2

Job ID: 36550569

Budget: $16 – $17 USD

I need an automatic typer written in python or typescript.
The script must read a file (ps1, py, txt, JSON, js) and automatically write it by exactly replicating the file (spaces, tabs, enters) and must be able to regulate the speed of the typer.

Important: The script will be used for live code sessions in Visual Studio Code, therefore the script must be able to exactly replicate the code (spaces and tabs) in the code editor since visual studio code automatically adds spaces and tabs.

The script must receive as a parameter the path where the file is located and replicate it where the mouse cursor is.

The script will be executed in Vidual Studio code on MacOS Ventura

Unfortunately, this is a fixed price, with no option to increase the budget.