{"id":21070750,"url":"https://github.com/microbit-foundation/micropython-microbit-stubs","last_synced_at":"2025-05-16T05:31:05.627Z","repository":{"id":75374542,"uuid":"393065215","full_name":"microbit-foundation/micropython-microbit-stubs","owner":"microbit-foundation","description":"Type stubs for MicroPython for micro:bit to support the micro:bit Python Editor V3","archived":false,"fork":false,"pushed_at":"2025-04-08T09:12:44.000Z","size":1185,"stargazers_count":3,"open_issues_count":11,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-10T13:41:06.158Z","etag":null,"topics":["micropython","python"],"latest_commit_sha":null,"homepage":"https://python.microbit.org/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microbit-foundation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"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}},"created_at":"2021-08-05T14:06:52.000Z","updated_at":"2025-04-08T09:12:47.000Z","dependencies_parsed_at":"2023-11-12T22:25:50.356Z","dependency_job_id":"cbc8ce47-9cdc-439b-b2c2-38494e45c8c9","html_url":"https://github.com/microbit-foundation/micropython-microbit-stubs","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbit-foundation%2Fmicropython-microbit-stubs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbit-foundation%2Fmicropython-microbit-stubs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbit-foundation%2Fmicropython-microbit-stubs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbit-foundation%2Fmicropython-microbit-stubs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microbit-foundation","download_url":"https://codeload.github.com/microbit-foundation/micropython-microbit-stubs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254473874,"owners_count":22077191,"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":["micropython","python"],"created_at":"2024-11-19T18:48:11.046Z","updated_at":"2025-05-16T05:31:00.616Z","avatar_url":"https://github.com/microbit-foundation.png","language":"Python","funding_links":[],"categories":["🐍 Python"],"sub_categories":["🐍 Python Tools"],"readme":"# micro:bit MicroPython stubs for editor support\n\nThis project contains Python stub files for [MicroPython for micro:bit V2](https://github.com/microbit-foundation/micropython-microbit-v2).\n\nThe easiest way to try these type stubs is to use the online [micro:bit Python Editor](https://python.microbit.org) which uses them for its code intelligence features and the API documentation.\n\n## Licensing\n\nThese stubs are MIT or Apache 2.0 licensed depending on their origin (typeshed or MicroPython).\nSee [LICENSE.md](./LICENSE.md) for details.\n\n## Translations\n\nWe maintain translations of these files in the [micro:bit Crowdin project](https://crowdin.com/project/microbitorg) in [this file](https://crowdin.com/translate/microbitorg/6422). Only changes to the English source should be made in this repository.\n\nThe source content is in English in `lang/en`.\n\nThe translated versions are periodically updated in this repository via a script.\n\nWe translate:\n\n- First lines of all docstrings\n- First lines of parameter documentation in `:param name:`-style\n- The API name, e.g. function name, with underscores replaced with spaces to make clear it's a hint not the actual name. This is displayed alongside the English API name.\n- Parameter names (again with underscores replaced). These are displayed alongside the English parameter name.\n\n## Scripts\n\n`browser-package.py` packages the typeshed and a Pyright config file in a JSON format that can be consumed by the [Python Editor V3 project](https://github.com/microbit-foundation/python-editor-v3). A file is created per language.\n\n## Testing\n\nThe stubs are tested against the code in the `examples/` folder using Pyright. To run the tests locally run `npm install` to install Pyright and then `npm test`.\n\n## Code of Conduct\n\nTrust, partnership, simplicity and passion are our core values we live and\nbreathe in our daily work life and within our projects. Our open-source\nprojects are no exception. We have an active community which spans the globe\nand we welcome and encourage participation and contributions to our projects\nby everyone. We work to foster a positive, open, inclusive and supportive\nenvironment and trust that our community respects the micro:bit code of\nconduct. Please see our [code of conduct](https://microbit.org/safeguarding/)\nwhich outlines our expectations for all those that participate in our\ncommunity and details on how to report any concerns and what would happen\nshould breaches occur.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrobit-foundation%2Fmicropython-microbit-stubs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrobit-foundation%2Fmicropython-microbit-stubs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrobit-foundation%2Fmicropython-microbit-stubs/lists"}