All Projects → azwyane → pimux

azwyane / pimux

Licence: MIT License
Access Termux-api through python

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pimux

IpHack
Track Location With Live Address And City in Termux
Stars: ✭ 315 (+1269.57%)
Mutual labels:  termux, termux-api
my-termux-setup
Here is My Termux Terminal Emulator Setup & Packages
Stars: ✭ 97 (+321.74%)
Mutual labels:  termux, termux-api
teriyaki
Control your phone using advantages of the termux-api over ssh from your linux pc.
Stars: ✭ 54 (+134.78%)
Mutual labels:  termux, termux-api
termux-shell
Beautify your Termux App with this Shell 😍
Stars: ✭ 149 (+547.83%)
Mutual labels:  termux, termux-api
AndroidVSCode
Visual Studio Code on Android with code-server on Termux.
Stars: ✭ 21 (-8.7%)
Mutual labels:  termux
ubuntu-on-android
Run Ubuntu 21.04 with pre-installed Desktop Environments in android/termux with ease! Everything is preinstalled so just download install and done🚀🚀
Stars: ✭ 348 (+1413.04%)
Mutual labels:  termux
grabcam
A tool to hack camera from termux for video tutorial visit hackers-hub.com
Stars: ✭ 215 (+834.78%)
Mutual labels:  termux
TelephonyBruteCall
This tools lets you BruceForce calls using Termux on Android
Stars: ✭ 25 (+8.7%)
Mutual labels:  termux
Raven-Storm
Raven-Storm is a powerful DDoS toolkit for penetration tests, including attacks for several protocols written in python. Takedown many connections using several exotic and classic protocols.
Stars: ✭ 235 (+921.74%)
Mutual labels:  termux
docsTermuxArch
docsTermuxArch https://termuxarch.github.io/docsTermuxArch/
Stars: ✭ 29 (+26.09%)
Mutual labels:  termux
termux-launch
Launch apps on Termux
Stars: ✭ 26 (+13.04%)
Mutual labels:  termux
LordPhish
The most complete phishing tool
Stars: ✭ 158 (+586.96%)
Mutual labels:  termux
instahack
Hack instagram bruteforce new
Stars: ✭ 23 (+0%)
Mutual labels:  termux
007-TheBond
This Script will help you to gather information about your victim or friend.
Stars: ✭ 371 (+1513.04%)
Mutual labels:  termux
ubuntu
Install ubuntu in Termux Without Rooted Device
Stars: ✭ 77 (+234.78%)
Mutual labels:  termux
Termux-Games
All the Working Games That you can play in Termux by Installing this Simple Script.
Stars: ✭ 28 (+21.74%)
Mutual labels:  termux
dotfiles
cross-platform (linux (arch), macos, android (termux), windows (WSL)) dotfiles and scripts, using yadm
Stars: ✭ 17 (-26.09%)
Mutual labels:  termux
Webspoilt
This script will you help to find the information about the website and to help in penetrating testing
Stars: ✭ 34 (+47.83%)
Mutual labels:  termux
nepali-datetime
Python's core datetime inspired nepali datetime (BS date & NPT) package 🇳🇵
Stars: ✭ 36 (+56.52%)
Mutual labels:  nepal
DDos-Attack
This is a simple DDoS Attack tool and even a begginer hacker can use this.Just type python run.py after cloning this repository.
Stars: ✭ 76 (+230.43%)
Mutual labels:  termux

pimux

PIMUX is here, made with ❤️

What is pimux?

pimux is a python module created by me, to access the termux-api(hardware and software api). To ease the access of these beautiful api's which can be really useful for IOT projects deploying using your own android phone.

Why to use pimux?

For every pythonist and enthusiast pimux can really ease hardware and software access through termux-api.

Special thanks

I would like to thank every developer before me who made this beautiful language(python),termux-api, termux, os(linux), and all others, on whose contributions I have been able to make this.

This project is originally located at pimux

Table of Contents

Requirements

  • Termux app
  • Termux-api (both app and package)
  • Python

Installation

🚀  To install in your local machine follow the steps below:

Method-1

You can always get the latest version of pimux maintained here in the github.

To get the latest feature:

  • Clone this repo to your local machine(termux) using https://github.com/azwyane/pimux.git

Goto to your terminal and type:

git clone https://github.com/azwyane/pimux.git

Now add this to site packages by first building by being where the setup.py is:

$ python3 -m pip install -e <path to pimux main dir consisting of setup.py>

Finally, you have it installed.

Method-2

It is recommend to follow this method only when required to have stable release to work with pimux

IF YOU WANT TO WORK WITH THE LATEST FEATURES OF PIMUX, PLEASE CONSIDER FOLLOWING THE METHOD-1 MENTIONED ABOVE

Install by pip

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

$ python3 -m pip install pimux

Run the project

Now to run the pimux type in your terminal:

$ python
>>> from pimux import function

>>>help(function)
CLASSES
    builtins.object
        camera
        clipboard
        misc
        tts
        volume
        wifi

    class camera(builtins.object)
     |  The class camera is for fetching
     |  camera info or taking picture with the
     |  camera on the android.
     |
     |  Methods defined here:
     |
     |  __init__(self)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  camera(self)
     |      This method returns camera info
     |      of the android device.It takes no argument.
     |
     |  takephoto(self, cid=0, saveas='newimg.jpeg')
     |      This method is for taking picture from the
     |      available camera on the device.
     |      It takes two argument:
     |      cid : camera id in int default(0)
     |      saveas: output file name in str format default("newimg.jpeg")
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors defined here:
>>> v=function.misc()

>>>help(v)
class misc(builtins.object)
 |  The class misc has miscellaneous methods
 |  of termuxa-pi available.
 |  Available methods are :
 |  battery,
 |  brightness,
 |  vibrate,
 |  contactlist,
 |  torch,
 |  downloadFile
 |
 |  Methods defined here:
 |
 |  __init__(self)
 |      Initialize self.  See help(type(self)) for accurate signature.
 |
 |  battery(self)
 |      This method return battery status info.
 |
 |  brightness(self, Brightness)
 |      Set the brightness of your device.

>>>v.vibrate()    This command vibrates your device if not in silent.
'Done'

>>>v.brightness(Brightness=100) This command sets the brightness to 100.
'Done'

Also

$ python
>>>from pimux import Sensors

 >>>help(Sensors)
 CLASSES
    builtins.object
        sensor

    class sensor(builtins.object)
     |  This is a class that lets to view
     |  sensor data directly from your android device.
     |
     |  Methods defined here:
     |
     |  __init__(self)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  allsensors(self)
     |      Method to print sensor data all at once.
     |      WARNING: Can cause over load to the device.
     |
     |  cleanup(self)
      Performs cleanup releasing sensor resources.
     |
     |  delay(self, sensorname='', delayvalue=3000)
     |      Method to delay time in milliseconds
     |      on receiving every new sensor update.
     |      Arguments:
     |      sensorname=""
     |      delayvalue=3000(default)(delayed by 3 sec)
     |
     |  listSensor(self)
     |      lists available sensors on the device.
>>> s=Sensors.sensor()
>>>help(s)
class sensor(builtins.object)
 |  This is a class that lets to view
 |  sensor data directly from your android device.
 |
 |  Methods defined here:
 |
 |  __init__(self)
 |      Initialize self.  See help(type(self)) for accurate signature.
 |
 |  allsensors(self)
 |      Method to print sensor data all at once.
 |      WARNING: Can cause over load to the device.
 |
 |  cleanup(self)
 |      Performs cleanup releasing sensor resources.
 |
 |  delay(self, sensorname='', delayvalue=3000)
 |      Method to delay time in milliseconds
 |      on receiving every new sensor update.
 |      Arguments:
 |      sensorname=""


>>>s.listSensor()
'{  "sensors": [ ........]}'

Features

It is a side project of making use of android sensors and IOT projects. It has the feature of termux-api which can be easily used with python projects.

What's new?

  • Added a ready to go web app using pimux and flask (this will develop with new features in coming days)

To use pimux through web enter:

$ python -m pimux.web

Which will serve web running at http://127.0.0.1:5000/

Now function and Sensors can be called as:

>>> import pimux
>>> pimux.function.misc().vibrate()

Contributing

Step 1

  • Option 1

    • 🍴 Fork this repo!
  • Option 2

    • 👯 Clone this repo to your local machine using https://github.com/azwyane/pimux.git

Step 2

  • HACK AWAY!

This repo will be having commits in the future. So before applying pull request, its better to keep up with the latest commit and changes.

You can do so by:

$ git remote add upstream https://github.com/azwyane/pimux.git
$ git fetch upstream
$ git checkout master
$ git merge upstream/master

Then make your wonderful changes and push to your fork by:

$ git push origin master

Step 3


Found a bug? Missing a specific feature?

Feel free to file a new issue with a respective title and description on the the azwyane/pimux repository. If you already found a solution to your problem, I would love to review your pull request!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].