Skip to content

Starter for embedded micropython development, with modern tooling for type checking, linting, and testing.

License

Notifications You must be signed in to change notification settings

EPS-Works/micropython-starter-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Micropython Project Template

A template for projects using the Ardusimple SDK, a custom MicroPython firmware distribution with pre-installed utilities and hardware abstractions. The goal is to enhance developer experience (DX) and application development by integrating modern tooling like type hints, linter, formatter, testing and production build pipeline.

This template already contains stubs for extra modules shipped with the Ardusimple's firmware, as utoml and sdk.

Get Started

Start a new project using this template. Fill up the pyproject.toml file with the information of your project.

Create and activate a virtual environment and setup the project

python -m venv .venv
source .venv/bin/activate

make setup

Make sure to have Black Formatter active in your IDE.

Tests

Run tests with optional -s (do not capture stdout) and -v (verbose) flags.

# Activate virtual environment
source .venv/bin/activate

pytest -s -v

Build

Your application can be compiled into .mpy files for better performance and memory usage when deployed on MicroPython devices.

Be sure you have mpy-cross and Make installed.

make build
make rebuild # Build a clean new version
make clean-build  # Optional. Remove build directory

About

Starter for embedded micropython development, with modern tooling for type checking, linting, and testing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published