{"id":30279531,"url":"https://github.com/mgross21/spikeble","last_synced_at":"2026-04-13T01:34:54.322Z","repository":{"id":309115208,"uuid":"1035211792","full_name":"MGross21/spikeble","owner":"MGross21","description":"BLE interface for running MicroPython on LEGO® SPIKE™ devices. ","archived":false,"fork":false,"pushed_at":"2025-08-19T22:41:52.000Z","size":3850,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-13T01:34:42.814Z","etag":null,"topics":["accessibility","ble","bluetooth","educational","lego","micropython","python","robotics","spike","wireless"],"latest_commit_sha":null,"homepage":"","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/MGross21.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-08-09T22:29:14.000Z","updated_at":"2025-08-27T15:29:14.000Z","dependencies_parsed_at":"2025-08-10T12:25:18.322Z","dependency_job_id":null,"html_url":"https://github.com/MGross21/spikeble","commit_stats":null,"previous_names":["mgross21/lego-spike","mgross21/spikeble"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/MGross21/spikeble","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGross21%2Fspikeble","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGross21%2Fspikeble/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGross21%2Fspikeble/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGross21%2Fspikeble/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MGross21","download_url":"https://codeload.github.com/MGross21/spikeble/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGross21%2Fspikeble/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31736723,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T22:19:12.206Z","status":"ssl_error","status_checked_at":"2026-04-12T22:18:33.088Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["accessibility","ble","bluetooth","educational","lego","micropython","python","robotics","spike","wireless"],"created_at":"2025-08-16T14:17:56.384Z","updated_at":"2026-04-13T01:34:54.236Z","avatar_url":"https://github.com/MGross21.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/MGross21/spikeble/main/assets/spikeble_logo.png\" alt=\"spikeble logo\" width=\"300\" /\u003e\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n    \u003csub\u003e(pronounced \"spike-able\")\u003c/sub\u003e\n    \u003cbr\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/MGross21/spikeble/main/assets/lego_spike.png\" alt=\"Lego Spike\"/\u003e\n\u003c/p\u003e\n\n## Installation\n\n*From PyPI:*\n\n```console\npip install spikeble\n```\n\n*From GitHub:*\n\n```console\npip install git+https://github.com/MGross21/spikeble.git\n```\n\n\u003e **⚠️ Warning:**  \n\u003e It is **highly recommended** to install and use this library within a Python virtual environment. Installing `spikeble` will expose all MicroPython modules (such as `app`, `color`, `color_matrix`, `color_sensor`, `device`, `distance_sensor`, `force_sensor`, `hub`, `motor`, `motor_pair`, `orientation`, and `runloop`) as direct imports in your environment. Using a virtual environment prevents conflicts with other Python projects and keeps your global Python installation clean.\n\u003e\n\u003e \u003cdetails\u003e\n\u003e \u003csummary\u003e\u003cstrong\u003eMaking a Python Virtual Environment\u003c/strong\u003e\u003c/summary\u003e\n\u003e\n\u003e ```bash\n\u003e python -m venv .venv\n\u003e\n\u003e # Activate the virtual environment\n\u003e # On Windows:\n\u003e venv\\Scripts\\activate\n\u003e\n\u003e # On macOS/Linux:\n\u003e source venv/bin/activate\n\u003e ```\n\u003e\n\u003e Once activated, you can install `spikeble` and other dependencies.\n\u003e\n\u003e \u003c/details\u003e\n\n## Running Code on SPIKE\n\nTo enable auto-complete for MicroPython APIs, place all MicroPython imports inside your `main()` function.  \nUse the template below as a starting point for your SPIKE code:\n\n```python\nimport spikeble\nimport asyncio\n\ndef main():\n    # from app import sound, bargraph, display, linegraph, music\n    import color\n    import color_matrix\n    import color_sensor\n    import device\n    import distance_sensor\n    import force_sensor\n    from hub import port, button, light, light_matrix, motion_sensor, sound\n    import motor\n    import motor_pair\n    import orientation\n    import runloop\n\n    ### Insert Your Code Here ###\n\nif __name__ == \"__main__\":\n    asyncio.run(spikeble.run(main))\n```\n\n\u003e **Note:**  \n\u003e As of `SPIKE™ Firmware v1.8.149` and `RPC v1.0.47`, using `import app` or `from app import ...` will result in an import error. The `app` module is currently disabled until further notice.\n\n### Other Send Methods\n\nYou can also run code on the SPIKE using the following methods:\n\n```python\nspikeble.run_file(\"path/to/your_script.py\")\n```\n\n```python\nspikeble.run_str(\"print('Hello from SPIKE!')\")\n```\n\n## Documentation\n\n- [MicroPython Docs](https://spike.legoeducation.com/prime/modal/help/lls-help-python)\n- [Communication Protocol](https://github.com/LEGO/spike-prime-docs)\n\u003c!-- - [Spike 3 Python Docs (Unofficial)](https://tuftsceeo.github.io/SPIKEPythonDocs/SPIKE3.html) --\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgross21%2Fspikeble","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgross21%2Fspikeble","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgross21%2Fspikeble/lists"}