Skip to main content

A package for accessing termux-api

Project description

termux-api

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 https://github.com/azwyane/pimux, 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

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

Step 2

  • HACK AWAY!

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 Distribution

termux-api-1.2.2.tar.gz (12.4 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-1.2.2-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file termux-api-1.2.2.tar.gz.

File metadata

  • Download URL: termux-api-1.2.2.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for termux-api-1.2.2.tar.gz
Algorithm Hash digest
SHA256 be06b098925f544fcf491e01b51ff9dc4d3af70fc8620f3c17f020aecb66ca05
MD5 bc8be97624eb8d6657fd9c560220f20f
BLAKE2b-256 d9f9b830357f884a5602eaea6b01da6e5160b3028a1ab6a2c937f3b1dcbaea1a

See more details on using hashes here.

File details

Details for the file termux_api-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: termux_api-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for termux_api-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3239488d3fd63d677b2000cdb451a837742a240d07913ca2cd55db13d222f225
MD5 58cc5054e3eaa8e7f4f802a8c4910bff
BLAKE2b-256 7c88e4ffe47ce402dafc88cdd3ba142f447abece4b83811bc6f6dd54774394d2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page