Skip to main content

CircuitPython Manager

Project description

CircuitPython Manager

PyPI Status Python Version License

Read the documentation at https://circman.readthedocs.io/ Tests Codecov

pre-commit Black

CircuitPython Manager helps with deploying projects to CircuitPython devices.

Features

  • Automatically detects CircuitPython device path.
  • Backs up the CircuitPython device before deploying to allow recovery.
  • Simple command to restore a backup to the CircuitPython device in case something goes wrong.

Requirements

  • Linux. May work elsewhere but not tested.

Installation

You can install CircuitPython Manager via pip from PyPI:

$ pip install circman

Quick Start

Connect your CircuitPython device to your computer using USB and wait for the mount to appear.

Change to the directory of your CircuitPython project. The default is for the project source code to be in src/ relative to the project directory.

Then run the deploy.

$ circman deploy

A backup of the CircuitPython device will be created and then the project source code will be copied to the CircuitPython device.

If you need to restore the code from before the deploy use the restore command.

$ circman restore

To list all available backups:

$ circman list

If you made a change directly on the CircuitPython device you can copy it back to the project source directory. The default destination directory is src/. No backup of the destination is created prior to copying so use with caution. Ideally the destination directory is under version control to identify changes and restore if needed.

$ circman sync

Usage

Please see the Command-line Reference for details.

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the MIT license, CircuitPython Manager is free and open source software.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Credits

Device path detection code (find_device()) was copied from Adafruit's circup project.

This project was generated from @cjolowicz's Hypermodern Python Cookiecutter template.

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

circman-0.3.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

circman-0.3.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file circman-0.3.0.tar.gz.

File metadata

  • Download URL: circman-0.3.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for circman-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1ef0118f258f537239e35e473d7cb019abfba5dafdbf1cd7bce2651777fd8e2f
MD5 0aa382bc36b3bada45a66c62a7d9e5de
BLAKE2b-256 24249f00a59e0fd62fc0bfbf9c2ba7075305f98d1935e5966731ce8d5c9c0214

See more details on using hashes here.

File details

Details for the file circman-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: circman-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for circman-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8bd9ee579d45fabf565b10294f11c16bf88bad76f43bcd1a356517c8ccf01f17
MD5 27a4a074bb85e4a11d2bb80af9731bb5
BLAKE2b-256 d4c48a74c1f083258dfde21d7be36f7c74f3410f89452a5572533da5344e9427

See more details on using hashes here.

Supported by

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