Skip to main content

Python stubs for micro:bit modules

Project description

microbit-stubs Python Library

License Python Version Micro:bit Version

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

microbit-stubs-0.1.0.tar.gz (16.4 kB view details)

Uploaded Source

File details

Details for the file microbit-stubs-0.1.0.tar.gz.

File metadata

  • Download URL: microbit-stubs-0.1.0.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for microbit-stubs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7579d9ce6eacbb5481ba66ea8490f935f19f92cb38e8c49be5b4737e6750ed6b
MD5 6a328c20033322c5cdf38d39b2d4e2f8
BLAKE2b-256 08bf3ab80c99b9e5c8dbbfb662fa0ee56a3b522effbe88ed9bca515ebed81a53

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page