Fancifypy
Are you tired of boring Python code? Or do you want to make a real impression with your next PR? Look no further! Fancifypy will transform any plain and boring Python code into a feast for the eyes.
pipx run fancifypy code "print(range(5))" --seed 42
pᵣⁱⁿt ( ᵣ𝙖𝕟ᵍ𝐞 ( 5 ) )
Alternatively, you can fancify files directly
pipx run fancifypy path script.py
and defancified files (if you for some reason want boring files again)
pipx run fancifypy boring script.py
Note that fancifypy leaves somewhat odd whitespaces, so we reccommend using Ruff or Black afterwards to format the code.
Is this safe?
Fancifypy checks that the abstract syntax tree doesn't change after fancifying, so this is 100% safe (for CPython). This means that any code that imported your code before fancifying will also work with it after fancifying with no modifications.
How does this work?
When CPython looks up identifiers, it first normalizes the code using "NFKC" normalization. This program detects identifiers in a Python file and replaces all character with a different character that normalizes to it. So for Python, there is no change in the files.
Metadata
Release files for fancifypy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| fancifypy-0.1.0.tar.gz | 16.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fancifypy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.1 kB
Release files / fancifypy-0.1.0.tar.gz
| Download URL | fancifypy-0.1.0.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
baed8a7d4355a6854d3b34e2108d8e957074589459ee4747063661ad36ea95e4
|
|
BLAKE2b-256 checksum How to use checksums |
c5790d63b4fada3d28f39b5494728160206538510b695e78190bddb7ae580728
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.24.1 CPython/3.12.1 Linux/6.8.0-1026-azure
|
Release files / fancifypy-0.1.0-py3-none-any.whl
| Download URL | fancifypy-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90b75620726debc548747ff384389d9ecc81846eeeac94a3b49decfa3ff68c5b
|
|
BLAKE2b-256 checksum How to use checksums |
ffd4069d1daddce613d53a543b306b151acecec25766f22f9150473be6142866
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.24.1 CPython/3.12.1 Linux/6.8.0-1026-azure
|
Security for fancifypy 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.