termux / termux/termux-api

hbldh/bleak - python API with pyjnius

Open
#713 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4.3k
Forks
920
PR merge metrics
No merged PRs in 30d

Description

Feature description

I would like to use bluetooth low energy in termux. bleak is nice option. It is already ported to android. The only missing part is access to android API from python in termux.
bleak uses pyjnius but it has access only to openjdk APIs. It would be possible to access android javavm by running it in termux-api process. I could prepare PR but I would like to check first if you would be willing to get it merge.

Reference implementation

With small test code I was able to run following example in termux https://github.com/kivy/pyjnius/pull/732

Have you checked if the feature is accessible through the Android API?
Yes

Do you know of other open-source apps that has a similar feature as the one you want? (Provide links)

https://github.com/kivy/kivy

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the referenced pyjnius pull request and the Termux API repository to understand how Android APIs are exposed to Termux processes. Done would mean enabling Python access to the Android Java VM for the stated bleak Bluetooth Low Energy use case.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, python
Domain
api, cli, mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.