Skip to main content

Easily deploy your CircuitPython projects

Project description

circdeploy

Easily deploy your CircuitPython projects

Deploys the current working directory to a connected CircuitPython device.

I don't like editing CircuitPython files directly from the mounted device folder. The OS may be creating hidden files or your IDE may be saving files frequently which may trigger the device to reboot.

Default behavior: Copies all ./**/*.py and ./**/*.pyc files from the current directory to an automatically detected CircuitPython device, skipping any files in .gitignore. Any remaining ./**/*.py and ./**/*.pyc files on the device are deleted (./lib/* is not deleted).

File Cache

By default, a file cache is used to only copy files that have been changed in the source directory. If a file was changed manually in the destination, or if the destination is different than a previous deploy, then not all files may be copied. You can disable the cache check with --no-cache, or reset the cache for that source with --reset-cache.

$ circdeploy --help

Usage: circdeploy [OPTIONS]                                                                                                               
                                                                                                                                           
 Deploy current CircuitPython project                                                                                                      
                                                                                                                                           
 All .py and .pyc files in the current directory tree will be copied to the destination (device)                                           
 All other .py and .pyc files in the destination directory tree (device) will be deleted except /lib/ (disable with --no-delete)           
                                                                                                                                           
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --source,--src        -s                    TEXT  Deploy from this location. [default: (Current working directory)]                     │
│ --destination,--dest  -d                    TEXT  Deploy to this location. [default: (Device path automatically detected)]              │
│ --delete                  --no-delete             Delete files in destination. [default: delete]                                        │
│ --use-gitignore           --no-gitignore          Ignore files using .gitignore files relative to source path. [default: use-gitignore] │
│ --use-cache               --no-cache              Use file cache to skip unchanged files. [default: use-cache]                          │
│ --reset-cache                                     Reset file cache.                                                                     │
│ --dry-run                                         Don't copy files, only output what would be done.                                     │
│ --install-completion                              Install completion for the current shell.                                             │
│ --show-completion                                 Show completion for the current shell, to copy it or customize the installation.      │
│ --help                                            Show this message and exit.                                                           │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

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

circdeploy-1.0.0.tar.gz (34.9 kB view details)

Uploaded Source

Built Distribution

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

circdeploy-1.0.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file circdeploy-1.0.0.tar.gz.

File metadata

  • Download URL: circdeploy-1.0.0.tar.gz
  • Upload date:
  • Size: 34.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for circdeploy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1291f3ce579155cd5495ac9ff8099167ef254787c95bfd1666e94485f243a932
MD5 6a02bc56092e289edfc2d5ae1c33e406
BLAKE2b-256 e71f14d56a4c1a5813ba146fa8811ee633d1656bc05fc77ad94b4afa563a247e

See more details on using hashes here.

File details

Details for the file circdeploy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: circdeploy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for circdeploy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad77d4e08a6f2d185c4e30bef58a0a3149226a88771dfb666c366d9f340ae591
MD5 237f9bb92ec0a11d148e0c2f109e07cb
BLAKE2b-256 036ce85adbcf1cc5ad128b8bdb54e0ee15f947e5db1c163f0c51888ca7ae2c48

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