Skip to main content

TI-Python

A versatile compiler to make TI-BASIC programs from Python 3 (with some restrictions)

Installation

pip install ti-python

Usage

CLI

python -m ti_python --help

or

ti-python --help

python -m ti_python examples/helloworld.py

Python

from ti_python import compile
code = "print('Hello World!')"
print(compile(code))

See examples/ for example programs

Features

  • print and input
  • Integer and string variables (with multi-character names)
  • Basic arithmetic
  • Basic If statements
  • Comparisons
  • While loops
  • String operations

Goals/To Do

  • Lists
  • Functions
  • Graphical output
  • More advanced comparisons and operations (exponents, roots, and, or)

Non-compiler related

  • 8XP encoding

Restrictions

Your Python code still has to follow some restrictions due to the nature of the TI-BASIC.

  • Using print with commas will not insert spaces in-between
  • The input function doesn't always return Strings, they can be numbers

These are known restrictions, but this compiler is still in development so of course you will still have many other issues

Resources and References Used

TI-BASIC usage

Metadata

Release files for ti-python 0.1.2

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

Source distribution (sdist)

Source distribution for ti-python 0.1.2
File Size Uploaded Provenance Actions
ti_python-0.1.2.tar.gz 17.0 kB Without provenance Details for ti_python-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ti-python 0.1.2
File Interpreter ABI Platform Actions
ti_python-0.1.2-py3-none-any.whl Python 3 none any Details for ti_python-0.1.2-py3-none-any.whl

Total release size: 35.1 kB

Release files / ti_python-0.1.2.tar.gz

Download URL ti_python-0.1.2.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
27c68d9ebd1d7761551553295c3f70d0976ef8f1777e2ce0b8197ff917ef537b
BLAKE2b-256 checksum
How to use checksums
0b008a3db4236162975e0551ecf1cd24e571782a086cc74bb5d70067f0934ad5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Release files / ti_python-0.1.2-py3-none-any.whl

Download URL ti_python-0.1.2-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
acbbe93286285a506f9f310881cb902d83cb194edfcb58b6beece2cd19026454
BLAKE2b-256 checksum
How to use checksums
3d76988923e216bdc04e4d0d1de094d809de4db334a4ba2c36f5186b18a86ec1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Security for ti-python 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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