micropython-stubber


Namemicropython-stubber JSON
Version 1.20.1 PyPI version JSON
download
home_pagehttps://github.com/Josverl/micropython-stubber#readme
SummaryTooling to create and maintain stubs for MicroPython
upload_time2024-05-02 20:58:52
maintainerNone
docs_urlNone
authorJos Verlinde
requires_python<4.0,>=3.9
licenseMIT
keywords micropython stubs vscode pyright linting static type check
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Boost MicroPython productivity in VSCode
 
  [![pypi version](https://badgen.net/pypi/v/micropython-stubber)](https://pypi.org/project/micropython-stubber/)
  [![python versions](https://badgen.net/pypi/python/micropython-stubber)](https://badgen.net/pypi/python/micropython-stubber)
  [![Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black "Black badge")
  [![Star on GitHub](https://img.shields.io/github/stars/josverl/micropython-stubber.svg?style=social)](https://github.com/josverl/micropython-stubber/stargazers)
  [![All Contributors](https://img.shields.io/badge/all_contributors-19-green.svg?style=flat-square)](#Contributions)
  <!-- break -->
  [![pytest stubber](https://github.com/Josverl/micropython-stubber/actions/workflows/pytest.yml/badge.svg)](https://github.com/Josverl/micropython-stubber/actions/workflows/pytest.yml)
  [![pytest mpflash](https://github.com/Josverl/micropython-stubber/actions/workflows/pytest_mpflash.yml/badge.svg)](https://github.com/Josverl/micropython-stubber/actions/workflows/pytest_mpflash.yml)
  [![Documentation Status](https://readthedocs.org/projects/micropython-stubber/badge/?version=latest)](https://micropython-stubber.readthedocs.io/en/latest/?badge=latest "Document build status badge")
  <!-- break -->
  [![Open in VSCode](https://img.shields.io/static/v1?logo=visualstudiocode&label=&message=Open%20in%20Visual%20Studio%20Code&labelColor=2c2c32&color=007acc&logoColor=007acc
)](https://open.vscode.dev/josverl/micropython-stubber)
  
The intellisense and code linting that is so prevalent in modern editors, does not work out-of-the-gate for MicroPython projects.
While the language is Python, the modules used are different from CPython , and also different ports have different modules and classes , or the same class with different parameters.

Writing MicroPython code in a modern editor should not need to involve keeping a browser open to check for the exact parameters to read a sensor, light-up a led or send a network request.

Fortunately with some additional configuration and data, it is possible to make the editors understand your flavor of MicroPython, wether you use one of the pre-compiled firmwares, but also if you run a one-off custom firmware version.


![demo][]]

In order to achieve this a few things are needed:
1) Stub files for the native / enabled modules in the firmware using PEP 484 Type Hints
2) Specific configuration of the VSCode Python extensions 
3) Specific configuration of Pylint [ Optional ]
4) Suppression of warnings that collide with the MicroPython principals or code optimization.

Please review the documentation on [https://micropython-stubber.readthedocs.io]  

With that in place, VSCode will understand MicroPython for the most part, and help you to write code, and catch more errors before deploying it to your board. 

Note that the above is not limited to VSCode and pylint, but it happens to be the combination that I use. 

A lot of subs have already been generated and are shared on PyPi, github or pre-installed by a tool, so it is quite likely that you can just grab a copy be be productive in a few minutes.

## To install the stubs from PyPI
This section describes how to install the stubs from PyPI, and how to use them in your project.
If you want to create or maintain stub - please see the next section.

- Install in a typings folder (recommended) 
  `pip install -U micropython-<port>[-<board>]stubs --no-user --target ./typings`
- Install in a venv (after activating) 
  `pip install -U micropython-<port>[-<board>]stubs --no-user`

Examples:
``` bash
pip install -U micropython-stm32-stubs

# Install stubs for a specific version.
pip install -U micropython-esp32-stubs==1.20.0.*

# Install stubs for a specific board.
pip install -U micropython-rp2-pico_w-stubs
```

For more details how to use the stubs please refer to [the documentation on RTD](https://micropython-stubs.readthedocs.io/en/latest/20_using.html)


1. The sister-repo [**MicroPython-stubs**][stubs-repo] contains [all stubs][all-stubs] I have collected with the help of others, and which can be used directly.
That repo also contains examples configuration files that can be easily adopted to your setup.

2. A second repo [micropy-stubs repo][stubs-repo2] maintained by BradenM, also contains stubs, but in a structure only used and distributed by the [micropy-cli](#using-micropy-cli) tool.
You should use micropy-cli to consume stubs from that repo.

The (stretch) goal is to create a VSCode add-in to simplify the configuration, and allow easy switching between different firmwares and versions.


## Install and basic usage of the stubber tool

``` bash
pip install micropython-stubber

# go to your working folder 
cd my_stub_folder
mkdir all-stubs

# clone the micropython repo's and switch to a specific version 
stubber clone
stubber switch --version v1.18

# get the document stubs for the current version ( v1.18 )
stubber get-docstubs

# get the frozen stubs for the current version ( v1.18 )
stubber get-frozen

# get the core CPython compatibility stubs from PyPi 
stubber get-core

# Update the fallback stubs
stubber update-fallback

#
ls all-stubs
dir all-stubs
```


## Developing & testing 

This is described in more detail in the [developing](docs/developing.md) and [testing](docs/testing.md)  documents in the docs folder.

## Branch Main
The name of the default branch has been changed to `main`.
If you have cloned this repo before you main need to adjust the local repro to be aware of this, or create a fresh clone.

To update run the below command:  
``` bash
git branch -m master main                    
git fetch origin
git branch -u origin/main main                      
git remote set-head origin -a
```

for more info see [**Renaming a branch**](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch#updating-a-local-clone-after-a-branch-name-changes)

## Licensing 

MicroPython-Stubber is licensed under the MIT license, and all contributions should follow this [LICENSE](LICENSE).


# Contributions
<!-- spell-checker: disable -->

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
  <tbody>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/Josverl"><img src="https://avatars2.githubusercontent.com/u/981654?v=4?s=100" width="100px;" alt="Jos Verlinde"/><br /><sub><b>Jos Verlinde</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/commits?author=josverl" title="Code">πŸ’»</a> <a href="#research-josverl" title="Research">πŸ”¬</a> <a href="#ideas-josverl" title="Ideas, Planning, & Feedback">πŸ€”</a> <a href="#content-josverl" title="Content">πŸ–‹</a> <a href="#stubs-josverl" title="MicroPython stubs">πŸ“š</a> <a href="#test-josverl" title="Test">βœ”</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://thonny.org/"><img src="https://avatars1.githubusercontent.com/u/46202078?v=4?s=100" width="100px;" alt="Thonny, Python IDE for beginners"/><br /><sub><b>Thonny, Python IDE for beginners</b></sub></a><br /><a href="#ideas-thonny" title="Ideas, Planning, & Feedback">πŸ€”</a> <a href="#research-thonny" title="Research">πŸ”¬</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://micropython.org/"><img src="https://avatars1.githubusercontent.com/u/6298560?v=4?s=100" width="100px;" alt="MicroPython"/><br /><sub><b>MicroPython</b></sub></a><br /><a href="#data-micropython" title="Data">πŸ”£</a> <a href="#stubs-micropython" title="MicroPython stubs">πŸ“š</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/microsoft/pyright"><img src="https://avatars.githubusercontent.com/u/6154722?v=4?s=100" width="100px;" alt="pyright"/><br /><sub><b>pyright</b></sub></a><br /><a href="#tool-pyright" title="Tools">πŸ”§</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/loboris"><img src="https://avatars3.githubusercontent.com/u/6280349?v=4?s=100" width="100px;" alt="Boris Lovosevic"/><br /><sub><b>Boris Lovosevic</b></sub></a><br /><a href="#data-loboris" title="Data">πŸ”£</a> <a href="#stubs-loboris" title="MicroPython stubs">πŸ“š</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/pfalcon"><img src="https://avatars3.githubusercontent.com/u/500451?v=4?s=100" width="100px;" alt="Paul Sokolovsky"/><br /><sub><b>Paul Sokolovsky</b></sub></a><br /><a href="#data-pfalcon" title="Data">πŸ”£</a> <a href="#stubs-pfalcon" title="MicroPython stubs">πŸ“š</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/pycopy"><img src="https://avatars0.githubusercontent.com/u/67273174?v=4?s=100" width="100px;" alt="pycopy"/><br /><sub><b>pycopy</b></sub></a><br /><a href="#data-pycopy" title="Data">πŸ”£</a> <a href="#stubs-pycopy" title="MicroPython stubs">πŸ“š</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/pycom"><img src="https://avatars2.githubusercontent.com/u/16415153?v=4?s=100" width="100px;" alt="Pycom"/><br /><sub><b>Pycom</b></sub></a><br /><a href="#infra-pycom" title="Infrastructure (Hosting, Build-Tools, etc)">πŸš‡</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/BradenM"><img src="https://avatars1.githubusercontent.com/u/5913808?v=4?s=100" width="100px;" alt="Braden Mars"/><br /><sub><b>Braden Mars</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3ABradenM" title="Bug reports">πŸ›</a> <a href="https://github.com/Josverl/micropython-stubber/commits?author=BradenM" title="Code">πŸ’»</a> <a href="#stubs-BradenM" title="MicroPython stubs">πŸ“š</a> <a href="#platform-BradenM" title="Packaging/porting to new platform">πŸ“¦</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://binary.com.au/"><img src="https://avatars2.githubusercontent.com/u/175909?v=4?s=100" width="100px;" alt="James Manners"/><br /><sub><b>James Manners</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/commits?author=jmannau" title="Code">πŸ’»</a> <a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3Ajmannau" title="Bug reports">πŸ›</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://patrickwalters.us/"><img src="https://avatars0.githubusercontent.com/u/4002194?v=4?s=100" width="100px;" alt="Patrick"/><br /><sub><b>Patrick</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3Aaskpatrickw" title="Bug reports">πŸ›</a> <a href="https://github.com/Josverl/micropython-stubber/commits?author=askpatrickw" title="Code">πŸ’»</a> <a href="#stubs-askpatrickw" title="MicroPython stubs">πŸ“š</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://opencollective.com/pythonseverywhere"><img src="https://avatars3.githubusercontent.com/u/16009100?v=4?s=100" width="100px;" alt="Paul m. p. P."/><br /><sub><b>Paul m. p. P.</b></sub></a><br /><a href="#ideas-pmp-p" title="Ideas, Planning, & Feedback">πŸ€”</a> <a href="#research-pmp-p" title="Research">πŸ”¬</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/edreamleo"><img src="https://avatars0.githubusercontent.com/u/592928?v=4?s=100" width="100px;" alt="Edward K. Ream"/><br /><sub><b>Edward K. Ream</b></sub></a><br /><a href="#plugin-edreamleo" title="Plugin/utility libraries">πŸ”Œ</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/dastultz"><img src="https://avatars3.githubusercontent.com/u/4334042?v=4?s=100" width="100px;" alt="Daryl Stultz"/><br /><sub><b>Daryl Stultz</b></sub></a><br /><a href="#stubs-dastultz" title="MicroPython stubs">πŸ“š</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/cabletie"><img src="https://avatars1.githubusercontent.com/u/2356734?v=4?s=100" width="100px;" alt="Keeping things together"/><br /><sub><b>Keeping things together</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3Acabletie" title="Bug reports">πŸ›</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/vbolshakov"><img src="https://avatars2.githubusercontent.com/u/2453324?v=4?s=100" width="100px;" alt="vbolshakov"/><br /><sub><b>vbolshakov</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3Avbolshakov" title="Bug reports">πŸ›</a> <a href="#stubs-vbolshakov" title="MicroPython stubs">πŸ“š</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://lemariva.com/"><img src="https://avatars2.githubusercontent.com/u/15173329?v=4?s=100" width="100px;" alt="Mauro Riva"/><br /><sub><b>Mauro Riva</b></sub></a><br /><a href="#blog-lemariva" title="Blogposts">πŸ“</a> <a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3Alemariva" title="Bug reports">πŸ›</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/MathijsNL"><img src="https://avatars0.githubusercontent.com/u/1612886?v=4?s=100" width="100px;" alt="MathijsNL"/><br /><sub><b>MathijsNL</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3AMathijsNL" title="Bug reports">πŸ›</a></td>
      <td align="center" valign="top" width="14.28%"><a href="http://comingsoon.tm/"><img src="https://avatars0.githubusercontent.com/u/13251689?v=4?s=100" width="100px;" alt="Callum Jacob Hays"/><br /><sub><b>Callum Jacob Hays</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3ACallumJHays" title="Bug reports">πŸ›</a> <a href="#test-CallumJHays" title="Test">βœ”</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/v923z"><img src="https://avatars0.githubusercontent.com/u/1310472?v=4?s=100" width="100px;" alt="ZoltΓ‘n VΓΆrΓΆs"/><br /><sub><b>ZoltΓ‘n VΓΆrΓΆs</b></sub></a><br /><a href="#data-v923z" title="Data">πŸ”£</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/vincent-l-j"><img src="https://avatars.githubusercontent.com/u/20021376?v=4?s=100" width="100px;" alt="vincent-l-j"/><br /><sub><b>vincent-l-j</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/commits?author=vincent-l-j" title="Documentation">πŸ“–</a></td>
    </tr>
    <tr>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/yegorLitvinov"><img src="https://avatars.githubusercontent.com/u/20367310?v=4?s=100" width="100px;" alt="Egor Litvinov"/><br /><sub><b>Egor Litvinov</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/issues?q=author%3AyegorLitvinov" title="Bug reports">πŸ›</a></td>
      <td align="center" valign="top" width="14.28%"><a href="https://github.com/samskiter"><img src="https://avatars.githubusercontent.com/u/1271643?v=4?s=100" width="100px;" alt="Sam Duke"/><br /><sub><b>Sam Duke</b></sub></a><br /><a href="https://github.com/Josverl/micropython-stubber/commits?author=samskiter" title="Code">πŸ’»</a></td>
    </tr>
  </tbody>
</table>

<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

----------------------------

--------------------------------



[stubs-repo]:   https://github.com/Josverl/micropython-stubs
[stubs-repo2]:  https://github.com/BradenM/micropy-stubs
[micropython-stubber]: https://github.com/Josverl/micropython-stubber
[micropython-stubs]: https://github.com/Josverl/micropython-stubs#micropython-stubs
[micropy-cli]: https://github.com/BradenM/micropy-cli
[using-the-stubs]: https://github.com/Josverl/micropython-stubs#using-the-stubs
[demo]:         https://github.com/Josverl/micropython-stubber/blob/main/docs/img/demo.gif?raw=true	"demo of writing code using the stubs"
[stub processing order]: https://github.com/Josverl/micropython-stubber/blob/main/docs/img/stuborder_pylance.png?raw=true	"recommended stub processing order"
[naming-convention]: #naming-convention-and-stub-folder-structure
[all-stubs]: https://github.com/Josverl/micropython-stubs/blob/main/firmwares.md
[micropython]: https://github.com/micropython/micropython
[micropython-lib]:  https://github.com/micropython/micropython-lib
[pycopy]: https://github.com/pfalcon/pycopy
[pycopy-lib]: https://github.com/pfalcon/pycopy-lib


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Josverl/micropython-stubber#readme",
    "name": "micropython-stubber",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "MicroPython, stubs, vscode, pyright, linting, static type check",
    "author": "Jos Verlinde",
    "author_email": "jos_verlinde@hotmail.com",
    "download_url": "https://files.pythonhosted.org/packages/48/2f/db19b9f3d6f95f03612c2c5089e6007cd9bd7ac1be506f82cc3b5a3a5329/micropython_stubber-1.20.1.tar.gz",
    "platform": null,
    "description": "# Boost MicroPython productivity in VSCode\n \n  [![pypi version](https://badgen.net/pypi/v/micropython-stubber)](https://pypi.org/project/micropython-stubber/)\n  [![python versions](https://badgen.net/pypi/python/micropython-stubber)](https://badgen.net/pypi/python/micropython-stubber)\n  [![Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black \"Black badge\")\n  [![Star on GitHub](https://img.shields.io/github/stars/josverl/micropython-stubber.svg?style=social)](https://github.com/josverl/micropython-stubber/stargazers)\n  [![All Contributors](https://img.shields.io/badge/all_contributors-19-green.svg?style=flat-square)](#Contributions)\n  <!-- break -->\n  [![pytest stubber](https://github.com/Josverl/micropython-stubber/actions/workflows/pytest.yml/badge.svg)](https://github.com/Josverl/micropython-stubber/actions/workflows/pytest.yml)\n  [![pytest mpflash](https://github.com/Josverl/micropython-stubber/actions/workflows/pytest_mpflash.yml/badge.svg)](https://github.com/Josverl/micropython-stubber/actions/workflows/pytest_mpflash.yml)\n  [![Documentation Status](https://readthedocs.org/projects/micropython-stubber/badge/?version=latest)](https://micropython-stubber.readthedocs.io/en/latest/?badge=latest \"Document build status badge\")\n  <!-- break -->\n  [![Open in VSCode](https://img.shields.io/static/v1?logo=visualstudiocode&label=&message=Open%20in%20Visual%20Studio%20Code&labelColor=2c2c32&color=007acc&logoColor=007acc\n)](https://open.vscode.dev/josverl/micropython-stubber)\n  \nThe intellisense and code linting that is so prevalent in modern editors, does not work out-of-the-gate for MicroPython projects.\nWhile the language is Python, the modules used are different from CPython , and also different ports have different modules and classes , or the same class with different parameters.\n\nWriting MicroPython code in a modern editor should not need to involve keeping a browser open to check for the exact parameters to read a sensor, light-up a led or send a network request.\n\nFortunately with some additional configuration and data, it is possible to make the editors understand your flavor of MicroPython, wether you use one of the pre-compiled firmwares, but also if you run a one-off custom firmware version.\n\n\n![demo][]]\n\nIn order to achieve this a few things are needed:\n1) Stub files for the native / enabled modules in the firmware using PEP 484 Type Hints\n2) Specific configuration of the VSCode Python extensions \n3) Specific configuration of Pylint [ Optional ]\n4) Suppression of warnings that collide with the MicroPython principals or code optimization.\n\nPlease review the documentation on [https://micropython-stubber.readthedocs.io]  \n\nWith that in place, VSCode will understand MicroPython for the most part, and help you to write code, and catch more errors before deploying it to your board. \n\nNote that the above is not limited to VSCode and pylint, but it happens to be the combination that I use. \n\nA lot of subs have already been generated and are shared on PyPi, github or pre-installed by a tool, so it is quite likely that you can just grab a copy be be productive in a few minutes.\n\n## To install the stubs from PyPI\nThis section describes how to install the stubs from PyPI, and how to use them in your project.\nIf you want to create or maintain stub - please see the next section.\n\n- Install in a typings folder (recommended) \n  `pip install -U micropython-<port>[-<board>]stubs --no-user --target ./typings`\n- Install in a venv (after activating) \n  `pip install -U micropython-<port>[-<board>]stubs --no-user`\n\nExamples:\n``` bash\npip install -U micropython-stm32-stubs\n\n# Install stubs for a specific version.\npip install -U micropython-esp32-stubs==1.20.0.*\n\n# Install stubs for a specific board.\npip install -U micropython-rp2-pico_w-stubs\n```\n\nFor more details how to use the stubs please refer to [the documentation on RTD](https://micropython-stubs.readthedocs.io/en/latest/20_using.html)\n\n\n1. The sister-repo [**MicroPython-stubs**][stubs-repo] contains [all stubs][all-stubs] I have collected with the help of others, and which can be used directly.\nThat repo also contains examples configuration files that can be easily adopted to your setup.\n\n2. A second repo [micropy-stubs repo][stubs-repo2] maintained by BradenM, also contains stubs, but in a structure only used and distributed by the [micropy-cli](#using-micropy-cli) tool.\nYou should use micropy-cli to consume stubs from that repo.\n\nThe (stretch) goal is to create a VSCode add-in to simplify the configuration, and allow easy switching between different firmwares and versions.\n\n\n## Install and basic usage of the stubber tool\n\n``` bash\npip install micropython-stubber\n\n# go to your working folder \ncd my_stub_folder\nmkdir all-stubs\n\n# clone the micropython repo's and switch to a specific version \nstubber clone\nstubber switch --version v1.18\n\n# get the document stubs for the current version ( v1.18 )\nstubber get-docstubs\n\n# get the frozen stubs for the current version ( v1.18 )\nstubber get-frozen\n\n# get the core CPython compatibility stubs from PyPi \nstubber get-core\n\n# Update the fallback stubs\nstubber update-fallback\n\n#\nls all-stubs\ndir all-stubs\n```\n\n\n## Developing & testing \n\nThis is described in more detail in the [developing](docs/developing.md) and [testing](docs/testing.md)  documents in the docs folder.\n\n## Branch Main\nThe name of the default branch has been changed to `main`.\nIf you have cloned this repo before you main need to adjust the local repro to be aware of this, or create a fresh clone.\n\nTo update run the below command:  \n``` bash\ngit branch -m master main                    \ngit fetch origin\ngit branch -u origin/main main                      \ngit remote set-head origin -a\n```\n\nfor more info see [**Renaming a branch**](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch#updating-a-local-clone-after-a-branch-name-changes)\n\n## Licensing \n\nMicroPython-Stubber is licensed under the MIT license, and all contributions should follow this [LICENSE](LICENSE).\n\n\n# Contributions\n<!-- spell-checker: disable -->\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/Josverl\"><img src=\"https://avatars2.githubusercontent.com/u/981654?v=4?s=100\" width=\"100px;\" alt=\"Jos Verlinde\"/><br /><sub><b>Jos Verlinde</b></sub></a><br /><a href=\"https://github.com/Josverl/micropython-stubber/commits?author=josverl\" title=\"Code\">\ud83d\udcbb</a> <a href=\"#research-josverl\" title=\"Research\">\ud83d\udd2c</a> <a href=\"#ideas-josverl\" title=\"Ideas, Planning, & Feedback\">\ud83e\udd14</a> <a href=\"#content-josverl\" title=\"Content\">\ud83d\udd8b</a> <a href=\"#stubs-josverl\" title=\"MicroPython stubs\">\ud83d\udcda</a> <a href=\"#test-josverl\" title=\"Test\">\u2714</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://thonny.org/\"><img src=\"https://avatars1.githubusercontent.com/u/46202078?v=4?s=100\" width=\"100px;\" alt=\"Thonny, Python IDE for beginners\"/><br /><sub><b>Thonny, Python IDE for beginners</b></sub></a><br /><a href=\"#ideas-thonny\" title=\"Ideas, Planning, & Feedback\">\ud83e\udd14</a> <a href=\"#research-thonny\" title=\"Research\">\ud83d\udd2c</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://micropython.org/\"><img src=\"https://avatars1.githubusercontent.com/u/6298560?v=4?s=100\" width=\"100px;\" alt=\"MicroPython\"/><br /><sub><b>MicroPython</b></sub></a><br /><a href=\"#data-micropython\" title=\"Data\">\ud83d\udd23</a> <a href=\"#stubs-micropython\" title=\"MicroPython stubs\">\ud83d\udcda</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/microsoft/pyright\"><img src=\"https://avatars.githubusercontent.com/u/6154722?v=4?s=100\" width=\"100px;\" alt=\"pyright\"/><br /><sub><b>pyright</b></sub></a><br /><a href=\"#tool-pyright\" title=\"Tools\">\ud83d\udd27</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/loboris\"><img src=\"https://avatars3.githubusercontent.com/u/6280349?v=4?s=100\" width=\"100px;\" alt=\"Boris Lovosevic\"/><br /><sub><b>Boris Lovosevic</b></sub></a><br /><a href=\"#data-loboris\" title=\"Data\">\ud83d\udd23</a> <a href=\"#stubs-loboris\" title=\"MicroPython stubs\">\ud83d\udcda</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/pfalcon\"><img src=\"https://avatars3.githubusercontent.com/u/500451?v=4?s=100\" width=\"100px;\" alt=\"Paul Sokolovsky\"/><br /><sub><b>Paul Sokolovsky</b></sub></a><br /><a href=\"#data-pfalcon\" title=\"Data\">\ud83d\udd23</a> <a href=\"#stubs-pfalcon\" title=\"MicroPython stubs\">\ud83d\udcda</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/pycopy\"><img src=\"https://avatars0.githubusercontent.com/u/67273174?v=4?s=100\" width=\"100px;\" alt=\"pycopy\"/><br /><sub><b>pycopy</b></sub></a><br /><a href=\"#data-pycopy\" title=\"Data\">\ud83d\udd23</a> <a href=\"#stubs-pycopy\" title=\"MicroPython stubs\">\ud83d\udcda</a></td>\n    </tr>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/pycom\"><img src=\"https://avatars2.githubusercontent.com/u/16415153?v=4?s=100\" width=\"100px;\" alt=\"Pycom\"/><br /><sub><b>Pycom</b></sub></a><br /><a href=\"#infra-pycom\" title=\"Infrastructure (Hosting, Build-Tools, etc)\">\ud83d\ude87</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/BradenM\"><img src=\"https://avatars1.githubusercontent.com/u/5913808?v=4?s=100\" width=\"100px;\" alt=\"Braden Mars\"/><br /><sub><b>Braden Mars</b></sub></a><br /><a href=\"https://github.com/Josverl/micropython-stubber/issues?q=author%3ABradenM\" title=\"Bug reports\">\ud83d\udc1b</a> <a href=\"https://github.com/Josverl/micropython-stubber/commits?author=BradenM\" title=\"Code\">\ud83d\udcbb</a> <a href=\"#stubs-BradenM\" title=\"MicroPython stubs\">\ud83d\udcda</a> <a href=\"#platform-BradenM\" title=\"Packaging/porting to new platform\">\ud83d\udce6</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://binary.com.au/\"><img src=\"https://avatars2.githubusercontent.com/u/175909?v=4?s=100\" width=\"100px;\" alt=\"James Manners\"/><br /><sub><b>James Manners</b></sub></a><br /><a href=\"https://github.com/Josverl/micropython-stubber/commits?author=jmannau\" title=\"Code\">\ud83d\udcbb</a> <a href=\"https://github.com/Josverl/micropython-stubber/issues?q=author%3Ajmannau\" title=\"Bug reports\">\ud83d\udc1b</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"http://patrickwalters.us/\"><img src=\"https://avatars0.githubusercontent.com/u/4002194?v=4?s=100\" width=\"100px;\" alt=\"Patrick\"/><br /><sub><b>Patrick</b></sub></a><br /><a href=\"https://github.com/Josverl/micropython-stubber/issues?q=author%3Aaskpatrickw\" title=\"Bug reports\">\ud83d\udc1b</a> <a href=\"https://github.com/Josverl/micropython-stubber/commits?author=askpatrickw\" title=\"Code\">\ud83d\udcbb</a> <a href=\"#stubs-askpatrickw\" title=\"MicroPython stubs\">\ud83d\udcda</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://opencollective.com/pythonseverywhere\"><img src=\"https://avatars3.githubusercontent.com/u/16009100?v=4?s=100\" width=\"100px;\" alt=\"Paul m. p. P.\"/><br /><sub><b>Paul m. p. P.</b></sub></a><br /><a href=\"#ideas-pmp-p\" title=\"Ideas, Planning, & Feedback\">\ud83e\udd14</a> <a href=\"#research-pmp-p\" title=\"Research\">\ud83d\udd2c</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/edreamleo\"><img src=\"https://avatars0.githubusercontent.com/u/592928?v=4?s=100\" width=\"100px;\" alt=\"Edward K. Ream\"/><br /><sub><b>Edward K. Ream</b></sub></a><br /><a href=\"#plugin-edreamleo\" title=\"Plugin/utility libraries\">\ud83d\udd0c</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/dastultz\"><img src=\"https://avatars3.githubusercontent.com/u/4334042?v=4?s=100\" width=\"100px;\" alt=\"Daryl Stultz\"/><br /><sub><b>Daryl Stultz</b></sub></a><br /><a href=\"#stubs-dastultz\" title=\"MicroPython stubs\">\ud83d\udcda</a></td>\n    </tr>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/cabletie\"><img src=\"https://avatars1.githubusercontent.com/u/2356734?v=4?s=100\" width=\"100px;\" alt=\"Keeping things together\"/><br /><sub><b>Keeping things together</b></sub></a><br /><a href=\"https://github.com/Josverl/micropython-stubber/issues?q=author%3Acabletie\" title=\"Bug reports\">\ud83d\udc1b</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/vbolshakov\"><img src=\"https://avatars2.githubusercontent.com/u/2453324?v=4?s=100\" width=\"100px;\" alt=\"vbolshakov\"/><br /><sub><b>vbolshakov</b></sub></a><br /><a href=\"https://github.com/Josverl/micropython-stubber/issues?q=author%3Avbolshakov\" title=\"Bug reports\">\ud83d\udc1b</a> <a href=\"#stubs-vbolshakov\" title=\"MicroPython stubs\">\ud83d\udcda</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://lemariva.com/\"><img src=\"https://avatars2.githubusercontent.com/u/15173329?v=4?s=100\" width=\"100px;\" alt=\"Mauro Riva\"/><br /><sub><b>Mauro Riva</b></sub></a><br /><a href=\"#blog-lemariva\" title=\"Blogposts\">\ud83d\udcdd</a> <a href=\"https://github.com/Josverl/micropython-stubber/issues?q=author%3Alemariva\" title=\"Bug reports\">\ud83d\udc1b</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/MathijsNL\"><img src=\"https://avatars0.githubusercontent.com/u/1612886?v=4?s=100\" width=\"100px;\" alt=\"MathijsNL\"/><br /><sub><b>MathijsNL</b></sub></a><br /><a href=\"https://github.com/Josverl/micropython-stubber/issues?q=author%3AMathijsNL\" title=\"Bug reports\">\ud83d\udc1b</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"http://comingsoon.tm/\"><img src=\"https://avatars0.githubusercontent.com/u/13251689?v=4?s=100\" width=\"100px;\" alt=\"Callum Jacob Hays\"/><br /><sub><b>Callum Jacob Hays</b></sub></a><br /><a href=\"https://github.com/Josverl/micropython-stubber/issues?q=author%3ACallumJHays\" title=\"Bug reports\">\ud83d\udc1b</a> <a href=\"#test-CallumJHays\" title=\"Test\">\u2714</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/v923z\"><img src=\"https://avatars0.githubusercontent.com/u/1310472?v=4?s=100\" width=\"100px;\" alt=\"Zolt\u00e1n V\u00f6r\u00f6s\"/><br /><sub><b>Zolt\u00e1n V\u00f6r\u00f6s</b></sub></a><br /><a href=\"#data-v923z\" title=\"Data\">\ud83d\udd23</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/vincent-l-j\"><img src=\"https://avatars.githubusercontent.com/u/20021376?v=4?s=100\" width=\"100px;\" alt=\"vincent-l-j\"/><br /><sub><b>vincent-l-j</b></sub></a><br /><a href=\"https://github.com/Josverl/micropython-stubber/commits?author=vincent-l-j\" title=\"Documentation\">\ud83d\udcd6</a></td>\n    </tr>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/yegorLitvinov\"><img src=\"https://avatars.githubusercontent.com/u/20367310?v=4?s=100\" width=\"100px;\" alt=\"Egor Litvinov\"/><br /><sub><b>Egor Litvinov</b></sub></a><br /><a href=\"https://github.com/Josverl/micropython-stubber/issues?q=author%3AyegorLitvinov\" title=\"Bug reports\">\ud83d\udc1b</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/samskiter\"><img src=\"https://avatars.githubusercontent.com/u/1271643?v=4?s=100\" width=\"100px;\" alt=\"Sam Duke\"/><br /><sub><b>Sam Duke</b></sub></a><br /><a href=\"https://github.com/Josverl/micropython-stubber/commits?author=samskiter\" title=\"Code\">\ud83d\udcbb</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n\n----------------------------\n\n--------------------------------\n\n\n\n[stubs-repo]:   https://github.com/Josverl/micropython-stubs\n[stubs-repo2]:  https://github.com/BradenM/micropy-stubs\n[micropython-stubber]: https://github.com/Josverl/micropython-stubber\n[micropython-stubs]: https://github.com/Josverl/micropython-stubs#micropython-stubs\n[micropy-cli]: https://github.com/BradenM/micropy-cli\n[using-the-stubs]: https://github.com/Josverl/micropython-stubs#using-the-stubs\n[demo]:         https://github.com/Josverl/micropython-stubber/blob/main/docs/img/demo.gif?raw=true\t\"demo of writing code using the stubs\"\n[stub processing order]: https://github.com/Josverl/micropython-stubber/blob/main/docs/img/stuborder_pylance.png?raw=true\t\"recommended stub processing order\"\n[naming-convention]: #naming-convention-and-stub-folder-structure\n[all-stubs]: https://github.com/Josverl/micropython-stubs/blob/main/firmwares.md\n[micropython]: https://github.com/micropython/micropython\n[micropython-lib]:  https://github.com/micropython/micropython-lib\n[pycopy]: https://github.com/pfalcon/pycopy\n[pycopy-lib]: https://github.com/pfalcon/pycopy-lib\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Tooling to create and maintain stubs for MicroPython",
    "version": "1.20.1",
    "project_urls": {
        "Documentation": "https://micropython-stubber.readthedocs.io/",
        "Homepage": "https://github.com/Josverl/micropython-stubber#readme",
        "Repository": "https://github.com/Josverl/micropython-stubber"
    },
    "split_keywords": [
        "micropython",
        " stubs",
        " vscode",
        " pyright",
        " linting",
        " static type check"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5aa38c31f954a67fa3645a70d6c7d97f905f90df164e07e0054fbe0bc036e4db",
                "md5": "1843ffbb254b732283c3525415c70c49",
                "sha256": "bc2b81de49c1f22a756f3288081ffc653837093f5a70ba627f4008c7aa4b69e3"
            },
            "downloads": -1,
            "filename": "micropython_stubber-1.20.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1843ffbb254b732283c3525415c70c49",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 364692,
            "upload_time": "2024-05-02T20:58:49",
            "upload_time_iso_8601": "2024-05-02T20:58:49.257061Z",
            "url": "https://files.pythonhosted.org/packages/5a/a3/8c31f954a67fa3645a70d6c7d97f905f90df164e07e0054fbe0bc036e4db/micropython_stubber-1.20.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "482fdb19b9f3d6f95f03612c2c5089e6007cd9bd7ac1be506f82cc3b5a3a5329",
                "md5": "289a7ea5ebf4b11cf45ff5d0c5ff591c",
                "sha256": "1a4880930406f66d38d5360f73bd50879554fc641d50264175c68623d0da9da1"
            },
            "downloads": -1,
            "filename": "micropython_stubber-1.20.1.tar.gz",
            "has_sig": false,
            "md5_digest": "289a7ea5ebf4b11cf45ff5d0c5ff591c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 296258,
            "upload_time": "2024-05-02T20:58:52",
            "upload_time_iso_8601": "2024-05-02T20:58:52.270220Z",
            "url": "https://files.pythonhosted.org/packages/48/2f/db19b9f3d6f95f03612c2c5089e6007cd9bd7ac1be506f82cc3b5a3a5329/micropython_stubber-1.20.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-02 20:58:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Josverl",
    "github_project": "micropython-stubber#readme",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "micropython-stubber"
}
        
Elapsed time: 0.26737s