¿como importar modulos .py locales y funciones a el archivo .html?

hola buenas tardes requiero ayuda,estoy tratando de importar unos modulos que tengo dentro de la misma carpeta del index.html y aun no he podido por favor si alguien me puede dar un ejemplo claro de como hacerlo:
ejemplo:
carpeta local:
-index.htm
-prueba.py
-def a().

Hola @tamartinz - I hope I’ve understood your question correctly: you want a simple example importing a module in the same folder as your index.html file.

If so, then I think the example from the Getting Started page should help, in the section Local Modules:

Also you will need to serve the files with a server. Anything local will do, such as running this from the same folder as your code/HTML:

`python3 -m http.server 8000`

Hope that helps!