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-packagepinned 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ffa52229d7a4b8525ad392a2497a1589eea976eb5e91e058bf42008f329fce5
|
|
| MD5 |
1752f99f57104cd302528cad18dc46d1
|
|
| BLAKE2b-256 |
83b01a3870d881356c1fd2d729d26eabcaa4a40fcab0c5a3e510f21b624534e3
|
File details
Details for the file termux_api_stc-3.1.0a5-py3-none-any.whl.
File metadata
- Download URL: termux_api_stc-3.1.0a5-py3-none-any.whl
- Upload date:
- Size: 28.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e41ec70cd7f6675ee51f0ce9be72af125d3a03d5be2b5262418ab67e07ee673
|
|
| MD5 |
94be58b150ee975c542f86d4642b9d13
|
|
| BLAKE2b-256 |
48b608190eb8dcf70783f7fe100281216bc2b11c69f6f7df38fd4a49853c12e1
|