Skip to main content

T++: Human-first natural language programming platform

Project description

T++

Human-first programming, engineered for real-world software.

PyPI version Python CI Release License

T++ is a next-generation language platform that lets developers write expressive, natural syntax while keeping deterministic runtime behavior, modern tooling, and production CI discipline.

Current stable release: 3.1.3

Download from PyPI:

pip install tpp-language

Why T++

  • Natural language syntax that remains readable to humans and executable by machines.
  • Full CLI workflow for run, repl, test, plugin management, API serving, and diagnostics.
  • Extensible plugin system with keyword rewrites and transform hooks.
  • Built-in web IDE backend and JSON execution API.
  • PyPI distribution for immediate adoption: pip install tpp-language.

Features

  • Human-first syntax with strict, fuzzy, and intent parsing modes.
  • Modular architecture: parser, runtime engine, stdlib, API, CLI, plugins.
  • Test blocks and suites directly in .tpp source.
  • Configurable project behavior via .tppconfig.
  • CI/CD-ready repository with matrix validation and release automation.

Installation

pip install tpp-language

Verify install:

tpp --version
tpp doctor

Local development install:

python -m pip install -e .[dev]

Usage

Run a script:

tpp run examples/hello.tpp

Start interactive REPL:

tpp repl

Run regression tests:

tpp test tests/regression.tpp

Plugin workflow:

tpp plugin install examples/sample_plugin.json
tpp plugin list
tpp run examples/plugin_demo.tpp --plugin examples/sample_plugin.json

Start API + Web IDE:

tpp api --serve --host 127.0.0.1 --port 8787

Open http://127.0.0.1:8787/ in your browser.

Architecture Overview

tpp/
	core/      -> AST, constants, diagnostics, utilities
	parser/    -> lexer, parser, semantic analyzer, optimizer
	runtime/   -> engine, evaluator, environment, interop, profiler
	stdlib/    -> native modules (math, text, system, time)
	plugins/   -> plugin loading, metadata, transforms
	cli/       -> command surface (run/repl/test/plugin/api/doctor)
	api/       -> JSON execution API + web IDE server

Design goal: natural syntax at the top, predictable execution at the core.

Examples

Simple script:

say "Hello from T++"
let name be "Developer"
say "Welcome" then name

Natural arithmetic and expectations:

let x be 4
increase x by 6
expect x to be 10

API payload:

{
	"source": "let x be 5\nsay x",
	"mode": "run"
}

Roadmap

  • Richer language server and editor integration.
  • Expanded standard library and package ecosystem.
  • Advanced plugin marketplace and sharing model.
  • Enhanced debugging and profiling introspection.
  • Cloud-hosted collaborative web IDE experience.

Validation and CI

This repository includes production-ready GitHub Actions workflows:

  • .github/workflows/ci.yml: continuous validation for push and pull request
  • .github/workflows/release.yml: tag-based release build + GitHub Release + optional PyPI publish

CI validates:

  • package installation (pip install .)
  • compile checks (python -m compileall -q tpp)
  • linting (ruff check tpp tests scripts)
  • required CLI contract (tpp --version, run, test, repl, plugin install/list)
  • tpp doctor diagnostics

Release Process

Create a semantic version tag:

git tag v3.1.1
git push origin v3.1.1

The release workflow will:

  • build wheel + sdist
  • run twine check
  • run smoke tests against built wheel
  • generate release notes from git history
  • publish a GitHub release with artifacts

Optional PyPI publish:

  • run release workflow manually with publish_to_pypi=true, or
  • set repository variable TPP_PUBLISH_PYPI=true for tag pushes

Developer Workflow

python -m pip install -e .[dev]
pre-commit install
python scripts/ci_validate.py
pytest -q tests/test_cli_integration.py

Security Notes

  • Python module bridging is allow-listed
  • system stdlib file operations are workspace-sandboxed
  • plugin Python hooks are namespace-restricted

Project Layout

  • tpp/
  • examples/
  • tests/
  • docs/
  • README.md
  • pyproject.toml

Publish Readiness

This codebase is structured for GitHub publishing and pip installation.

For documentation details:

  • docs/language-guide.md
  • docs/plugin-guide.md
  • docs/web-ide.md
  • docs/devops.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tpp_language-3.1.3.tar.gz (47.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tpp_language-3.1.3-py3-none-any.whl (49.0 kB view details)

Uploaded Python 3

File details

Details for the file tpp_language-3.1.3.tar.gz.

File metadata

  • Download URL: tpp_language-3.1.3.tar.gz
  • Upload date:
  • Size: 47.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for tpp_language-3.1.3.tar.gz
Algorithm Hash digest
SHA256 e0c5c03cb5ecaba46e213ebec7b4caa88af3276ec9c2d641e618d3a35bff8b99
MD5 6b3e812495cb4e3f44adf3bb4cd64add
BLAKE2b-256 a77f143b552606de575a84a0be9c25df1c1a28ec6d9c56bbc86f646245499ad6

See more details on using hashes here.

File details

Details for the file tpp_language-3.1.3-py3-none-any.whl.

File metadata

  • Download URL: tpp_language-3.1.3-py3-none-any.whl
  • Upload date:
  • Size: 49.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for tpp_language-3.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6efe536244b17ceccc8b950492985a257c3f0776428db02771d8f533fc069b4f
MD5 2f7ebcbdf8830f6bcefc586ce2b2cd7d
BLAKE2b-256 92e6de44717f665d3d77399d1bf9d23dc945a24fae4c3e4213712a0aef8fa98e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page