{"id":17930303,"url":"https://github.com/pmp-p/wapy","last_synced_at":"2025-03-24T04:31:16.516Z","repository":{"id":109581404,"uuid":"260621193","full_name":"pmp-p/wapy","owner":"pmp-p","description":"wasmicropython https://pmp-p.github.io/wapy/minide/ with focus on Python not devices","archived":false,"fork":false,"pushed_at":"2021-05-04T06:16:28.000Z","size":48719,"stargazers_count":9,"open_issues_count":17,"forks_count":0,"subscribers_count":5,"default_branch":"wapy-wasi","last_synced_at":"2024-10-29T18:42:44.297Z","etag":null,"topics":["emscripten","micropython","python","wasm","web-assembly","webdev","wip-do-not-use"],"latest_commit_sha":null,"homepage":"https://pmp-p.github.io/wapy.es6","language":"C","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/pmp-p.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"micropython"}},"created_at":"2020-05-02T05:33:54.000Z","updated_at":"2023-04-30T02:53:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"6244bfce-5933-43a1-8409-18c0a7851603","html_url":"https://github.com/pmp-p/wapy","commit_stats":{"total_commits":11208,"total_committers":368,"mean_commits":"30.456521739130434","dds":0.5081192005710207,"last_synced_commit":"8f5467087586e443283944b40be34ae21116f09e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmp-p%2Fwapy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmp-p%2Fwapy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmp-p%2Fwapy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmp-p%2Fwapy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmp-p","download_url":"https://codeload.github.com/pmp-p/wapy/tar.gz/refs/heads/wapy-wasi","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245211030,"owners_count":20578331,"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":["emscripten","micropython","python","wasm","web-assembly","webdev","wip-do-not-use"],"created_at":"2024-10-28T21:12:46.003Z","updated_at":"2025-03-24T04:31:13.423Z","avatar_url":"https://github.com/pmp-p.png","language":"C","funding_links":["https://github.com/sponsors/micropython"],"categories":[],"sub_categories":[],"readme":"[![CI badge](https://github.com/micropython/micropython/workflows/unix%20port/badge.svg)](https://github.com/micropython/micropython/actions?query=branch%3Amaster+event%3Apush) [![Coverage badge](https://coveralls.io/repos/micropython/micropython/badge.png?branch=master)](https://coveralls.io/r/micropython/micropython?branch=master)\n\nThe MicroPython project\n=======================\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/micropython/micropython/master/logo/upython-with-micro.jpg\" alt=\"MicroPython Logo\"/\u003e\n\u003c/p\u003e\n\nThis is the MicroPython project, which aims to put an implementation\nof Python 3.x on microcontrollers and small embedded systems.\nYou can find the official website at [micropython.org](http://www.micropython.org).\n\nWARNING: this project is in beta stage and is subject to changes of the\ncode-base, including project-wide name changes and API changes.\n\nMicroPython implements the entire Python 3.4 syntax (including exceptions,\n`with`, `yield from`, etc., and additionally `async`/`await` keywords from\nPython 3.5). The following core datatypes are provided: `str` (including\nbasic Unicode support), `bytes`, `bytearray`, `tuple`, `list`, `dict`, `set`,\n`frozenset`, `array.array`, `collections.namedtuple`, classes and instances.\nBuiltin modules include `sys`, `time`, and `struct`, etc. Select ports have\nsupport for `_thread` module (multithreading). Note that only a subset of\nPython 3 functionality is implemented for the data types and modules.\n\nMicroPython can execute scripts in textual source form or from precompiled\nbytecode, in both cases either from an on-device filesystem or \"frozen\" into\nthe MicroPython executable.\n\nSee the repository http://github.com/micropython/pyboard for the MicroPython\nboard (PyBoard), the officially supported reference electronic circuit board.\n\nMajor components in this repository:\n- py/ -- the core Python implementation, including compiler, runtime, and\n  core library.\n- mpy-cross/ -- the MicroPython cross-compiler which is used to turn scripts\n  into precompiled bytecode.\n- ports/unix/ -- a version of MicroPython that runs on Unix.\n- ports/stm32/ -- a version of MicroPython that runs on the PyBoard and similar\n  STM32 boards (using ST's Cube HAL drivers).\n- ports/minimal/ -- a minimal MicroPython port. Start with this if you want\n  to port MicroPython to another microcontroller.\n- tests/ -- test framework and test scripts.\n- docs/ -- user documentation in Sphinx reStructuredText format. Rendered\n  HTML documentation is available at http://docs.micropython.org.\n\nAdditional components:\n- ports/bare-arm/ -- a bare minimum version of MicroPython for ARM MCUs. Used\n  mostly to control code size.\n- ports/teensy/ -- a version of MicroPython that runs on the Teensy 3.1\n  (preliminary but functional).\n- ports/pic16bit/ -- a version of MicroPython for 16-bit PIC microcontrollers.\n- ports/cc3200/ -- a version of MicroPython that runs on the CC3200 from TI.\n- ports/esp8266/ -- a version of MicroPython that runs on Espressif's ESP8266 SoC.\n- ports/esp32/ -- a version of MicroPython that runs on Espressif's ESP32 SoC.\n- ports/nrf/ -- a version of MicroPython that runs on Nordic's nRF51 and nRF52 MCUs.\n- extmod/ -- additional (non-core) modules implemented in C.\n- tools/ -- various tools, including the pyboard.py module.\n- examples/ -- a few example Python scripts.\n\nThe subdirectories above may include READMEs with additional info.\n\n\"make\" is used to build the components, or \"gmake\" on BSD-based systems.\nYou will also need bash, gcc, and Python 3.3+ available as the command `python3`\n(if your system only has Python 2.7 then invoke make with the additional option\n`PYTHON=python2`).\n\nThe MicroPython cross-compiler, mpy-cross\n-----------------------------------------\n\nMost ports require the MicroPython cross-compiler to be built first.  This\nprogram, called mpy-cross, is used to pre-compile Python scripts to .mpy\nfiles which can then be included (frozen) into the firmware/executable for\na port.  To build mpy-cross use:\n\n    $ cd mpy-cross\n    $ make\n\nThe Unix version\n----------------\n\nThe \"unix\" port requires a standard Unix environment with gcc and GNU make.\nx86 and x64 architectures are supported (i.e. x86 32- and 64-bit), as well\nas ARM and MIPS. Making full-featured port to another architecture requires\nwriting some assembly code for the exception handling and garbage collection.\nAlternatively, fallback implementation based on setjmp/longjmp can be used.\n\nTo build (see section below for required dependencies):\n\n    $ cd ports/unix\n    $ make submodules\n    $ make\n\nThen to give it a try:\n\n    $ ./micropython\n    \u003e\u003e\u003e list(5 * x + y for x in range(10) for y in [4, 2, 1])\n\nUse `CTRL-D` (i.e. EOF) to exit the shell.\nLearn about command-line options (in particular, how to increase heap size\nwhich may be needed for larger applications):\n\n    $ ./micropython -h\n\nRun complete testsuite:\n\n    $ make test\n\nUnix version comes with a builtin package manager called upip, e.g.:\n\n    $ ./micropython -m upip install micropython-pystone\n    $ ./micropython -m pystone\n\nBrowse available modules on\n[PyPI](https://pypi.python.org/pypi?%3Aaction=search\u0026term=micropython).\nStandard library modules come from\n[micropython-lib](https://github.com/micropython/micropython-lib) project.\n\nExternal dependencies\n---------------------\n\nBuilding MicroPython ports may require some dependencies installed.\n\nFor Unix port, `libffi` library and `pkg-config` tool are required. On\nDebian/Ubuntu/Mint derivative Linux distros, install `build-essential`\n(includes toolchain and make), `libffi-dev`, and `pkg-config` packages.\n\nOther dependencies can be built together with MicroPython. This may\nbe required to enable extra features or capabilities, and in recent\nversions of MicroPython, these may be enabled by default. To build\nthese additional dependencies, in the port directory you're\ninterested in (e.g. `ports/unix/`) first execute:\n\n    $ make submodules\n\nThis will fetch all the relevant git submodules (sub repositories) that\nthe port needs.  Use the same command to get the latest versions of\nsubmodules as they are updated from time to time. After that execute:\n\n    $ make deplibs\n\nThis will build all available dependencies (regardless whether they\nare used or not). If you intend to build MicroPython with additional\noptions (like cross-compiling), the same set of options should be passed\nto `make deplibs`. To actually enable/disable use of dependencies, edit\n`ports/unix/mpconfigport.mk` file, which has inline descriptions of the options.\nFor example, to build SSL module (required for `upip` tool described above,\nand so enabled by default), `MICROPY_PY_USSL` should be set to 1.\n\nFor some ports, building required dependences is transparent, and happens\nautomatically.  But they still need to be fetched with the `make submodules`\ncommand.\n\nThe STM32 version\n-----------------\n\nThe \"stm32\" port requires an ARM compiler, arm-none-eabi-gcc, and associated\nbin-utils.  For those using Arch Linux, you need arm-none-eabi-binutils,\narm-none-eabi-gcc and arm-none-eabi-newlib packages.  Otherwise, try here:\nhttps://launchpad.net/gcc-arm-embedded\n\nTo build:\n\n    $ cd ports/stm32\n    $ make submodules\n    $ make\n\nYou then need to get your board into DFU mode.  On the pyboard, connect the\n3V3 pin to the P1/DFU pin with a wire (on PYBv1.0 they are next to each other\non the bottom left of the board, second row from the bottom).\n\nThen to flash the code via USB DFU to your device:\n\n    $ make deploy\n\nThis will use the included `tools/pydfu.py` script.  If flashing the firmware\ndoes not work it may be because you don't have the correct permissions, and\nneed to use `sudo make deploy`.\nSee the README.md file in the ports/stm32/ directory for further details.\n\nContributing\n------------\n\nMicroPython is an open-source project and welcomes contributions. To be\nproductive, please be sure to follow the\n[Contributors' Guidelines](https://github.com/micropython/micropython/wiki/ContributorGuidelines)\nand the [Code Conventions](https://github.com/micropython/micropython/blob/master/CODECONVENTIONS.md).\nNote that MicroPython is licenced under the MIT license, and all contributions\nshould follow this license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmp-p%2Fwapy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmp-p%2Fwapy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmp-p%2Fwapy/lists"}