Skip to main content

A synchronization tool for micro python boards

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mpsync-0.0.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

mpsync-0.0.1-py3.8.egg (8.1 kB view details)

Uploaded Source

File details

Details for the file mpsync-0.0.1.tar.gz.

File metadata

  • Download URL: mpsync-0.0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for mpsync-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fbc60d6c882498f5bc27a8010364e6955ac2d2f64f443d5352fb3062a9256b7e
MD5 edfe78aa905e5f1bccb8f4bb14f6332d
BLAKE2b-256 44d35967271b77c11f9874971dd8e67b5c71df64c1b63971a78b1183717e7e21

See more details on using hashes here.

File details

Details for the file mpsync-0.0.1-py3.8.egg.

File metadata

  • Download URL: mpsync-0.0.1-py3.8.egg
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for mpsync-0.0.1-py3.8.egg
Algorithm Hash digest
SHA256 8e2d10ac4b57cfcb02613b0637d54f3c3a6fbd24ef19f9f4cae823bca79fc0f8
MD5 5ffd45fe3779205436943f784109da8f
BLAKE2b-256 695c6e2451e0730e6a56dbbdf9571ad3c51af0bca82a47b46ef70b195167a3b2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page