When imported, pyquine
prints the source of the main module.
There's the standard:
import quine
But pyquine
supports any source file that manages to import it:
#!/usr/bin/env python3
"""This is my quine. It prints its own source."""
import quine
It's cheating, but that's the point. Because PyPI deserves a good quine variation of the "import X" meme.