Skip to main content

Pimoroni Pico MicroPython Stubs

This repository contains type stubs that help you write code for Pimoroni Pico MicroPython's many built-in modules.

Type stubs include details about the constants, functions, classes and methods available in each module, and what arguments they accept.

VSCode Setup

Required Extensions

You must install the VSCode Python extension and additionally Pylance to support type hints.

To install extensions, press Ctrl+Shift+P or Cmd+Shift+P and in the pop-up box type "Extensions" and select "Extensions: Install Extensions".

A search box should open on the left-hand side of your editor, find and install the following:

VSCode Settings

To open VSCode settings press Ctrl+Shift+P or Cmd+Shift+P and in the pop-up box type "Settings" and choose "Preferences: Open Workspace Settings (JSON)".

If the file is empty you can go right ahead and add the lines below:

{
    "python.languageServer": "Pylance",
    "python.analysis.typeCheckingMode": "basic",
    "python.analysis.diagnosticSeverityOverrides": {
        "reportMissingModuleSource": "none"
    },
    "python.analysis.typeshedPaths": [
        "./typings/",
    ],
}

MicroPython stubs

To get MicroPython type hints you'll need to install the following package into the ./typings directory of your project.

If the terminal is not open press Ctrl+Shift+P or Cmd+Shift+P and in the pop-up box type "Terminal" and select "Terminal: Create New Terminal (In Active Workspace)".

Finally in the terminal run the following command:

pip install pimoroni-pico-stubs --target ./typings --no-user

Metadata

Release files for pimoroni-pico-stubs 1.21.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pimoroni-pico-stubs 1.21.0
File Size Uploaded Provenance
pimoroni_pico_stubs-1.21.0.tar.gz 23.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pimoroni-pico-stubs 1.21.0
File Interpreter ABI Platform
pimoroni_pico_stubs-1.21.0-py3-none-any.whl Python 3 none any Details

Total release size: 67.0 kB

Release files / pimoroni_pico_stubs-1.21.0.tar.gz

Download URL pimoroni_pico_stubs-1.21.0.tar.gz
Size 23.7 kB
Tags Source
SHA-256 checksum
How to use checksums
27c6a066fc581dfca4948f216d872ea5fb8b6c31304eb5ba89f2f72232a0db1b
BLAKE2b-256 checksum
How to use checksums
88d6df4d25d8fe6b5153eb1057f3e4f6dc2c1f9ef3d7dd1733f68d3499c7b67e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / pimoroni_pico_stubs-1.21.0-py3-none-any.whl

Download URL pimoroni_pico_stubs-1.21.0-py3-none-any.whl
Size 43.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ffb860c9f389b5003378df7f1e28a5a499a2a89368166ae64ada31505c0f488
BLAKE2b-256 checksum
How to use checksums
5e5297b2de47eb2f602f3c2dca0118a399aa1be87d9c9dde438ca044aee7b21e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Security for pimoroni-pico-stubs 1.21.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.

Release history Release notifications | RSS feed

This release

1.21.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page