Micropython stub files and dependencies
Project description
Micropython type hints and additional requirements
About this package
huas-micropython
packages MicroPython stub files, adding type information for static type checkers like MyPi or pyright.
IDE's which use these type checkers (e.g. VSCode or PyCharm) will in turn be able to provide rich MicroPython type hinting, code completion and contextual help to the user, increasing the overall developer experience without the need to install additional pugins.
-
In addition to providing MicroPyton type stubs this package adds esptool and adafruit-ampy as optional install requirement, see background for a rationale.
-
This package intends to be a transitional package meaning that at some point in time it will become obsolete depending on community MicroPython stub packaging efforts, see development for more information.
Installation
You can install huas-micropython
easily from Python's package index. In a terminal run the following command for a full install which includes type stubs and additionally installs the esptool
and adafruit-ampy
packages:
pip install huas-micropython[all]
Note on some Linux and macOS systems you might need to run as root with sudo:
sudo pip3 install huas-micropython[all]
For a plain install which only contains the type stubs, run the following:
pip install huas-micropython
Background
This module was created to support students at Hanzehogeschool University of Applied Sciences's bachelor HBO-ICT programme (in Dutch), in particular for students participating in the Internet of Things project.
This package adds esptool and adafruit-ampy as an optional install requirement to provide all the tooling necessary for working with an esp32 microcontroller. Note that adafruit-ampy
is also included in PyCharm's Micropython plugin and as such huas-micropython
offers functional parity.
Development
Current efforts to maintain Micropython type stubs are at Josverl/micropython-stubs and hlovatt/PyBoardTypeshed. The huas-micropython
package includes both, using Josverl/micropython-stubs
for module level stubs and hlovatt/PyBoardTypeshed
as additional documentation stubs (as a sidenote, PyCharm's Micropython plugin uses hlovatt/PyBoardTypeshed
stubs).
Two ongoing iniatives are of importance for this package:
-
Integrating and/or combinging work being done at both stub repositories (being discussed at #98).
Once the above has been resolved huas-micropython
will be considered obsolete and retracted from PyPi.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file huas-micropython-0.0.2.tar.gz
.
File metadata
- Download URL: huas-micropython-0.0.2.tar.gz
- Upload date:
- Size: 210.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c02ce2fca3e6c2cc6a434ce8e55b3890dc7e343648e5988fa76349139f741e3 |
|
MD5 | 653b17f00ca9f5cd2ba20a53618900bd |
|
BLAKE2b-256 | f3890df6c32dc7b6153bce3477914cb315c071e2a7469f70f33b12c0eaa16457 |
File details
Details for the file huas_micropython-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: huas_micropython-0.0.2-py3-none-any.whl
- Upload date:
- Size: 274.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbcd58712565c15232104aab71c836324bb391a81e7a099f90fc7e6fe3b2cfee |
|
MD5 | e35232821cc5d129e84777bea30e24bc |
|
BLAKE2b-256 | 47f3309a84778248ae9654c5d6b6e30eae99fa5b6b65a93062cf679aeeaf3393 |