A lightweight parameter remote controller for embedded device debugging
Project description
Parameter Remote Controller
A lightweight parameter remote controller for modifying parameters remotely during embedded device debugging.
Features
- Lightweight HTTP server suitable for running on embedded devices
- Clean web interface for visual parameter modification
- Flexible parameter definition mechanism supporting multiple parameter types
- Simple API interface for easy integration into actual programs
Installation
pip install param-controller
Usage
1. Define Parameters
from param_ctl import ParamManager
# Create parameter manager
pm = ParamManager()
# Register parameters
pm.register("threshold", 128, int, "Image processing threshold", (0, 255))
pm.register("kp", 1.0, float, "PID proportional coefficient", (0, 10))
pm.register("ki", 0.1, float, "PID integral coefficient", (0, 1))
pm.register("kd", 0.5, float, "PID derivative coefficient", (0, 5))
2. Start Server
from param_ctl import ParamServer
# Create and start parameter server
server = ParamServer(pm, host="0.0.0.0", port=8080)
server.start()
3. Use Parameters in Program
# Get parameter value
threshold = pm.get("threshold")
# Use parameter
ret, binary = cv2.threshold(gray, threshold, 255, cv2.THRESH_BINARY)
# You can also use parameter objects directly
pid_controller = PID(pm.get("kp"), pm.get("ki"), pm.get("kd"))
4. Modify Parameters via Web Interface
Open your browser and visit http://<device-ip>:8080 to access the parameter control interface.
Examples
See the example code in the examples directory.
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 param_controller-0.1.6.tar.gz.
File metadata
- Download URL: param_controller-0.1.6.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb3d0a9c3f4cb7a0b4fc68442aa64dd1fc3c60e59218e8075cccaf9324dc1773
|
|
| MD5 |
7ab3d5d9003fe165e66df83cd5ed6e30
|
|
| BLAKE2b-256 |
ee913e6b1f4b8f8aed12c06f6ed394f2bc77d7e91ec07066f483c925fa1c5153
|
Provenance
The following attestation bundles were made for param_controller-0.1.6.tar.gz:
Publisher:
python-publish.yml on Kori-Sama/param-ctl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
param_controller-0.1.6.tar.gz -
Subject digest:
eb3d0a9c3f4cb7a0b4fc68442aa64dd1fc3c60e59218e8075cccaf9324dc1773 - Sigstore transparency entry: 196355593
- Sigstore integration time:
-
Permalink:
Kori-Sama/param-ctl@369bb7fbb006693536ae9b8589c93edeb6bb2c60 -
Branch / Tag:
refs/tags/v0.1.6 - Owner: https://github.com/Kori-Sama
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@369bb7fbb006693536ae9b8589c93edeb6bb2c60 -
Trigger Event:
release
-
Statement type:
File details
Details for the file param_controller-0.1.6-py3-none-any.whl.
File metadata
- Download URL: param_controller-0.1.6-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
292410ca3378eed5a8767f06bfd65fe0af1258653069cc233b91be18da049100
|
|
| MD5 |
aef589086de42db529ca5b008f6b24b6
|
|
| BLAKE2b-256 |
fcbb7c3713f0f1835dd00956b7b188d56a56725c66784eb85c33ac4c297cece3
|
Provenance
The following attestation bundles were made for param_controller-0.1.6-py3-none-any.whl:
Publisher:
python-publish.yml on Kori-Sama/param-ctl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
param_controller-0.1.6-py3-none-any.whl -
Subject digest:
292410ca3378eed5a8767f06bfd65fe0af1258653069cc233b91be18da049100 - Sigstore transparency entry: 196355595
- Sigstore integration time:
-
Permalink:
Kori-Sama/param-ctl@369bb7fbb006693536ae9b8589c93edeb6bb2c60 -
Branch / Tag:
refs/tags/v0.1.6 - Owner: https://github.com/Kori-Sama
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@369bb7fbb006693536ae9b8589c93edeb6bb2c60 -
Trigger Event:
release
-
Statement type: