Skip to main content

The best `import quine`

Project description

python3? More like cat

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 the "in Python you just import X" meme should work for quines.

xkcd #353: Python

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyquine-0.3.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyquine-0.3-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file pyquine-0.3.tar.gz.

File metadata

  • Download URL: pyquine-0.3.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for pyquine-0.3.tar.gz
Algorithm Hash digest
SHA256 b38b114d0108fb5207aeaf357523161a826ec747e33a68e35d8733edd80c623a
MD5 c5618f64b846f23274afc91fed659007
BLAKE2b-256 56515382ae0057a712af7823496cad26420f660ea0478907d51b31411fa062f4

See more details on using hashes here.

File details

Details for the file pyquine-0.3-py3-none-any.whl.

File metadata

  • Download URL: pyquine-0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for pyquine-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1bf029b2fc46de7f5c3b3768aa17cab722ef7d820e557400b9cb64377b6f0b22
MD5 7cc738beba1424fc0b99d0a818071654
BLAKE2b-256 9311a3ae711df7c10a990960b86abb086a4fac235d17b8ad9da9038f8b6f0cbc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page