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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1291f3ce579155cd5495ac9ff8099167ef254787c95bfd1666e94485f243a932
|
|
| MD5 |
6a02bc56092e289edfc2d5ae1c33e406
|
|
| BLAKE2b-256 |
e71f14d56a4c1a5813ba146fa8811ee633d1656bc05fc77ad94b4afa563a247e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad77d4e08a6f2d185c4e30bef58a0a3149226a88771dfb666c366d9f340ae591
|
|
| MD5 |
237f9bb92ec0a11d148e0c2f109e07cb
|
|
| BLAKE2b-256 |
036ce85adbcf1cc5ad128b8bdb54e0ee15f947e5db1c163f0c51888ca7ae2c48
|