termux

A Python based Termux api wrapper


License
MIT
Install
pip install termux==1.0.0

Documentation

Termux Python 3.x MIT License

Python based termux api wrapper

Functions

As of right now it only has the following features

  • Copy - copies the provided text to the clipboard
  • Wifi - lets you turn on/off the wifi
  • Flashlight - lets you turn on/off the flashlight
  • Toast - lets you display toast message to the user

And more is to be added in the future

Usage

Copy example:

from termux.api import copy

copy('This is an example of copy')

Flashlight example:

from termux.api import torch

torch(True)

Wifi example:

from termux.api import wifi

wifi(True)

Example of toast message with most of the options:

from termux.api import toast

toast('This is an example', s=False, attr='bottom')

Built with ❤️ by

  • Aldas - The creator of the package