Skip to main content

ControllerApp

Now, it`s possible to use your phone as a controller to develop games and interactive programs in python! ControllerApp is a tool that allows you to catch all sorts of UI events like a simple tap on your mobile's screen or a device's acceleration directly in your Python code.

App Installation

The app is available at Play Store.

Python Package Installation

Install the controller package using pip:

 pip install controller

How to use

The communication works with a 6-letters code: it`s enought to put the same code in both App and Python code to start using it. In the app, the code field is ommited: You just need to minimize the square to make it appears!

In the Python side, you can test the tap functionality with the following example:

from controller import Controller

c = Controller('a1b2c3') '''room code'''

def myFunction(x,y):
    print('hello world',x,y)

c.mobile.onTap = myFunction 

More functions

Explore all the possibilities in the ControllerApp Documentation.

Metadata

Release files for controller 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for controller 0.1.0
File Size Uploaded
controller-0.1.0.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for controller 0.1.0
File Interpreter ABI Platform
controller-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / controller-0.1.0.tar.gz

Download URL controller-0.1.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8f08a5ff3fa757390c2f0bb90627ae68f5ebc44f96c2784b1f3227d3d854b802
BLAKE2b-256 checksum
How to use checksums
ba2cdc4202bfb06111f532def9422d83f2838b9c3539c831fe5aaa8c7932d562
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

Release files / controller-0.1.0-py3-none-any.whl

Download URL controller-0.1.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d326c7f13901de4d088b7752bfb3de474183b874d8c049ddd729649862474c3
BLAKE2b-256 checksum
How to use checksums
78ed1a81582147a2e89541020adc562460209337ad60aff0f56e2491ee5c9f07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

1 release file

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page