Skip to main content

tython CLI

The tython-lang distribution provides the tython command. It is an independent adaptation of the TypeScript checker for typed Python, not a Microsoft product. The wheel contains a prebuilt compiler and its matching library. No Go, Node, source checkout, or compilation is required when installing it.

This alpha targets Python 3.10+. Linux wheels use the manylinux_2_17 tag because the compiler is a statically linked Go binary. pip installs them on glibc Linux, including WSL. Alpine is not covered.

Install it in your project's virtual environment:

python -m pip install tython-lang
tython check app.ty
tython build app.ty
python dist/app.py

python -m tython_cli is also available if your environment's scripts directory is not on PATH.

check writes no output files. build checks first, then preserves the source layout under dist/, including typed imports. Ordinary .py files are not read, checked, or copied; supply those runtime dependencies separately. It overwrites generated outputs in that directory, never source files. Old outputs are not automatically deleted. Use --out-dir PATH to select a different destination, and --root-dir PATH (also accepted by check) to override the inferred common source directory. Python package directories are kept intact. For example: tython build --root-dir src --out-dir dist src/app.ty. For packages with relative imports, run python -m package.module from the output root. Package initializers are preserved, including __init__.ty erasure. Non-code assets and dynamically loaded modules are not automatically copied; relative data-file paths retain Python's usual working-directory behavior. The CLI does not execute your Python code or install project dependencies.

Install TyThon (tython.tython) from the VS Code Marketplace for highlighting, completion, diagnostics, hover, and formatting. Formatting runs the pinned Black shipped in that extension with your Python 3.10+. The VSIX and CLI are independently usable; both contain the same compiler and library. Optional Jedi/Ruff editor integrations remain separate.

Only check, build, and --version are exposed by this CLI. The language and library coverage are still incomplete. See the project guide for syntax and current limitations. The unrelated PyPI project named tython is not this package.

For maintainers: npm run release at the repository root tests, then builds every platform VSIX and wheel. This directory alone is not a source distribution; packaging stages the verified native payload before invoking the standard setuptools build backend.

Metadata

Release files for tython-lang 0.1.2

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

Built distributions (wheels)

Table of built distributions (wheels) for tython-lang 0.1.2
File
tython_lang-0.1.2-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
tython_lang-0.1.2-py3-none-manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details
tython_lang-0.1.2-py3-none-manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
tython_lang-0.1.2-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
tython_lang-0.1.2-py3-none-macosx_10_15_x86_64.whl Python 3 none macOS 10.15+ x86-64 Details

Total release size: 52.2 MB

Release files / tython_lang-0.1.2-py3-none-win_amd64.whl

Download URL tython_lang-0.1.2-py3-none-win_amd64.whl
Size 10.8 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
c5c881ce1f7103a24c92049c217a8934035e8d8e9b95bf10afd81f4948caa7f9
BLAKE2b-256 checksum
How to use checksums
510bef6c2a16480475db51fc7cd68bc260f6495202d74f1689da955008c32390
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / tython_lang-0.1.2-py3-none-manylinux_2_17_x86_64.whl

Download URL tython_lang-0.1.2-py3-none-manylinux_2_17_x86_64.whl
Size 10.6 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
4924837c982f0facfdaa544ea058756f0d72d9b2b16eb076ac76408c590e07b9
BLAKE2b-256 checksum
How to use checksums
5514a9010fea6f4d8bc209e6a9caf846e0e72c7c25b5c50bad9423f9eb147ac9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / tython_lang-0.1.2-py3-none-manylinux_2_17_aarch64.whl

Download URL tython_lang-0.1.2-py3-none-manylinux_2_17_aarch64.whl
Size 9.8 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
3b02a52e40d2989cfae033e616001d71084d41067e19a7270c7cbd67a5da8130
BLAKE2b-256 checksum
How to use checksums
4fb49f9205f66b3672a13a984354e685277f0c9f4a7e3b9b6b9f59f713d3d811
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / tython_lang-0.1.2-py3-none-macosx_11_0_arm64.whl

Download URL tython_lang-0.1.2-py3-none-macosx_11_0_arm64.whl
Size 10.2 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f7bda5b5a962847617fad1d29774d8328781a8b2051ca0572017bbda7df778e7
BLAKE2b-256 checksum
How to use checksums
ea3d58e0583af661134e62e955ec04829c60c85e3e3bebc638a09f6619175942
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / tython_lang-0.1.2-py3-none-macosx_10_15_x86_64.whl

Download URL tython_lang-0.1.2-py3-none-macosx_10_15_x86_64.whl
Size 10.8 MB
Tags Python 3 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
6cb8cb732d150c53027ecd51d11a1fde20814bfa6e2e1ad6536eb7cb411bdaa0
BLAKE2b-256 checksum
How to use checksums
e046e835c09c2e0e86d89a09395a620659ba2f87b47839f8e9f683239971b5b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

0.1.3

5 release files

This release

0.1.2 This release

5 release files

0.1.1

5 release files

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