Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

termux-api-stc

termux-api-stc is a Python 3 library that consumes the official Termux:API command interface. The 3.x development line is rebuilt from a pinned upstream baseline rather than from historical wrapper behavior.

Baseline

  • Termux:API application baseline: v0.53.0
  • termux/termux-api-package pinned tree: 0e3f9222eea7760c76ea6368dadbdf884ab85fbf
  • Official command inventory: 57 installed scripts

Architecture

Python wrapper
    -> Command
        -> Executor
            -> official termux-* executable
                -> Termux:API backend
                    -> Android

The subprocess boundary never invokes a shell. argv, stdin, stdout, stderr, return code and duration are preserved by ExecutionResult.

API levels

Every command in the pinned baseline is available through the raw facade:

from termux_api_stc import TermuxAPI
api = TermuxAPI()
result = api["termux-battery-status"].json()

Inspected commands additionally receive richer sync/async wrappers. Version 3.1.0a5 consolidates the evidence-first 3.1 line: explicit empty/non-empty payload state, conservative capability observation, richer Termux/Android environment reporting, notification and notification-channel support, and runtime/distribution version-consistency checks.

Portable tests

./tests/run-tests.sh

Portable tests validate Python logic and command contracts with fake binaries; they do not prove Android behavior.

Real Termux conformance

./tests/run-device-tests.sh readonly

Release qualification on a real device is risk-tiered:

./tests/run-device-tests.sh readonly
./tests/run-device-tests.sh safe-effects
./tests/run-device-tests.sh qualification

Interactive and sensitive/stateful actions are separate explicit campaigns; they are never silently folded into the default qualification gate. See tests/device/README.md and PRE_RELEASE.md.

Download files

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

Source Distribution

termux_api_stc-3.1.0a5.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

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

termux_api_stc-3.1.0a5-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

Details for the file termux_api_stc-3.1.0a5.tar.gz.

File metadata

  • Download URL: termux_api_stc-3.1.0a5.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for termux_api_stc-3.1.0a5.tar.gz
Algorithm Hash digest
SHA256 3ffa52229d7a4b8525ad392a2497a1589eea976eb5e91e058bf42008f329fce5
MD5 1752f99f57104cd302528cad18dc46d1
BLAKE2b-256 83b01a3870d881356c1fd2d729d26eabcaa4a40fcab0c5a3e510f21b624534e3

See more details on using hashes here.

File details

Details for the file termux_api_stc-3.1.0a5-py3-none-any.whl.

File metadata

File hashes

Hashes for termux_api_stc-3.1.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 1e41ec70cd7f6675ee51f0ce9be72af125d3a03d5be2b5262418ab67e07ee673
MD5 94be58b150ee975c542f86d4642b9d13
BLAKE2b-256 48b608190eb8dcf70783f7fe100281216bc2b11c69f6f7df38fd4a49853c12e1

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

3.1.0a5 This release

2 files

2.1.0

2 files

2.0.0

2 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