termux-api
termux-api is here, made with ❤️
What is termux-api?
termux-api is a python module to access the termux-api This provides a way to get native access in Python to Android device functionality as API.
Most of the termux-api implementations are directly available. The API.generic() method gives direct access to any other method that has not yet been implemented.
Special thanks
Thanks to termux and termux-api for making all this possible. This module is heavily inspired by https://github.com/azwyane/pimux, though the code has been almost completely re-written and now is much more comprehensive. Also, special thanks for recent contribution from Young-Lord This project is originally located at termux-api
Table of Contents
Requirements
- Termux app
- Termux-api (both app and package)
- Python installed in termux ($ pkg install python)
Installation
🚀 Android install through termux:
Method-1
Install by pip The stable version is available in the Pypi, which you can download by:
$ python3 -m pip install termux-api
Method-2
You can always get the latest version of termux-api maintained here in the github.
- Clone this repo to your local machine(termux) using
https://github.com/shajul/termux-api.git
Goto to your terminal and type:
$ git clone https://github.com/shajul/termux-api.git
$ python3 -m pip install wheel
$ python3 -m pip install dist/termux_api*.whl
Or you can add this to site packages by first building it first:
$ python3 setup.py sdist bdist_wheel
$ python3 -m pip install -e <path to termux_api*.whl>
Finally, you have it installed.
Run the project
Now to run the termux-api type in your terminal:
$ python
>>> import termux
>>> termux.API.vibrate()
>>> help(termux.API) #for available methods
Avaliable modules are API, Camera, Clipboard, Media, Microphone, Notification, Scheduler, Sensors, Share, Telephony, TTS, UI, Wifi
OR
$ python
>>> from termux import <Module>
>>> API.vibrate()
>>> help(API) # for details of available methods
Contributing
Step 1
-
Option 1
- 🍴 Fork this repo!
-
Option 2
- 👯 Clone this repo to your local machine using
https://github.com/shajul/termux-api.git
- 👯 Clone this repo to your local machine using
Step 2
- HACK AWAY!
Step 3
- 🔃 Create a new pull request using
https://github.com/shajul/termux-api/compare.
Found a bug? Missing a specific feature?
You can file an issue. If you already found a solution to your problem, I would love to review your pull request!
Metadata
Release files for termux-api 1.2.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| termux_api-1.2.5.3-py3-none-any.whl | Python 3 | none | any | Details for termux_api-1.2.5.3-py3-none-any.whl |
Release files / termux_api-1.2.5.3-py3-none-any.whl
| Download URL | termux_api-1.2.5.3-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
830378b3e9951471420194be477da4b576d8167588d674660309ddc28e2b3e5a
|
|
BLAKE2b-256 checksum How to use checksums |
27c601a776291e0bebbb57f35e78b3d65e924367673ab86f675644fb2197e85c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for termux-api 1.2.5.3
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.