Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/BradenM/micropy-stubs
Automatically Generated Stub Packages for Micropy-Cli and whomever else
https://github.com/BradenM/micropy-stubs
microcontroller micropy-cli micropython python stubs
Last synced: 3 months ago
JSON representation
Automatically Generated Stub Packages for Micropy-Cli and whomever else
- Host: GitHub
- URL: https://github.com/BradenM/micropy-stubs
- Owner: BradenM
- License: other
- Created: 2019-06-19T20:07:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T09:30:30.000Z (almost 2 years ago)
- Last Synced: 2024-04-30T06:33:19.181Z (6 months ago)
- Topics: microcontroller, micropy-cli, micropython, python, stubs
- Language: Python
- Homepage:
- Size: 1.48 MB
- Stars: 28
- Watchers: 5
- Forks: 6
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-micropython - micropy-stubs - Automatically Generated Stub Packages for Micropy-Cli and whomever else. (Development / Code Generation)
README
# Micropy Stubs
> Note: This is currently a WIP. The end goal is to have a mostly automated
> method of creating 'stub packages' with device-specific and firmware-specific
> modules included for micropy-cli. Also, as it was originally aimed at being a quick script for personal use, the code is a bit of a mess. A refactor with tests will be coming soon.Crawls file tree looking for info.json files,
sorting them by either firmware or device.If a firmware file is found, it creates the file structure required and downloads/stubs firmware specific modules.
If a device file is found, it will then download its required modules
and stub them. The initial info file and device stubs must be added manually.Please refer to the [example](./example) directory for more information.
## Credits
This is heavily inspired by (and even uses) [Josvel's micropython-stubber](<[https://link](https://github.com/Josverl/micropython-stubber)>). All credit for the stub generation in this project goes to him and those who aided him.