Skip to main content

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

Metadata

Release files for pyquine 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyquine 0.3
File Size Uploaded
pyquine-0.3.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyquine 0.3
File Interpreter ABI Platform
pyquine-0.3-py3-none-any.whl Python 3 none any Details

Total release size: 5.0 kB

Release files / pyquine-0.3.tar.gz

Download URL pyquine-0.3.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b38b114d0108fb5207aeaf357523161a826ec747e33a68e35d8733edd80c623a
BLAKE2b-256 checksum
How to use checksums
56515382ae0057a712af7823496cad26420f660ea0478907d51b31411fa062f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / pyquine-0.3-py3-none-any.whl

Download URL pyquine-0.3-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1bf029b2fc46de7f5c3b3768aa17cab722ef7d820e557400b9cb64377b6f0b22
BLAKE2b-256 checksum
How to use checksums
9311a3ae711df7c10a990960b86abb086a4fac235d17b8ad9da9038f8b6f0cbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.3 This release

2 release files

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page