Arduino Colab Project
Arduino Bridge
This is HW<->frontend bridge component of Arduino Colab Project.
How to Use
1. Running the Remote Server
To use the remote backend (for cloud or remote Jupyter/Colab environments), you need to run the remote server on the machine connected to your Arduino hardware.
Install dependencies:
pip install -r .\requirements.txt
Run the server: RUN server with default settings (localhost):
python -m arduino_colab_kernel.backends.remote_server
OR use custom port and token:
python -m arduino_colab_kernel.backends.remote_server --port 5000 --token YOUR_TOKEN
- Replace
YOUR_TOKENwith a secure token of your choice. - The server will listen for requests from the frontend (Colab/Jupyter).
1.1 Open server site in web-browser
Open server URL address in web-browser and copy TOKEN, and Server URL if needed.
2. Connecting from the Client (Colab/Jupyter)
In your Jupyter/Colab notebook, load the magics and set up the remote backend:
%load_ext arduino_colab_kernel.magic_project
%load_ext arduino_colab_kernel.magic_board
%load_ext arduino_colab_kernel.magic_code
%load_ext arduino_colab_kernel.magic_serial
MY_API_TOKEN = input("Enter your API token: ") # Use the same token as the server
REMOTE_URL = "http://<server-ip>:<server-port>" # Replace <server-ip> and <server-port> with your server's IP address and port (*Optional*)
# Load or initialize a project in remote mode
%project load --mode remote --remote_url $REMOTE_URL --token $MY_API_TOKEN
# init
%project init --mode remote --remote_url $REMOTE_URL --token $MY_API_TOKEN
# or use simplify version with default server address:
%project load --mode remote --token {MY_API_TOKEN}
# init
%project init --mode remote --token {MY_API_TOKEN}
3. Workflow
- Use
%project,%board,%%code, and%serialmagics as usual. - All compile/upload/serial operations will be forwarded to the remote server.
Example
# Set up remote backend
MY_API_TOKEN = "YOUR_TOKEN"
REMOTE_URL = "http://192.168.1.100:5000"
%project init my_project --mode remote --remote_url $REMOTE_URL --token $MY_API_TOKEN
%board select uno
%%code setup
pinMode(13, OUTPUT);
%%code loop
digitalWrite(13, HIGH); delay(500); digitalWrite(13, LOW); delay(500);
%board upload
%serial listen --duration 10
Security
- Always use a strong, secret token for authentication.
- Never expose your remote server to the public internet without proper security.
For more details, see project Arduino Colab on Github
Metadata
Release files for arduino-colab-bridge 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| arduino_colab_bridge-0.1.0.tar.gz | 6.6 kB | Without provenance | Details for arduino_colab_bridge-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| arduino_colab_bridge-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for arduino_colab_bridge-0.1.0-py3-none-any.whl |
Total release size: 13.3 kB
Release files / arduino_colab_bridge-0.1.0.tar.gz
| Download URL | arduino_colab_bridge-0.1.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd633a5463c458f850ca8132e6103914f4e1b130cd6363aae668fe19f8ebd079
|
|
BLAKE2b-256 checksum How to use checksums |
b14996220c9dd69ddcdd94f84c756fe3cce22f421792888b58152f61ba9037aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.0
|
Release files / arduino_colab_bridge-0.1.0-py3-none-any.whl
| Download URL | arduino_colab_bridge-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cad0b1f371989099dcc7d56d7bf3c7a4ba372496f3eadae22a4cf3aa9ff01b38
|
|
BLAKE2b-256 checksum How to use checksums |
caec520a31afa552b4e49d52569d71d1f408ce8039bcf170fec14e30821c2097
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.0
|
Security for arduino-colab-bridge 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.