Skip to main content

A package for accessing termux-api

Project description


Build Status

termux-api is here, made with :heart:

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, though the code has been almost completely re-written and now is much more comprehensive.
This project is originally located at termux-api

Table of Contents


  • Termux app
  • Termux-api (both app and package)
  • Python installed in termux ($ pkg install python)


🚀  Android install through termux:


Install by pip The stable version is available in the Pypi, which you can download by:

$ python3 -m pip install termux-api


You can always get the latest version of termux-api maintained here in the github.

  • Clone this repo to your local machine(termux) using

Goto to your terminal and type:

$ git clone
$ 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 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


$ python
>>> from termux import <Module>
>>> API.vibrate()

>>> help(API) # for details of available methods


Step 1

  • Option 1

    • 🍴 Fork this repo!
  • Option 2

    • 👯 Clone this repo to your local machine using

Step 2


Step 3

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!

Project details

Download files

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

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

termux_api-1.2.3-py3-none-any.whl (15.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page