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.
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pyquine-0.3-py3-none-any.whl
(2.6 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b38b114d0108fb5207aeaf357523161a826ec747e33a68e35d8733edd80c623a
|
|
| MD5 |
c5618f64b846f23274afc91fed659007
|
|
| BLAKE2b-256 |
56515382ae0057a712af7823496cad26420f660ea0478907d51b31411fa062f4
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bf029b2fc46de7f5c3b3768aa17cab722ef7d820e557400b9cb64377b6f0b22
|
|
| MD5 |
7cc738beba1424fc0b99d0a818071654
|
|
| BLAKE2b-256 |
9311a3ae711df7c10a990960b86abb086a4fac235d17b8ad9da9038f8b6f0cbc
|