CLI
tython is the project-first command entrypoint.
Main Commands
tython init
tython add https://github.com/example/pkg.tython --rev <40-char-commit-sha>
tython add "requests>=2.32" --py
tython remove https://github.com/example/pkg.tython
tython remove "requests>=2.32" --py
tython lock
tython build
tython lint
tython format
tython run src/main.ty
tython python sync
tython repl
tython transpile input.ty output.py
tython version
What Each Command Does
initcreatesproject.toml,src/main.ty, and.tython/.addrecords native git deps or passthrough Python deps.removedeletes native git deps or passthrough Python deps.lockresolves native deps intoproject.lock.buildmaterializes generated Python into.tython/build/.lintchecks Tython source with the semantic checker.formatrewrites Tython source to the repo formatter style.runexecutes a.tyentry under project context.python synccreates/syncs the project-local Python venv used forpyimport.replstarts an interactive REPL using the same parser + semantic checks.transpilelowers a.tyfile to Python and writes a.py.versionprints CLI version.
LSP Subcommands
tython lsp start speaks stdio LSP.
install vim and install nvim copy editor support files into the local package path.