Turning a Flask app into a Plugin

I have a Flask (Python) app that I created using a couple of different Python libraries. I think it would be much more useful to people as an Audacity plugin, but I am having a really hard time finding guidance on how to do that! I’m a web developer - I really don’t know anything about plugins. I would be incredibly grateful for any help you can provide. I literally do not know even the first step of making this happen, and have been searching and reading stuff all day looking for something that would help me at least grasp what the process is!

Audacity doesn’t use or support Python plug-ins. Supported plug-in types are listed here: Missing features - Audacity Support

What does it do?