{"id":13456553,"url":"https://github.com/kivy/python-for-android","last_synced_at":"2025-05-12T05:17:37.099Z","repository":{"id":1937041,"uuid":"2866041","full_name":"kivy/python-for-android","owner":"kivy","description":"Turn your Python application into an Android APK","archived":false,"fork":false,"pushed_at":"2025-05-07T20:00:43.000Z","size":19338,"stargazers_count":8566,"open_issues_count":189,"forks_count":1920,"subscribers_count":346,"default_branch":"develop","last_synced_at":"2025-05-12T02:43:19.237Z","etag":null,"topics":["android","apk","kivy","packaging","python"],"latest_commit_sha":null,"homepage":"https://python-for-android.readthedocs.io","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/kivy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2011-11-28T09:02:36.000Z","updated_at":"2025-05-11T15:48:54.000Z","dependencies_parsed_at":"2023-11-23T11:03:36.880Z","dependency_job_id":"1bab5d11-0b24-40fa-bb6f-3c5becc8333c","html_url":"https://github.com/kivy/python-for-android","commit_stats":{"total_commits":2732,"total_committers":271,"mean_commits":"10.081180811808117","dds":0.677891654465593,"last_synced_commit":"10c529261d1cb19f1873bcf31db4e3f88c099488"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kivy%2Fpython-for-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kivy%2Fpython-for-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kivy%2Fpython-for-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kivy%2Fpython-for-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kivy","download_url":"https://codeload.github.com/kivy/python-for-android/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253672676,"owners_count":21945479,"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","apk","kivy","packaging","python"],"created_at":"2024-07-31T08:01:23.965Z","updated_at":"2025-05-12T05:17:37.077Z","avatar_url":"https://github.com/kivy.png","language":"Python","readme":"# python-for-android\n\npython-for-android (p4a) is a development tool that packages Python apps into\nbinaries that can run on Android devices.\n\nIt can generate: \n\n* [Android Package](https://en.wikipedia.org/wiki/Apk_(file_format)) (APK)\n  files, ready to install locally on a device, especially for testing. This format\n  is used by many [app stores](https://en.wikipedia.org/wiki/List_of_Android_app_stores)\n  but not [Google Play Store](https://play.google.com/store/). \n* [Android App Bundle](https://developer.android.com/guide/app-bundle/faq) \n  (AAB) files which can be shared on [Google Play Store](https://play.google.com/store/).\n* [Android Archive](https://developer.android.com/studio/projects/android-library)\n  (AAR) files which can be used as a reusable bundle of resources for other \n  projects.\n \nIt supports multiple CPU architectures.\n\nIt supports apps developed with [Kivy framework](http://kivy.org), but was\nbuilt to be flexible about the backend libraries (through \"bootstraps\"), and \nalso supports [PySDL2](https://pypi.org/project/PySDL2/), and a\n[WebView](https://developer.android.com/reference/android/webkit/WebView) with\na Python web server.\n\nIt automatically supports dependencies on most pure Python packages. For other\npackages, including those that depend on C code, a special \"recipe\" must be \nwritten to support cross-compiling. python-for-android comes with recipes for\nmany of the most popular libraries (e.g. numpy and sqlalchemy) built in.\n\npython-for-android works by cross-compiling the Python interpreter and its\ndependencies for Android devices, and bundling it with the app's python code\nand dependencies. The Python code is then interpreted on the Android device.\n\nIt is recommended that python-for-android be used via \n[Buildozer](https://buildozer.readthedocs.io/), which ensures the correct\ndependencies are pre-installed, and centralizes the configuration. However, \npython-for-android is not limited to being used with Buildozer.\n\n[![Backers on Open Collective](https://opencollective.com/kivy/backers/badge.svg)](#backers)\n[![Sponsors on Open Collective](https://opencollective.com/kivy/sponsors/badge.svg)](#sponsors)\n[![GitHub contributors](https://img.shields.io/github/contributors-anon/kivy/python-for-android)](https://github.com/kivy/python-for-android/graphs/contributors)\n[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)\n\n![PyPI - Version](https://img.shields.io/pypi/v/python-for-android)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/python-for-android)\n\n[![Unit tests \u0026 build apps](https://github.com/kivy/python-for-android/workflows/Unit%20tests%20\u0026%20build%20apps/badge.svg?branch=develop)](https://github.com/kivy/python-for-android/actions?query=workflow%3A%22Unit+tests+%26+build+apps%22)\n[![Coverage Status](https://coveralls.io/repos/github/kivy/python-for-android/badge.svg?branch=develop\u0026kill_cache=1)](https://coveralls.io/github/kivy/python-for-android?branch=develop)\n[![Docker](https://github.com/kivy/python-for-android/actions/workflows/docker.yml/badge.svg)](https://github.com/kivy/python-for-android/actions/workflows/docker.yml)\n\n## Documentation\n\nMore information is available in the \n[online documentation](https://python-for-android.readthedocs.io) including a\n[quickstart guide](https://python-for-android.readthedocs.io/en/latest/quickstart.html).\n\npython-for-android is managed by the [Kivy team](https://kivy.org).\n\n## Support\n\nAre you having trouble using python-for-android or any of its related projects\nin the Kivy ecosystem?\nIs there an error you don’t understand? Are you trying to figure out how to use \nit? We have volunteers who can help!\n\nThe best channels to contact us for support are listed in the latest \n[Contact Us](https://github.com/kivy/pyton-for-android/blob/master/CONTACT.md)\ndocument.\n\n## Code of Conduct\n\nIn the interest of fostering an open and welcoming community, we as \ncontributors and maintainers need to ensure participation in our project and \nour sister projects is a harassment-free and positive experience for everyone. \nIt is vital that all interaction is conducted in a manner conveying respect, \nopen-mindedness and gratitude.\n\nPlease consult the [latest Code of Conduct](https://github.com/kivy/python-for-android/blob/master/CODE_OF_CONDUCT.md).\n\n## Contributors\n\nThis project exists thanks to \n[all the people who contribute](https://github.com/kivy/python-for-android/graphs/contributors).\n[[Become a contributor](CONTRIBUTING.md)].\n\n\u003cimg src=\"https://contrib.nn.ci/api?repo=kivy/python-for-android\u0026pages=5\u0026no_bot=true\u0026radius=22\u0026cols=18\"\u003e\n\n## Backers\n\nThank you to [all of our backers](https://opencollective.com/kivy)! \n🙏 [[Become a backer](https://opencollective.com/kivy#backer)]\n\n\u003cimg src=\"https://opencollective.com/kivy/backers.svg?width=890\u0026avatarHeight=44\u0026button=false\"\u003e\n\n## Sponsors\n\nSpecial thanks to \n[all of our sponsors, past and present](https://opencollective.com/kivy).\nSupport this project by \n[[becoming a sponsor](https://opencollective.com/kivy#sponsor)].\n\nHere are our top current sponsors. Please click through to see their websites,\nand support them as they support us. \n\n\u003c!--- See https://github.com/orgs/kivy/discussions/15 for explanation of this code. --\u003e\n\u003ca href=\"https://opencollective.com/kivy/sponsor/0/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/kivy/sponsor/0/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/kivy/sponsor/1/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/kivy/sponsor/1/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/kivy/sponsor/2/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/kivy/sponsor/2/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/kivy/sponsor/3/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/kivy/sponsor/3/avatar.svg\"\u003e\u003c/a\u003e\n\n\u003ca href=\"https://opencollective.com/kivy/sponsor/4/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/kivy/sponsor/4/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/kivy/sponsor/5/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/kivy/sponsor/5/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/kivy/sponsor/6/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/kivy/sponsor/6/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/kivy/sponsor/7/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/kivy/sponsor/7/avatar.svg\"\u003e\u003c/a\u003e\n\n\u003ca href=\"https://opencollective.com/kivy/sponsor/8/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/kivy/sponsor/8/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/kivy/sponsor/9/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/kivy/sponsor/9/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/kivy/sponsor/10/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/kivy/sponsor/10/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/kivy/sponsor/11/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/kivy/sponsor/11/avatar.svg\"\u003e\u003c/a\u003e\n\n\u003ca href=\"https://opencollective.com/kivy/sponsor/12/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/kivy/sponsor/12/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/kivy/sponsor/13/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/kivy/sponsor/13/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/kivy/sponsor/14/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/kivy/sponsor/14/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/kivy/sponsor/15/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/kivy/sponsor/15/avatar.svg\"\u003e\u003c/a\u003e\n","funding_links":["https://opencollective.com/kivy)!","https://opencollective.com/kivy"],"categories":["Python","Uncategorized","Python (1887)","Python 程序","Android Hacking"],"sub_categories":["Uncategorized","网络服务_其他"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkivy%2Fpython-for-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkivy%2Fpython-for-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkivy%2Fpython-for-android/lists"}