Skip to main content

mpsync

mpsync is a little tool that you can run during your MicroPython development to automatically upload changes in your code to a board. Simply run it inside the folder you want to sync up and it will create, upload, and delete files from and to your board whenever something changes.

How to Use

usage: mpsync [-h] [-f FOLDER] [-p PORT] [-v]

A tool that continously synchronizes a folder to a MicroPython board.

optional arguments:
  -h, --help            show this help message and exit
  -f FOLDER, --folder FOLDER
                        The folder that should be used to synchronize. Default is the current one
  -p PORT, --port PORT  Serial port of the MicroPython board.
  -v, --verbose         Print debug information.

You can specify the folder you want to sync either by starting the script from the folder or by specifying it in the --folder argument. You can specify the location of your MicroPython board with --port. Here is an example:

~ $ cd micropython_project
~/micropython_project $ mpsync -p /dev/tty.SLAB_USBtoUART

Known Issues

mpsync is currently unable to synchronize the moving of folders. Everything else should be working. If you are having troubles, please open an issue.

Dependencies

mpsync requires the python libraries watchdog and mpfshell.

Ideas

I have some ideas on how to improve this tool. Let me know via an issue if you have ideas as well!

  • Performing an rsync on the complete folder when the script is started
  • Support moving of folders
  • Support specification of waiting time before stuff gets uploaded.

Metadata

Release files for mpsync 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mpsync 0.0.1
File Size Uploaded Provenance Actions
mpsync-0.0.1.tar.gz 4.6 kB Without provenance Details for mpsync-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mpsync 0.0.1
File Interpreter ABI Platform Actions
mpsync-0.0.1-py3.8.egg Legacy Egg format - - Details for mpsync-0.0.1-py3.8.egg

Total release size: 12.7 kB

Release files / mpsync-0.0.1.tar.gz

Download URL mpsync-0.0.1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
fbc60d6c882498f5bc27a8010364e6955ac2d2f64f443d5352fb3062a9256b7e
BLAKE2b-256 checksum
How to use checksums
44d35967271b77c11f9874971dd8e67b5c71df64c1b63971a78b1183717e7e21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.3

Release files / mpsync-0.0.1-py3.8.egg

Download URL mpsync-0.0.1-py3.8.egg
Size 8.1 kB
Tags Egg
SHA-256 checksum
How to use checksums
8e2d10ac4b57cfcb02613b0637d54f3c3a6fbd24ef19f9f4cae823bca79fc0f8
BLAKE2b-256 checksum
How to use checksums
695c6e2451e0730e6a56dbbdf9571ad3c51af0bca82a47b46ef70b195167a3b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.3

Security for mpsync 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page