Package: pimux
pimuxPIMUX is here, made with :heart: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 thanksI 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 atpimuxTable of ContentsRequirementsInstallationFeaturesContributingRequirementsTermux appTermux-api (both app and package)PythonInstallation🚀  To install in your local machine follow the steps below:Method-1You 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) usinghttps://github.com/azwyane/pimux.gitGoto to your terminal and type:gitclonehttps://github.com/azwyane/pimux.gitNow add this to site packages by first building by being where the setup.py is:$ python3 setup.py sdist bdist_wheel

$ python3 -m pip install -e <path to pimux main dir>Finally, you have it installed.Method-2Install by pipThe stable version is available in the Pypi, which you can download by:$ python3 -m pip install pimuxRun the projectNow to run the pimux type in your terminal:$python
>>>frompimuximportfunction>>>help(function)CLASSESbuiltins.objectcameraclipboardmiscttsvolumewificlasscamera(builtins.object)|Theclasscameraisforfetching|camerainfoortakingpicturewiththe|cameraontheandroid.||Methodsdefinedhere:||__init__(self)|Initializeself.Seehelp(type(self))foraccuratesignature.||camera(self)|Thismethodreturnscamerainfo|oftheandroiddevice.Ittakesnoargument.||takephoto(self,cid=0,saveas='newimg.jpeg')|Thismethodisfortakingpicturefromthe|availablecameraonthedevice.|Ittakestwoargument:|cid:cameraidinintdefault(0)|saveas:outputfilenameinstrformatdefault("newimg.jpeg")||----------------------------------------------------------------------|Datadescriptorsdefinedhere:>>>v=function.misc()>>>help(v)classmisc(builtins.object)|Theclassmischasmiscellaneousmethods|oftermuxa-piavailable.|Availablemethodsare:|battery,|brightness,|vibrate,|contactlist,|torch,|downloadFile||Methodsdefinedhere:||__init__(self)|Initializeself.Seehelp(type(self))foraccuratesignature.||battery(self)|Thismethodreturnbatterystatusinfo.||brightness(self,Brightness)|Setthebrightnessofyourdevice.

>>>v.vibrate()Thiscommandvibratesyourdeviceifnotinsilent.'Done'>>>v.brightness(Brightness=100)Thiscommandsetsthebrightnessto100.'Done'Also$python
>>>frompimuximportSensors>>>help(Sensors)CLASSESbuiltins.objectsensorclasssensor(builtins.object)|Thisisaclassthatletstoview|sensordatadirectlyfromyourandroiddevice.||Methodsdefinedhere:||__init__(self)|Initializeself.Seehelp(type(self))foraccuratesignature.||allsensors(self)|Methodtoprintsensordataallatonce.|WARNING:Cancauseoverloadtothedevice.||cleanup(self)Performscleanupreleasingsensorresources.||delay(self,sensorname='',delayvalue=3000)|Methodtodelaytimeinmilliseconds|onreceivingeverynewsensorupdate.|Arguments:|sensorname=""|delayvalue=3000(default)(delayedby3sec)||listSensor(self)|listsavailablesensorsonthedevice.>>>s=Sensors.sensor()>>>help(s)classsensor(builtins.object)|Thisisaclassthatletstoview|sensordatadirectlyfromyourandroiddevice.||Methodsdefinedhere:||__init__(self)|Initializeself.Seehelp(type(self))foraccuratesignature.||allsensors(self)|Methodtoprintsensordataallatonce.|WARNING:Cancauseoverloadtothedevice.||cleanup(self)|Performscleanupreleasingsensorresources.||delay(self,sensorname='',delayvalue=3000)|Methodtodelaytimeinmilliseconds|onreceivingeverynewsensorupdate.|Arguments:|sensorname="">>>s.listSensor()'{  "sensors": [ ........]}'FeaturesIt 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.ContributingStep 1Option 1🍴 Fork this repo!Option 2👯 Clone this repo to your local machine usinghttps://github.com/azwyane/pimux.gitStep 2HACK AWAY!Step 3🔃 Create a new pull request usinghttps://github.com/azwyane/pimux/compare.Found a bug? Missing a specific feature?Feel free tofile a new issuewith a respective title and description on the theazwyane/pimuxrepository. If you already found a solution to your problem,I would love to review your pull request!