Skip to content

BradenM/micropy-stubs

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 directory for more information.

Credits

This is heavily inspired by (and even uses) Josvel's micropython-stubber. All credit for the stub generation in this project goes to him and those who aided him.

About

Automatically Generated Stub Packages for Micropy-Cli and whomever else

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages