Skip to main content

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 - vertical codec and importable modules
  • v0.2.0: #1 - @mathematicalmichael - encode .py to .vpy
  • v0.1.0: Initial functionality

Metadata

Release files for vertical-python 0.3.0

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

Source distribution (sdist)

Source distribution for vertical-python 0.3.0
File Size Uploaded Provenance Actions
vertical_python-0.3.0.tar.gz 3.1 kB Without provenance Details for vertical_python-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vertical-python 0.3.0
File Interpreter ABI Platform Actions
vertical_python-0.3.0-py3-none-any.whl Python 3 none any Details for vertical_python-0.3.0-py3-none-any.whl

Total release size: 6.5 kB

Release files / vertical_python-0.3.0.tar.gz

Download URL vertical_python-0.3.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ffc471108fb770331109c9b8532ad3ae102861c0e478a1de3c27bb0be5faa0ca
BLAKE2b-256 checksum
How to use checksums
9844d8eea42f58f071b7a5c336ea378314d72e2faa2819d9be10b1f0826de952
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.26.0 CPython/3.13.1 Darwin/23.3.0

Release files / vertical_python-0.3.0-py3-none-any.whl

Download URL vertical_python-0.3.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d234a88fc307d21f9de7274565b4914b5347265f38cdccc21b7166af0dc41734
BLAKE2b-256 checksum
How to use checksums
3bc77fb9ff44a58bf3071c7c2e66a71f166bde2f046d7372c5dacec4d20e311c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.26.0 CPython/3.13.1 Darwin/23.3.0

Security for vertical-python 0.3.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.

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