File System Bridge to facilitate working with files on Micropython devices
Project description
📂 MPBridge
A file system bridge to synchronise and manage files on a MicroPython running device
Supported platforms
- Windows
- MacOS
- Linux
- FreeBSD/BSD
Dependencies
Installation
mpbridge
must be installed with sudo
or administrator
level of permission in order to be accessible in terminal:
Windows
- Open
cmd.exe
as administrator and runpip install -U mpbridge
Linux / MacOS
- Run
sudo pip install -U mpbridge
How to use
You can use mpbridge
shell utility in several ways based on your needs:
Bridge Mode
- This mode copies all files and folders from your
MicroPython
board into a temporary directory on your local device and listens for any filesystem events on local directory to apply them on your board.
- Connect your
MicroPython
device - Run
mpbridge bridge <PORT>
Sync Directory
- This command syncs a specified local directory with a
MicroPython
board. The sync process will push all modified files and folders into board and also pull changes from board and exits. - If a conflict occurs,
mpbridge
will choose the local version of file automatically and overwrites it on connected board.
- Connect your
MicroPython
device - Run
mpbridge sync <PORT> <DIR_PATH>
Note : <PORT>
can be the full port path or one of the short forms below :
c[n]
forCOM[n]
(c3
is equal toCOM3
)u[n]
for/dev/ttyUSB[n]
(u3
is equal to/dev/ttyUSB3
)a[n]
for/dev/ttyACM[n]
(a3
is equal to/dev/ttyACM3
)
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
mpbridge-0.2.0.tar.gz
(7.5 kB
view details)
Built Distribution
File details
Details for the file mpbridge-0.2.0.tar.gz
.
File metadata
- Download URL: mpbridge-0.2.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 812aec27199ad83c568d2351c25988740acd8dbc60b09e8aaa31344c0bdd32b0 |
|
MD5 | a6dfd51ef8c6e6b20b988229124cd6e7 |
|
BLAKE2b-256 | 9f42eb7248b1f61aa393b7a5e5128791956dd67495114a206f414f7e49e0897c |
File details
Details for the file mpbridge-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: mpbridge-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f9d99d5cc47c97440302d1438bf10e6e199848a0dc28ac2641f63922a841875 |
|
MD5 | 267efb983976313ee655a8c7b192476b |
|
BLAKE2b-256 | 86feaeb7d0f022b760886fc7cb087ea23b54e0703cf49fb41b709585fe5d1e89 |