CLI for running verified Oplut hardware setup paths.
Project description
Oplut CLI
V0.1 CLI for authenticating a board, running verified setup paths, and leaving behind useful robot-build outputs like camera streams and JSON endpoints.
Local development:
pip install -e ./cli
OPLUT_API_BASE_URL=http://YOUR_MAC_IP:3000 oplut auth
oplut setup --goal network-stream
Production target:
pip install oplut
oplut auth
oplut setup
oplut auth starts a browser device-code flow by default. It opens the approval URL, polls until the account approves the device, and stores the returned API key in ~/.oplut/credentials.json.
oplut setup detects the board and connected peripherals, asks what the user wants to build when no goal is provided, calls the Oplut API, executes the verified config, installs any persistent service, verifies it, and prints the useful output URL.
The default API is https://www.oplut.com. Only local development should use
OPLUT_API_BASE_URL or --api-base-url.
Dashboard control:
oplut agent-install
systemctl status oplut-agent
This installs the dashboard job listener as a systemd service so the user does not need to keep oplut agent open manually.
Code-facing V0.1 helpers:
from oplut import CameraStream
camera = CameraStream.connect("192.168.7.2")
cap = camera.open_cv2()
while True:
ok, frame = cap.read()
if not ok:
break
# Build color filtering / OpenCV robot logic here.
from oplut import ArduinoSerial
serial = ArduinoSerial.connect("192.168.7.2")
print(serial.read())
from oplut import ServoControl
servo = ServoControl.connect("192.168.7.2")
servo.set_angle(90)
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 oplut-0.1.0.tar.gz.
File metadata
- Download URL: oplut-0.1.0.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4b2ebdcdb140ac90c294ff414317ba9b810f7f65e9f19d1ff72bcf88820b19b
|
|
| MD5 |
b4475ac737ff3faebc7e5e4a450274d2
|
|
| BLAKE2b-256 |
a3c0c7d5443fee9978cb7f16c21144e5f004cc44b1fbff39e750680f2c6387b0
|
File details
Details for the file oplut-0.1.0-py3-none-any.whl.
File metadata
- Download URL: oplut-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1531c8d4f72de0574972679012220f5070b9a1bbc2da5da9b0033c4d92bf8114
|
|
| MD5 |
f7e097761976d01578cd33a4709d7b98
|
|
| BLAKE2b-256 |
5b4fd3d1f75d506bd3129af3e2c6506a86dbb656c8c5ef77079efb05e06e742c
|