I have a simple script that has a dependency on dnspython for parsing zone files. I would like to distribute this script as a single .py that users can run just so long as
The simplest way is just to put your python script named __main__.py with pure Python dependencies in a zip archive, example.
__main__.py
Otherwise PyInstaller could be used to produce a stand-alone executable.