{"id":21809836,"url":"https://github.com/eiichiroito/mpytools","last_synced_at":"2026-05-06T04:02:18.935Z","repository":{"id":48522643,"uuid":"410786238","full_name":"EiichiroIto/MPyTools","owner":"EiichiroIto","description":"MicroPython tools for Pharo Smalltalk","archived":false,"fork":false,"pushed_at":"2022-10-12T12:12:03.000Z","size":390,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-26T05:14:53.737Z","etag":null,"topics":["esp32","esp8266","micropython","pharo","smalltalk"],"latest_commit_sha":null,"homepage":"","language":"Smalltalk","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/EiichiroIto.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}},"created_at":"2021-09-27T07:35:19.000Z","updated_at":"2023-10-23T11:25:21.000Z","dependencies_parsed_at":"2023-01-20T02:48:07.864Z","dependency_job_id":null,"html_url":"https://github.com/EiichiroIto/MPyTools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EiichiroIto%2FMPyTools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EiichiroIto%2FMPyTools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EiichiroIto%2FMPyTools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EiichiroIto%2FMPyTools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EiichiroIto","download_url":"https://codeload.github.com/EiichiroIto/MPyTools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244762242,"owners_count":20506226,"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":["esp32","esp8266","micropython","pharo","smalltalk"],"created_at":"2024-11-27T13:24:47.542Z","updated_at":"2026-05-06T04:02:13.917Z","avatar_url":"https://github.com/EiichiroIto.png","language":"Smalltalk","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MPyTools\nMicroPython tools for Pharo Smalltalk\n\n[![Build Status](https://app.travis-ci.com/EiichiroIto/MPyTools.svg?branch=master)](https://app.travis-ci.com/EiichiroIto/MPyTools)\n\nMPyTools is a tool for developing application of MicroPython devices using Pharo Smalltalk.\n\nIt consists of following tools.\n\n* Communication tool which interacts with MicroPython devices.\n* Generator tool which generates MicroPython codes from Smalltalk class.\n\nYou can make MicroPython application using Pharo System Browser, and then check it by transfering it to MicroPython device directly.\n\n## Acknowledgement\n\nThis project is inspired from MicroSqueak and rewrited some codes in Pharo Smalltalk. (https://web.media.mit.edu/~jmaloney/microsqueak/)\n\n# MPyTool\nMPyTool communicates with MicroPython devices through a serial port. It sends MicroPython expression and receive its response, also it supports for uploading and downloading files.\n\n## Usage\n\n```Smalltalk\n| mp |\nmp := MPyTool new.\nmp useSerial.\n(mp evaluate: '1+2') inspect.\n```\n\n```Smalltalk\nMPyTool new\n  useSerial;\n  upload: 'print(\"Hello\")' fileNamed: 'main.py'.\n```\n\n# MicroPythonCoder\nMicroPythonCoder generates MicroPython code from a method or methods of a class.\nFor example, a code in Smalltalk,\n\n```Smalltalk\nhelloWorld\n  self isFunction: true.\n  self print: 'Hello, World!'\n```\n\nIt is converted into the following MicroPython code.\n\n```Python\ndef hello_world():\n  print(\"Hello, World!\")\n```\n\nThere are several types of devices using MicroPython. Currently MicroPythonCoder supports only ESP8266/ESP32 and micro:bit devices. See samples.\n\n## Usage\nTo get MicroPython code of a class, send #asMicroPython message to the class.\n\n```smalltalk\nESP8266Sample asMicroPython\n```\n\nTo execute whole the class in a device,\n\n```smalltalk\nMPyTool new\n  useSerial;\n  execute: ESP8266Sample asMicroPython.\n```\n\nTo store the code as a 'main.py' file,\n\n```smalltalk\nMPyTool new\n  useSerial;\n  upload: ESP8266Sample asMicroPython fileNamed: 'main.py'.\n```\n\n# MPyToolGUI\n\n![Screenshot1](https://raw.githubusercontent.com/EiichiroIto/MPyTools/master/images/screenshot1.png)\n\n## Usage\n\n```Smalltalk\nSpMPyTool new open\n```\n\n# Installation\n\n```smalltalk\nMetacello new\n    baseline: 'MPyTools';\n    repository: 'github://EiichiroIto/MPyTools/src';\n    load.\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feiichiroito%2Fmpytools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feiichiroito%2Fmpytools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feiichiroito%2Fmpytools/lists"}