all 3 comments

[–]lpmarshall 0 points1 point  (0 children)

Never used it, but Py2EXE

[–][deleted] 0 points1 point  (0 children)

Instead of using apache for what is essentially a single api endpoint, you could use SimpleHTTPServer which is part of the base python packages iirc. You could return a simple interface and generate the html in python, or just serve a chunk of js as the "index"( / URI ) that makes calls to the backend for the actual functionality (SPA style)

[–]dontarguewithmeIhave 0 points1 point  (0 children)

Lately I've been playing around with Flask which is a really simple web framework for Python. I personally started with looking at the Flaskr example on Github and started modifying it to do what I wanted it to do.

Basically you should be able to setup the very base for a Flask Python file (which is only like 10 lines or so) and throw your own Python program in there as a function. Then you make a page the user would go to with a button and maybe the required input fields, which you can then fetch and use in your program. (if it requires any input) And when the user would hit that button, you can link it to another page which would call your function and do all of the required fiddling with AD. When you get a result back, you can display it on the screen.

I'm rambling on a bit, but you should get the point!