vertical-python
Python but vertical.
Write a .vpy file:
hello_world.vpy
h d
e e
l f
l
oph
_re
wil
onl
rto
l(_
d"w
(ho
)er
ll
ld
o(
)
w:
o
r
l
d
!
"
)
then run it
$ vertical-python ./hello_world.vpy
hello world!
or encode a .py file to a .vpy file:
$ vertical-python ./hello_world.vpy --print > hello_world.py
$ vertical-python --encode ./hello_world.py > hello_world.vpy
Imports
To make your vertical python file importable, use the .py file extension and declare a vertical encoding
The vertical_python.codec module must be imported before attempting to import vertically-encoded python.
# -*- coding=vertical -*-
p
r
i
n
t
(
"
n
e
a
t
!
"
)
CLI
usage: vertical-python [-h] [--print | --encode] path
python but vertical
positional arguments:
path path to vertical .vpy file
options:
-h, --help show this help message and exit
--print just print the rotated vpy, not eval
--encode treat PATH as .py and print vertical .vpy to stdout
Changelog
- v0.3.0:
#2-verticalcodec and importable modules - v0.2.0:
#1- @mathematicalmichael - encode.pyto.vpy - v0.1.0: Initial functionality
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vertical_python-0.3.0.tar.gz
(3.1 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
File details
Details for the file vertical_python-0.3.0.tar.gz.
File metadata
- Download URL: vertical_python-0.3.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.26.0 CPython/3.13.1 Darwin/23.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffc471108fb770331109c9b8532ad3ae102861c0e478a1de3c27bb0be5faa0ca
|
|
| MD5 |
691d81a462786c397d6b8c46c9449d65
|
|
| BLAKE2b-256 |
9844d8eea42f58f071b7a5c336ea378314d72e2faa2819d9be10b1f0826de952
|
File details
Details for the file vertical_python-0.3.0-py3-none-any.whl.
File metadata
- Download URL: vertical_python-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.26.0 CPython/3.13.1 Darwin/23.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d234a88fc307d21f9de7274565b4914b5347265f38cdccc21b7166af0dc41734
|
|
| MD5 |
6142b788b787755583d4672bc112b8e2
|
|
| BLAKE2b-256 |
3bc77fb9ff44a58bf3071c7c2e66a71f166bde2f046d7372c5dacec4d20e311c
|