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

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.2.0.tar.gz (5.5 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.2.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for circman-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4fbc80a9d8f7823e278844fe4913a5aae550391c7306f6548d05be365848bf9c
MD5 c09b46d02560c68f2087a52b8386cd8e
BLAKE2b-256 07ccabab91fe8cc4631892386cd92f9e70e504667fc4c3bb77d3551c7f1ec26c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: circman-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b61f60e6177f6f016e836f57a75508d8ffbfac5ca19f44e3604eedda449fd92
MD5 7fbf1d398e53bd22f4095ed3b02158b1
BLAKE2b-256 63209e3fe68cc112488e8851a72aee13bf4aab8c8c4bc385108eeb01c7a085e4

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