{"id":15015463,"url":"https://github.com/tshirtman/kivy_service_osc","last_synced_at":"2025-04-12T09:15:06.980Z","repository":{"id":12598360,"uuid":"15269268","full_name":"tshirtman/kivy_service_osc","owner":"tshirtman","description":"simple UI/Service communication using osc on python-for-android","archived":false,"fork":false,"pushed_at":"2023-01-30T13:39:56.000Z","size":34,"stargazers_count":62,"open_issues_count":6,"forks_count":21,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-12T09:14:56.964Z","etag":null,"topics":["android","example","kivy","osc","python","service"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tshirtman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-17T23:49:50.000Z","updated_at":"2025-03-03T20:47:21.000Z","dependencies_parsed_at":"2023-02-16T07:50:14.628Z","dependency_job_id":null,"html_url":"https://github.com/tshirtman/kivy_service_osc","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tshirtman%2Fkivy_service_osc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tshirtman%2Fkivy_service_osc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tshirtman%2Fkivy_service_osc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tshirtman%2Fkivy_service_osc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tshirtman","download_url":"https://codeload.github.com/tshirtman/kivy_service_osc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248543839,"owners_count":21121838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","example","kivy","osc","python","service"],"created_at":"2024-09-24T19:47:30.359Z","updated_at":"2025-04-12T09:15:06.963Z","avatar_url":"https://github.com/tshirtman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Purpose\n=======\n\n[![CircleCI](https://circleci.com/gh/tshirtman/kivy_service_osc/tree/master.svg?style=svg)](https://circleci.com/gh/tshirtman/kivy_service_osc/tree/master)\n\nThis code aims at demonstrating an use of services in python-for-android, and\ncommunication between services and a kivy front end.\n\nThat examples uses the OSC protocol for simplicity and historical reasons,\n(since an implementation was shipped with kivy historically, and a better one\nis now found in `oscpy`). The OSC protocol makes things simple because\nit's unconnected, you just send a message, and can forget about it. You bind\nfunctions to messages you receive. It's simple enough for a lot of things, and\navoids the burden of maintaining a connection when both the service and front\nend can be restarted any time.\n\nThe app is composed of the front-end, defined in src/main.py, and the back-end defined in src/service.py.\n\nThe service (back-end):\n  - is defined in buildozer.spec, in the `services` line. Following the example syntax\n  - is started by the application at startup time, and can be stopped/restarted from the UI.\n  - sends the current date, as a string, every tenth of a second to the UI, on a '/date' address.\n  - answers with a random string on the '/message' address when a message is sent to the '/ping' address on its side.\n\nThe UI (front-end):\n  - is defined in main.py\n  - allows stopping/restarting the backend.\n  - displays the last received messages from the backend in a RecycleView\n  - allow to sent a '/ping' message to the backend, which will trigger a new message.\n\nBuilding:\n  - The package is built using CircleCI, you should be able to download the\n    latest debug apk by clicking on the \"Artifacts\" tab on the latest build.\n  - This project is a template repository, so you can create your own project\n    from it, and setup CircleCI to build your version of it.\n  - You can also just run the `kivy/buildozer` docker image to build your project from any Linux computer.\n\n  ```\n  docker run -v $PWD:/project/ -w /project/ kivy/buildozer android debug\n  ```\n\n  Once it's completed, you should have a bin/ directory with the apk inside.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftshirtman%2Fkivy_service_osc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftshirtman%2Fkivy_service_osc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftshirtman%2Fkivy_service_osc/lists"}