microbit-stubs Python Library
A Python library providing stubs for micro:bit modules, enabling code completion and static analysis in integrated development environments (IDEs).
Overview
This library contains type hints (stubs) for the micro:bit modules, allowing developers to benefit from code completion, type checking, and static analysis in their Python projects that involve micro:bit programming. These stubs are compatible with popular Python IDEs like VSCode, PyCharm, and others.
Features
-
Type Hints for micro:bit Modules: Comprehensive type hints for various micro:bit modules, enhancing code readability and developer productivity.
-
IDE Compatibility: Works seamlessly with major Python IDEs, providing an improved development experience for micro:bit projects.
-
Easy Integration: Simply install the library using pip, and your IDE should automatically recognize and utilize the provided stubs.
Installation
pip install microbit-stubs
Usage
Once the library is installed, you can start using it in your micro:bit Python projects. Your IDE should automatically pick up the stubs and provide enhanced code completion and type checking.
from microbit import *
# Now, your IDE should provide code completion for micro:bit modules.
display.show(Image.HAPPY)
sleep(1000)
display.clear()
Contributing
We welcome contributions to enhance and expand the microbit-stubs library. If you find any issues or have suggestions for improvement, please open an issue or submit a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for microbit-stubs 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| microbit-stubs-0.2.0.tar.gz | 16.5 kB | Without provenance | Details for microbit-stubs-0.2.0.tar.gz |
Release files / microbit-stubs-0.2.0.tar.gz
| Download URL | microbit-stubs-0.2.0.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5de8b19e1ac393b9480031e0c1e9b158e854c81de162c9742722a28cc9f5e09d
|
|
BLAKE2b-256 checksum How to use checksums |
422556ff7424c1fdd3c8629f82beda2b731749843bd6bf1cbbdcb5db583bb097
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|
Security for microbit-stubs 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.