4 ms·
Python terminal app as Android Phone app
I put together a small water consumption app (how much water you drink in a day) in SQLite and Python.
Then I wanted to use it on my phone so I made a Kotlin app as a UI for the simple database.
Then I wondered, how far could I get if I just ran a Python terminal app on my phone?
Well, I got surprisingly far...
https://youtu.be/sTj1FalZMVw?si=yZShqGdDBewV8dob
Happy to release the code at some point. Just need to organize the repo a bit.
I'm surprised I haven't seen more terminal apps intended to be run as phone apps like this. Let's me know if you know of any others.
- dharmatech 10mo agoLink to the video: https://youtu.be/sTj1FalZMVw?si=yZShqGdDBewV8dob https://youtu.be/sTj1FalZMVw?si=yZShqGdDBewV8dob
- Stevemiller07 10mo agoNice experiment. Running a Python terminal app on a phone is more practical than people expect for small tools like this. The demo looks smooth. Looking forward to the code when you release it.
- dharmatech 10mo agoThanks for checking it out!
- dharmatech 10mo agoSource now available: https://github.com/dharmatech/sqlite-water-tracker.py https://github.com/dharmatech/sqlite-water-tracker.py
- McNulty2 10mo agoI've used JuiceSSH client for ages, and it has a localhost option. I've played with it but never had a use for it
- dharmatech 10mo agoIf you have Android, check out the UserLand app.
- dharmatech 10mo agoSource now available: https://github.com/dharmatech/sqlite-water-tracker.py https://github.com/dharmatech/sqlite-water-tracker.py
- dasboth 10mo agoTextual apps powered by sqlite running on a phone sounds like a superpower for filling your phone with useful tools, thanks for sharing! Does it access a local sqlite file or are you hosting that somewhere? Either way, this is really neat.
- dharmatech 10mo agoThanks for checking it out! Currently yeah, it's accessing a local sqlite file.
- dharmatech 10mo agoSource now available: https://github.com/dharmatech/sqlite-water-tracker.py https://github.com/dharmatech/sqlite-water-tracker.py
- dharmatech 10mo agoJust tested on termux and it works great there too.
- rumpelstiel 10mo agoYou could split the ui and backend code using fast api and sqlalchemy. so you later could change the ui endpoint to point to your nas hosted remote backend (using vpn), but thanks for the i spiration using a tui. Or you could create a app user on a ssh server and this user starts this app instead of a shell on the server, like your-app@your-server.con
- dharmatech 10mo agoSource now available: https://github.com/dharmatech/sqlite-water-tracker.py https://github.com/dharmatech/sqlite-water-tracker.py
- dharmatech 10mo agoYeah, that would be cool to have apps like this available over ssh!