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.

Create an editable playground covering the language and editor features:

tython demo my-playground
cd my-playground
python tour.py --check
python tour.py

The optional directory defaults to tython-demo and must not already exist. Generation works offline without running code or installing dependencies. The 17 independent lessons, feature map, and intentional-error folder are the same examples shipped by the extension's Open Preview Examples command. tour.py checks, builds into dist/, explicitly copies the local Python dependencies, and runs the positive lessons. Python 3.10+ and this CLI suffice.

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.

The CLI exposes demo, check, build, and --version. 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.3

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.3
File
tython_lang-0.1.3-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
tython_lang-0.1.3-py3-none-manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details
tython_lang-0.1.3-py3-none-manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
tython_lang-0.1.3-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
tython_lang-0.1.3-py3-none-macosx_10_15_x86_64.whl Python 3 none macOS 10.15+ x86-64 Details

Total release size: 53.3 MB

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

Download URL tython_lang-0.1.3-py3-none-win_amd64.whl
Size 11.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
115b3a6975fe089a5092e6e1180c8295f53a7f89f407b8c49f09572e0e7ef80b
BLAKE2b-256 checksum
How to use checksums
ba61b8c52ff687cdd010bcb357bb85551447b69b48e19fce763130e296ace3c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

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

Download URL tython_lang-0.1.3-py3-none-manylinux_2_17_x86_64.whl
Size 10.9 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
8338deb199eefc6a12b0a358dac8027b97a5865a19aac9a7123936e904d0b28a
BLAKE2b-256 checksum
How to use checksums
d65e36a9f124d12550a329a0f4aef43a16a3d046e05ece18be856bd9000150e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

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

Download URL tython_lang-0.1.3-py3-none-manylinux_2_17_aarch64.whl
Size 10.1 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
9bf8f832aa7c54356c668adf4a983117bd9930c7655251177574af766bd8ff4a
BLAKE2b-256 checksum
How to use checksums
1caa4a693e4961bf9eb2581e690f06adaa8d4c93824d1503744e20af602fa891
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

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

Download URL tython_lang-0.1.3-py3-none-macosx_11_0_arm64.whl
Size 10.4 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
543541d8ac5603bcb7bb11e376f6dfb85f5f2c06dc7cad75a2d948cf740147a2
BLAKE2b-256 checksum
How to use checksums
ac0b06f4a21cc9f47e41349e822fbdea21b943d6da8204e542ad0406fd535a83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

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

Download URL tython_lang-0.1.3-py3-none-macosx_10_15_x86_64.whl
Size 11.0 MB
Tags Python 3 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
b8041e0cc72382261bc75c5d0a074ae6cd342b138af8a77b2d714c2cd2ce3970
BLAKE2b-256 checksum
How to use checksums
884e51a31bdf92cb429efa7aed692775837e88c6dc984ad691078c074392ce89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.1.3 This release

5 release files

0.1.2

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