Tool for installing packages for MicroPython and CircuitPython
Project description
Tool for installing distribution packages for MicroPython and CircuitPython.
Supports both upip-compatible packages. and regular pip-compatible packages (by using pip install –target …).
By default it prefers packages at micropython.org-s index. If the package or required version is not found there, then it turns to PyPI.
If --port is given and rshell is available then uploads extracted to the target device, otherwise just extracts to local filesystem. --target directory must be explicitly given in both cases. If target is local filesystem, then makes sure data gets synced (useful, if target is a USB volume representing MicroPython or CircuitPython filesystem)
Usage examples
minipip install --port /dev/ttyACM0 --target /lib micropython-logging
minipip install --target G:\lib adafruit-circuitpython-ssd1306
minipip -h
minipip [-h] [-r [REQUIREMENT_FILE [REQUIREMENT_FILE ...]]] [-p [PORT]] -t TARGET_DIR [-i INDEX_URL] [-v] [-q] [--version] {install} [package_spec [package_spec ...]] Meant for installing both upip and pip compatible distribution packages from PyPI and micropython.org/pi to a local directory, USB volume or directly to MicroPython filesystem over serial connection (requires rshell). positional arguments: {install} Currently the only supported command is 'install' package_spec Package specification, eg. 'micropython-os' or 'micropython-os>=0.6' optional arguments: -h, --help show this help message and exit -r [REQUIREMENT_FILE [REQUIREMENT_FILE ...]], --requirement [REQUIREMENT_FILE [REQUIREMENT_FILE ...]] Install from the given requirements file. -p [PORT], --port [PORT] Serial port of the device (specify if you want minipip to upload the result to the device) -t TARGET_DIR, --target TARGET_DIR Target directory (on device, if port is given, otherwise local) -i INDEX_URL, --index-url INDEX_URL Custom index URL -v, --verbose Show more details about the process -q, --quiet Don't show non-error output --version Show program version and exit
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for minipip-0.1b2-micropython-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62b9527821ec5f97fa8d48a9c01829af43c4c1b5039a7ade6a2f6fa1fe5d611d |
|
MD5 | 33f3310e87039df19e1814c0dd291d21 |
|
BLAKE2b-256 | 459a9bf58cc06cda387ac3a8f95024a04e28d9e350e0219972a0c447ecdf7d56 |
Hashes for minipip-0.1b2-micropython6-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d651d6b9917f196b8e64e8881356436f42064a5f53b4d503b65b6ee50e61f65b |
|
MD5 | d1474c78b60db6d61357e96a2847f270 |
|
BLAKE2b-256 | 6de10529e31ad6247a4ec0a59ade53c83f38191b2de8a4aeffd6e21ff898aeae |