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 Linux x64/WSL and Python 3.10+. The accompanying VSIX is tested on Ubuntu 24.04/WSL; other platforms are not yet packaged. This wheel does not claim manylinux compatibility.
Install the downloaded wheel in your project's virtual environment:
python -m pip install /path/to/tython_lang-VERSION-py3-none-linux_x86_64.whl
tython check app.ty
tython build app.ty
python dist/app.py
Replace VERSION with the downloaded filename. 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 the matching .vsix through Extensions: Install from VSIX… for
highlighting, completion, diagnostics, hover, and the bundled Black-based
formatter. 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 initial CLI; formatting
is available through the VS Code extension. 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. These local artifacts are not automatically published.
For maintainers: npm run release:package at the repository root builds and
tests a matching VSIX/wheel pair. 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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| tython_lang-0.1.1-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| tython_lang-0.1.1-py3-none-manylinux_2_17_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details |
| tython_lang-0.1.1-py3-none-manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details |
| tython_lang-0.1.1-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
| tython_lang-0.1.1-py3-none-macosx_10_15_x86_64.whl | Python 3 | none | macOS 10.15+ x86-64 | Details |
Total release size: 52.8 MB
Release files / tython_lang-0.1.1-py3-none-win_amd64.whl
| Download URL | tython_lang-0.1.1-py3-none-win_amd64.whl |
|---|---|
| Size | 10.9 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
274cb8419370fd0f50a6857b26a405a8661cda95ec11facff2b11e546742aa6b
|
|
BLAKE2b-256 checksum How to use checksums |
0c89bb4e040542b154f1b0ed30269704f46c3e9c87a0e5f6ca25b62a35c3eacc
|
| 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.1-py3-none-manylinux_2_17_x86_64.whl
| Download URL | tython_lang-0.1.1-py3-none-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 10.8 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
00a33c85766ed278dbac1c969edb25c99a7ee2c3ecdf3db67b1365bfbf92e6f2
|
|
BLAKE2b-256 checksum How to use checksums |
2d0abbac57a71404b9dd82018f304ee3b61dc660bc820036cf586c6302652d1e
|
| 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.1-py3-none-manylinux_2_17_aarch64.whl
| Download URL | tython_lang-0.1.1-py3-none-manylinux_2_17_aarch64.whl |
|---|---|
| Size | 9.9 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
db0c6599eac48ecac84cbd1c19e53fa97d88ca1e30b044ccdff8c60b30091907
|
|
BLAKE2b-256 checksum How to use checksums |
e17bd008e17b9239b5997e0e14ac87eb4d7670478d53f431764078249384c6fb
|
| 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.1-py3-none-macosx_11_0_arm64.whl
| Download URL | tython_lang-0.1.1-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 10.3 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
657310f358eff9eed3944e1a7cfb02db6f037467b92d63dfbcf984eda3c6d59c
|
|
BLAKE2b-256 checksum How to use checksums |
281aa0dc9f6e8fa366dbd21efac711f8cb0fe448e8143d98187c023ce58a5749
|
| 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.1-py3-none-macosx_10_15_x86_64.whl
| Download URL | tython_lang-0.1.1-py3-none-macosx_10_15_x86_64.whl |
|---|---|
| Size | 10.9 MB |
| Tags | Python 3 macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
85fbebff1f6bb5065f7d9df67cd8cd6bb7ca4961cf42af0eba4f06ce6ffc8755
|
|
BLAKE2b-256 checksum How to use checksums |
cc02971bb32b4743b3ef8a140b5b6850301fc96af6a7e692dffb70b6346a02f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|