0xbeedao

managing-circuitpython-libraries

0
0
# Install this skill:
npx skills add 0xbeedao/agentic-tools --skill "managing-circuitpython-libraries"

Install specific skill from multi-skill repository

# Description

Manages CircuitPython libraries using circup CLI. Use when installing, updating, or managing libraries on a CircuitPython device.

# SKILL.md


name: managing-circuitpython-libraries
description: Manages CircuitPython libraries using circup CLI. Use when installing, updating, or managing libraries on a CircuitPython device.


Managing CircuitPython Libraries with circup

Use the circup CLI tool to manage libraries on connected CircuitPython devices.

Prerequisites

  • Python 3.5+ installed
  • circup installed: pip3 install --user circup
  • CircuitPython device connected (mounted as CIRCUITPY)

Common Commands

View installed libraries

circup show

Check for updates

circup list

Update all outdated libraries

circup update

Install specific library

circup install <library_name>

Example:

circup install adafruit_neopixel
circup install adafruit_bus_device adafruit_register

Auto-install from code.py imports

circup install --auto

Install from requirements.txt

circup install -r requirements.txt

Export installed libraries to requirements.txt

circup freeze -r

Uninstall a library

circup uninstall <library_name>

Search for libraries

circup show <search_term>

Example:

circup show bme

Flags

Flag Description
--path <path> Specify custom CIRCUITPY mount path
--py Install .py source instead of compiled .mpy
--verbose Show detailed logs
--version Show circup version

Workflow: Setting Up a New Device

  1. Connect device (should mount as CIRCUITPY)
  2. Auto-install dependencies: circup install --auto
  3. Or install specific libraries: circup install <lib1> <lib2>
  4. Verify: circup show

Workflow: Keeping Libraries Updated

  1. Check for updates: circup list
  2. Update all: circup update

Multiple Devices

Use --path to target a specific device:

circup --path /Volumes/CIRCUITPY2 install adafruit_neopixel

Library Sources

circup pulls from:
- Adafruit CircuitPython Bundle
- CircuitPython Community Bundle

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.