python-setup

Set up a Python development environment for Badger 2350 projects.

8|1|Updated Oct 30, 2025
One-click install
npx skills add https://github.com/johnlindquist/badger-2350-plugin --skill python-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-setup
Source: https://github.com/johnlindquist/badger-2350-plugin/tree/main/badger-2350-dev/skills/python-setup
Command: npx skills add https://github.com/johnlindquist/badger-2350-plugin --skill python-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires mpremote, adafruit-ampy, rshell, esptool, thonny, black, pylint, mypy, pytest, pytest-cov, mkdocs, sphinx.

What problem does it solve?

Setting up a robust Python development environment for embedded systems can be complex, leading to dependency conflicts and frustrating installation issues. This skill streamlines the entire process, ensuring a smooth start for Badger 2350 development.

Core Features & Use Cases

  • Python Installation: Guides for macOS, Linux, and Windows to install Python 3.8+.
  • Virtual Environments: Best practices for isolating project dependencies using venv.
  • Toolchain Setup: Installation of essential tools like mpremote, ampy, rshell, and esptool.
  • Use Case: A new developer can follow this skill to set up their entire workstation from scratch, ensuring all necessary Python versions, virtual environments, and badge communication tools are correctly configured.

Quick Start

To quickly set up your environment, create a virtual environment with python3 -m venv venv, activate it with source venv/bin/activate, and then install mpremote using pip install mpremote.

Frequently Asked Questions about python-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a Python development environment for Badger 2350?

Set up a Python development environment for Badger 2350 by installing Python 3.8+, creating a virtual environment with `python3 -m venv venv`, activating it, and installing essential tools like mpremote, ampy, rshell, and esptool via pip to enable badge communication and development.

What's the best way to install mpremote and other Badger 2350 tools on macOS, Linux, or Windows?

Install mpremote and badge tools by creating and activating a virtual environment, then using pip to install mpremote, ampy, rshell, esptool, and supporting utilities like black, pylint, and mypy. This approach isolates dependencies and works consistently across macOS, Linux, and Windows.

Can I use virtualenv instead of venv for Badger 2350 project isolation?

Yes, both venv and virtualenv create isolated Python environments for Badger 2350 projects. The Skill implements venv as the standard approach, but virtualenv is an equally viable alternative that provides similar dependency isolation for badge development.

Do I need to install esptool, rshell, and ampy, or can I use only mpremote for Badger 2350 development?

While mpremote is the primary tool for badge communication, esptool, rshell, and ampy provide alternative or complementary methods for firmware flashing and file transfer. Installing all tools gives you flexibility; mpremote alone covers most common Badger 2350 workflows.

Why does my Python environment setup fail on Windows or macOS with dependency conflicts?

Dependency conflicts occur when tools are installed globally or when Python versions mismatch. Using a virtual environment isolates project dependencies and prevents conflicts between mpremote, pytest, black, pylint, and other development tools across Windows, macOS, and Linux.

What development tools should I install alongside mpremote for Badger 2350 projects?

Install pytest and pytest-cov for testing, black and pylint for code quality, mypy for type checking, and mkdocs and sphinx for documentation. These tools integrate with your Badger 2350 virtual environment to support a complete development workflow.