truffile the TruffleOS SDK - Connect and deploy apps to Truffle devices
Project description
truffile
TruffleOS SDK - deploy apps to Truffle devices
install
pip install truffile
or from source:
git clone <repo>
cd truffile
pip install -e .
commands
# find truffle devices on your network
truffile scan
# connect to a device (first time requires approval on device)
truffile connect truffle-6272
# deploy an app from current directory
truffile deploy
# deploy an app from a specific path
truffile deploy ./my-app
# deploy with interactive shell (for debugging)
truffile deploy -i
# list installed apps on connected device
truffile list apps
# list connected devices
truffile list devices
# disconnect from a device
truffile disconnect truffle-6272
# disconnect from all devices
truffile disconnect all
truffile.yaml
apps need a truffile.yaml in their directory:
metadata:
name: My App
description: does cool stuff
type: background # or foreground
icon_file: ./icon.png
process:
cmd: [python, app.py]
working_directory: /
environment:
MY_VAR: value
# schedule for background apps only:
default_schedule:
type: interval # interval | times
interval:
duration: "1h" # 15m, 2h, 1d, etc.
schedule:
daily_window: "09:00-17:30" # optional
allowed_days: [mon, tue, wed, thu, fri] # optional
files:
- source: ./app.py
destination: ./app.py
run: |
pip install requests
schedule types
interval - run every N minutes/hours:
default_schedule:
type: interval
interval:
duration: "30m"
schedule:
daily_window: "06:00-22:00"
allowed_days: [mon, tue, wed, thu, fri]
times - run at specific times:
default_schedule:
type: times
times:
run_times: ["08:00", "12:00", "18:00"]
allowed_days: [mon, tue, wed, thu, fri]
example apps
see example-apps/ for working examples:
example-apps/ambient/hedge- background appexample-apps/focus/finance- foreground app
Project details
Release history Release notifications | RSS feed
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 truffile-0.1.dev4.tar.gz.
File metadata
- Download URL: truffile-0.1.dev4.tar.gz
- Upload date:
- Size: 643.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b654d1cda35703864e6ff1f304827e2eacfabcc111b0e5f30e83a3b662b1b1a
|
|
| MD5 |
30a230fcd81821fa49f07b433c2bc0a2
|
|
| BLAKE2b-256 |
4ff6bdd83993ec27c7ec747c01f31b590d9cbf0a34f8c8bc19ef31c60ac365ec
|
Provenance
The following attestation bundles were made for truffile-0.1.dev4.tar.gz:
Publisher:
publish_pip.yml on deepshard/truffile
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
truffile-0.1.dev4.tar.gz -
Subject digest:
6b654d1cda35703864e6ff1f304827e2eacfabcc111b0e5f30e83a3b662b1b1a - Sigstore transparency entry: 877217194
- Sigstore integration time:
-
Permalink:
deepshard/truffile@a29296607d6c86d4a9d7003f7129731782d6d19d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/deepshard
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_pip.yml@a29296607d6c86d4a9d7003f7129731782d6d19d -
Trigger Event:
push
-
Statement type:
File details
Details for the file truffile-0.1.dev4-py3-none-any.whl.
File metadata
- Download URL: truffile-0.1.dev4-py3-none-any.whl
- Upload date:
- Size: 183.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d26f4017926bd3d91a33ddedf0bb939310f448fb48b46383ee83209a1235e3d
|
|
| MD5 |
275151ef2a0597ae690277f7785be49c
|
|
| BLAKE2b-256 |
f75fae5f59aaaaa47f873806abbdfcfddc09452b83670f4512daa8ff18300b13
|
Provenance
The following attestation bundles were made for truffile-0.1.dev4-py3-none-any.whl:
Publisher:
publish_pip.yml on deepshard/truffile
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
truffile-0.1.dev4-py3-none-any.whl -
Subject digest:
1d26f4017926bd3d91a33ddedf0bb939310f448fb48b46383ee83209a1235e3d - Sigstore transparency entry: 877217238
- Sigstore integration time:
-
Permalink:
deepshard/truffile@a29296607d6c86d4a9d7003f7129731782d6d19d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/deepshard
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_pip.yml@a29296607d6c86d4a9d7003f7129731782d6d19d -
Trigger Event:
push
-
Statement type: